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
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Sun Nov 07, 2010 4:12 pm   

Package Question
 
I have a package that I load into one mud session. I know that when you download the package from the package library it puts it into the package directory. Then you open the package to load it into your mud session.

Now my question is I also want to load this package into another mud session, but I don't want to use the save saved setting of the package for the other mud session because it will have different values in the global variables. How you do this? Do you load it into your session than do a save as and put it somewhere else?
_________________
Run as hard as a wild beast if you will, but you won't get any reward greater than that destined for you.
Source: (Egyptian)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Nov 07, 2010 7:29 pm   
 
You have two options:

1)in the session that originally has this package, remove all the variables. Since you'll obviously want them back, a simple cut and paste procedure will allow you to first save the variable-less package as something else and then replace the variables (keep in mind that if the variables are in multiple locations you will need to manually move them back to their proper places).

2)just load the package to your new session and use the #RESET command to reset variables back to a starting point (ie, blank). I know the command allows you to limit itself to specific settings, but I dunno if you can reset individual packages. Be prepared to use it multiple times unless you just want to reset all your settings in all your packages.

If the package doesn't need to save values across sessions, you can also just set the default values to whatever you want the package to start with and those values will be populated whenever the package gets loaded.
_________________
EDIT: I didn't like my old signature
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Sun Nov 07, 2010 9:36 pm   
 
I found another way to do it... What I did was opened the package then did a save package as, which then let me save the package to a different location. Which I created a package directory under my mud's directory name.
So any package I load I save it under a package directory under the specific mud's directoy name.
Works like a charm.
_________________
Run as hard as a wild beast if you will, but you won't get any reward greater than that destined for you.
Source: (Egyptian)
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