Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Gatsby
Novice


Joined: 19 Dec 2006
Posts: 30

PostPosted: Mon Aug 06, 2012 8:52 pm   

share map
 
Hi,
How do i use the same map in 2 sessions, so that changes made in session 1 (or 2) are reflected in session 2 (or 1) ?
Thanks G
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Aug 06, 2012 10:11 pm   
 
1)create a new package (for example's sake, we will refer to it as Mapper)
2)in the package editor, click on the Session 1 main window and click on the Advanced tab
3)make sure that Mapper in the list of packages has a checkmark next to it
4)repeat 2 and 3 for Session 2's main window

At this point, you need to handle room scripts (assuming you have some). If both sessions have the same set of room scripts, you don't have to do anything special and can just continue with step 5. Since your map is now shared between sessions, you will need to decide where/how to store session-specific room scripts (they do not at all have to remain at the root level of the mapper object, so feel free to create an organizational structure that makes sense to you). You will also need to take a look at your common room scripts to make sure stuff doesn't end up firing out of order (ie, consider things that weren't in play when you had separate copies of the mapper object attached to each session).

5)move the mapper object you wish to keep to Mapper
6)delete any other remaining mapper objects

And that's all, folks. Locations (mapper dots) are created and maintained on a per-window basis and are created in the window objects themselves, so there's no need to fiddle with #LOCATION-related stuff insofar as map-sharing goes.
_________________
EDIT: I didn't like my old signature
Reply with quote
Gatsby
Novice


Joined: 19 Dec 2006
Posts: 30

PostPosted: Mon Aug 06, 2012 11:58 pm   
 
Thanks for this,

I tried it on my less importasnt session. When it loads it now has the mapper package next to the 'English directions', etc.. packages. When i open the Mapper package i can see the reference to my .dbm file, and in the left pane i can see mymud.Map and a bunch of rooms(?).

However, the map displayed is empty? (I deleted the original map module from the session package)
Reply with quote
Gatsby
Novice


Joined: 19 Dec 2006
Posts: 30

PostPosted: Tue Aug 07, 2012 11:08 pm   
 
Hello again,

I've been messing around with this all day, never worked. Map displayed in my 2nd session is empty. I guess that something goes wrong with the moving of the mapper object. At the end i just copy/pasted it from the 1st session to the 2nd session and got rid of the mapper package.
2nd session still has empty map, allthough it has the same structure now as the 1st?

Any help would be much appreciated.

Otherwise, are there ways to 'combine' several players in 1 session?

Thanks alot,
G

PS. Forgot to say, but reinstalled completely fresh version of cmud 3.34
Reply with quote
Mumra
Wanderer


Joined: 12 Feb 2003
Posts: 93
Location: USA

PostPosted: Sun Aug 19, 2012 8:55 pm   
 
Mr Lofton,

When you say ins step 5, move the mapper object you wish to keep to mapper. I don't follow you :\ I did the previous steps so now I have a common package between characters. But I totally don't understand the mapper object you were referring to. Could you further
explain the steps necessary ?
_________________
Mumra the Everliving, Realms of Despair
216.251.47.10 Port 4000
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sun Aug 19, 2012 9:52 pm   
 
If you look in the package editor, the mapper object will look something like this:
You need to move that into the shared package to share the mapper between sessions.
Reply with quote
Mumra
Wanderer


Joined: 12 Feb 2003
Posts: 93
Location: USA

PostPosted: Sun Aug 19, 2012 11:36 pm   
 
Ahh, Alright. Thanks a lot :)
_________________
Mumra the Everliving, Realms of Despair
216.251.47.10 Port 4000
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net