Gammon Forum
Entire forum
MUDs
General
Suggested protocol for server to client "out of band" messages
Suggested protocol for server to client "out of band" messages
|
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Pages: 1
2
3
4
5
6
7
8
9
10
11 12
13
14
15
16
17
18
19
20
21
22
23
Posted by
| Twisol
USA (2,257 posts) bio
|
Date
| Reply #150 on Thu 18 Feb 2010 06:09 AM (UTC) |
Message
|
Twisol said: In regards to the modular plugins, I'll be releasing a few updated ones (including ATCP) very soon, and I helped a friend package LuaSocket directly into her plugin's libraries/ subfolder. Hopefully we'll have concrete examples to discuss in the near future!
To follow up on this, I've released four new plugins that use the new structured format, making a post on the Achaea forums detailing the release. [1] It has links to the pages where I've uploaded them.
[1] http://forums.achaea.com/index.php?showtopic=39955 |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | top |
|
Posted by
| Nick Gammon
Australia (22,973 posts) bio
Forum Administrator |
Date
| Reply #151 on Thu 18 Feb 2010 07:18 PM (UTC) |
Message
| So the telnet negotiation works fine? I haven't heard much either way. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Nick Gammon
Australia (22,973 posts) bio
Forum Administrator |
Date
| Reply #152 on Thu 18 Feb 2010 07:19 PM (UTC) |
Message
|
Twisol said:
I would suggest changing "bar" to "stat", but otherwise it looks like you've got a cool thing going there.
Yes this is still a work in progress. Just when it looks almost finished I start realizing major parts need redesigning. :-)
Should have a cleaner version soon. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Twisol
USA (2,257 posts) bio
|
Date
| Reply #153 on Thu 18 Feb 2010 07:27 PM (UTC) |
Message
|
Nick Gammon said:
So the telnet negotiation works fine? I haven't heard much either way.
Um, well I haven't really been able to use it with ATCP because I needed some way to reliably react to the IAC GA sequence after I've also parsed all the available ATCP data. I might've mentioned before that my current version uses a handwritten telnet state machine. It filters out ATCP-related messages and ships them to specific plugins that listened for them. When it spots the IAC GA, it sends a full list of the most recently received set of messages to all plugins that wanted that, too.
I'm sure the negotiation works fine now, it just didn't fit my needs. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | top |
|
Posted by
| Nick Gammon
Australia (22,973 posts) bio
Forum Administrator |
Date
| Reply #154 on Thu 18 Feb 2010 07:32 PM (UTC) |
Message
| Can't you use the new, simpler, state machine built into MUSHclient? And just detect IAC GA yourself? Or will things happen in the wrong sequence? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Twisol
USA (2,257 posts) bio
|
Date
| Reply #155 on Thu 18 Feb 2010 07:35 PM (UTC) Amended on Thu 18 Feb 2010 07:36 PM (UTC) by Twisol
|
Message
| I've thought about that, and I believe things will happen in the wrong sequence. I have to scan the packet to find the IAC GA, but the telnet sub-negotiation callbacks occur after that (as they should). The issue is more about not being able to find an IAC GA at any other point in time. =/
EDIT: And I am jokingly incredulous at "simpler"! XD My parser is incredibly simple, and would probably even misbehave if a few odd byte sequences came its way. (It's in ATCP.plugin/libraries/parser.lua, if you're curious) |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | top |
|
Posted by
| Nick Gammon
Australia (22,973 posts) bio
Forum Administrator |
Date
| Reply #156 on Thu 18 Feb 2010 08:19 PM (UTC) |
Message
|
Twisol said:
(It's in ATCP.plugin/libraries/parser.lua, if you're curious)
ATCP.plugin/scripts/parser.lua
I'm not saying yours isn't simple, if the client didn't support telnet negotiation, which it hasn't until recently.
However now all that can go out the window and let the client parse in C++ rather than Lua script space. Then you simply have:
function OnPluginTelnetSubnegotiation (telnet_option, data)
if telnet_option == 200 then
-- process ATCP here
end -- if
end -- function OnPluginTelnetSubnegotiation
Isn't that simpler than around 180 lines of code? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Twisol
USA (2,257 posts) bio
|
Date
| Reply #157 on Thu 18 Feb 2010 08:25 PM (UTC) Amended on Thu 18 Feb 2010 08:27 PM (UTC) by Twisol
|
Message
| I meant simpler as in less complicated. Mine is simple to the point of incredulity; yours is absolutely better. I was being tongue-in-cheek... although I'm more used to dry humor. ;)
(EDIT: Mine just uses a table of states and a single driving "parse" method to run through it. It's the first (and probably least-robust) method that came to mind, but then it was created for a single purpose) |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | top |
|
Posted by
| Twisol
USA (2,257 posts) bio
|
Date
| Reply #158 on Thu 18 Feb 2010 08:36 PM (UTC) |
Message
| You're too funny. ^_^
Quote: Added plugin callback Handle_IAC_GA
nickgammon (author)
about a minute ago |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | top |
|
Posted by
| Nick Gammon
Australia (22,973 posts) bio
Forum Administrator |
Date
| Reply #159 on Thu 18 Feb 2010 08:37 PM (UTC) |
Message
| Oh, sorry. I see it now. :)
Anyway, added new plugin callback OnPlugin_IAC_GA. That tells you when the IAC GA (or IAC EOR) arrives. So now you can use the telnet negotiation, and just use:
function OnPlugin_IAC_GA ()
-- process recent telnet negotiations here
end -- function
... to process your recent ATCP stuff. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Twisol
USA (2,257 posts) bio
|
Date
| Reply #160 on Thu 18 Feb 2010 08:38 PM (UTC) |
Message
| Thanks, Nick. A new release of the ATCP plugin will have to wait until 4.50 is officially released, but this will definitely make it easier to implement. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | top |
|
Posted by
| Nick Gammon
Australia (22,973 posts) bio
Forum Administrator |
Date
| Reply #161 on Thu 18 Feb 2010 08:49 PM (UTC) |
Message
|
David Haley said:
Even though it's difficult to ontologize all possible MUD data, ...
I had to reach for the dictionary for that one. Thankfully it cleared it right up:
–verb (used with object),-gized, -giz·ing.
to express in ontological terms; regard from an ontological viewpoint.
No, wait ...
Further digging seems to indicate the presence of God in this argument. Does this refer to MUD admins (often known as Gods)? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Twisol
USA (2,257 posts) bio
|
Date
| Reply #162 on Thu 18 Feb 2010 08:52 PM (UTC) |
Message
| A quick Google suggested this definition:
http://en.wikipedia.org/wiki/Ontology_(information_science)
Quote: In computer science and information science, an ontology is a formal representation of a set of concepts within a domain and the relationships between those concepts. It is used to reason about the properties of that domain, and may be used to define the domain.
I think David used it to mean similarly to "define"? |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | top |
|
Posted by
| Nick Gammon
Australia (22,973 posts) bio
Forum Administrator |
Date
| Reply #163 on Thu 18 Feb 2010 08:59 PM (UTC) |
Message
| So, not this meaning then?
Quote:
ontological argument
an a priori argument for the existence of God, asserting that as existence is a perfection, and as God is conceived of as the most perfect being, it follows that God must exist
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Nick Gammon
Australia (22,973 posts) bio
Forum Administrator |
Date
| Reply #164 on Fri 19 Feb 2010 04:36 AM (UTC) |
Message
| More progress:
This image shows:
- The status boxes show your "position" (eg. standing, fighting, sleeping)
- It now shows if you are following someone
- The group leader is shown with a small "crown" to indicate they are in charge of the group
- A "room" contents window has been added, which shows:
- Players in the room with you, including their level
- Mobs in the room with you, including their level
- Objects in the room with you, coloured in various ways depending on type
- The experience bar
- The room name and exits box
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
614,852 views.
This is page 11, subject is 23 pages long:
1
2
3
4
5
6
7
8
9
10
11 12
13
14
15
16
17
18
19
20
21
22
23
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.