Ding, an idea, how do I?

Posted by David Berthiaume on Tue 26 Apr 2005 03:13 AM — 9 posts, 43,071 views.

#0
How do I send information between worlds?

I think, that I can pretty much make what I want with output windows combining Phantom, and other world files. using phantom.

All I need to figure out is how to transfer data from my active mud world file, to the phantom world.
USA #1
Well.. Phantom isn't really designed to talk between worlds, just echo what is sent directly back. You could probably use UDP and have one world listen to the port, while the other sends, but its would be just a simple to use UDP to have them talk directly world to world. Frankly.. I can't think of any way Phantom will even do what you want without changes that would make it work as a true proxy, which would mean each world using a different port to send/recieve.
#2
Well, my idea was to use a world connected to Phantom to dump data into, even if it's just as a world.note.


Basically, the idea is to dump chat info into it.
USA #3
Whats wrong with using the Chat Protocol?
Or UDP packets?

What are you trying to do? Just echo what one person sees onto another screen? And then send stuff back to the original world (to get sent to the server?)
#4
My idea was to use a "Phantom world" port as an output window.

Send the chat channels to the world that is connected to Phantom.

Basically, we can't have output windows. The question is can I send information from the world connected to the mud, to a world connected to a phantom port.
USA #5
Why don't you just use the chat protocol to forward the information?
#6
Well, I don't know how to do that. I played with it a bit, but I couldn't figure it out.

Oh well, it was an idea, if I can't do it, then I can't do it. I figured if you could send data from one world to another it would basically do what I wanted it to do.
USA #7
Yeah, You can do that with the chat protocol. Or UDP packets, but the chat protocol is a little less raw.

Chat isn't that difficult, once you get a feel for how it works. And actually, if I understand your question correctly (and you just want to route ALL the information to the other world) then you can just use snoop, which is already implemented. Except that you won't get anything except output (no notes), and you can send commands too (which is also pre-implemented).
Sending channel type things to a chat person is exactly like a notepad, except it's a chat command insteadof a "sendtonotepad".

Here's nicks rundown of basically everything you can do with the chat protocol:
http://www.gammon.com.au/mushclient/chat.htm
(it's also at the top of the mushclient forum)

I couldn't find the other data page (I remember one with a table of all the message types, including the ZMud ones).

Of course, there's the helpfile:
http://www.gammon.com.au/scripts/doc.php?general=chat

And then the plugin has some good info too (or at the very least a whole lot of examples).
Amended on Tue 26 Apr 2005 05:42 AM by Flannel
Australia Forum Administrator #8
Quote:

How do I send information between worlds?


The answers sound more complicated than the question. You can get a reference to another world and simply call script functions in the other world. See:

http://www.gammon.com.au/scripts/doc.php?function=GetWorld

Of course, the chat protocol will do that too, in which case the worlds can be on different PCs