Keeping worlds separate during multiplay

Posted by Graymane on Sun 13 Jul 2014 09:21 PM — 6 posts, 26,339 views.

USA #0
Ok, I have a world file for my mud which allows multiplay. I've been working on a set of plugins for this mud and am now ready to start using multiple characters.

How exactly do I make this work? I couldn't seem to launch a second copy of my mcl file. So I made a copy of it and renamed it. Now when I run both world files, triggers are interfering with each. How is possible that the two world files are sensing each other's inputs and triggers?

I don't even know where to start to track this down. I have a lot of plugins and triggers I've created for this mud.

Must of the topics devoted to multi play seem to be about how to make them work together rather than keep them apart -) Is there some kind of general architectural guide to multiplay?
Australia Forum Administrator #1
That shouldn't happen. Each world file is separate.

Quote:

Now when I run both world files, triggers are interfering with each.


Can you elaborate on what is happening?
USA #2
If you look at one of my last topics, I asked something similar for enabling triggers based on which character I was logging in. You might get away with something similar for your triggers.
Australia Forum Administrator #3
Further to my reply, please copy and paste a relevant trigger (one that is interfering) here.

Template:copying
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.


Then describe in what way this interference is occurring.
USA #4
Ok, I figured out what it was. I had a multiline trigger that had some issues. The char I designed the plugins with was configured to send a newline with input and my other chars didn't have that. So what happened was that the multiline trigger got stuck waiting for input. When I logged in my other char and moved around in the same room, that shows up as mud world output and was picked up by the bad multiline trigger.

I'm still stuck trying to figure out why my world files have to be different? Why can't I use the same world file with different characters at the same time?
Australia Forum Administrator #5
Well, you need multiple copies at runtime because each one maintains a connection to the server. I suppose you are asking why can't they all be the same actual disk file? Under MFC (the library it is compiled under) it assumes that if you open the file multiple times you actually want the same one again (eg. a word processor).


Also if you have world variables which change (which a lot of people do) then you need different actual files because when it saves it would overwrite the previous copy.

To have a similar treatment (eg. trigger set) for multiple characters I suggest putting them into plugins, and then share the plugins. Each plugin has its own "save state" file which works around the issue of saving variables.