ID:139850
 
Code:
var/ShadowWorld="//localhost:9000"

mob/verb/shout(Msg as text)
world << Msg
world.Export("[ShadowWorld]?shout:[Msg]")

world/Topic(T)
if(findtext(T,"shout:") == 1)
world << copytext(T,7)

The above code is straight from using F1 in Dream Maker

Problem description:
I'm trying to send a message between games using examples from the DM reference, but the recieving world isn't getting Msg. Both games have the exact code, above, but ShadowWorld is different; 9000 and 9001.

A blank space is sent back to the sending server instead:
Test message


Am I missing something or doing something wrong here?
Your copytext() there is starting at index 9, which is two spaces after the end of the "shout:". If you are trying to send the message "hi", that'll end up cutting that off and finding nothing. It should be copytext(T,7).
In response to Garthor
Thanks, fixed. But the same problem is still occurring. If copytext was the problem I would have received "st Message".

Is there anything else I'm doing wrong here?
In response to Magicbeast20
You need to add the prefix to the url i.e "byond:"
In response to Pirion
Pirion wrote:
You need to add the prefix to the url i.e "byond:"

Thanks! That fixed the problem.