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
gamesover
Novice


Joined: 06 Jun 2007
Posts: 30

PostPosted: Mon Apr 26, 2010 8:47 am   

default settings is not for public used?
 
I have some general alias for each session

Therefore, I create an alias under default setttings folder, but it does not work correctly. In fact, it does not work.

I want to know the reason. Thanks
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Mon Apr 26, 2010 9:32 am   
 
Its just a template i believe, used to copy from when you start a new session.

What you want is a package with the commonly used scripts and add it to the package list of the sessions you want to use it.
_________________
Discord: Shalimarwildcat
Reply with quote
Ithilion
Wanderer


Joined: 02 Sep 2005
Posts: 85

PostPosted: Mon Apr 26, 2010 10:50 am   
 
nod, it's used as the template, you should just do what shalimar said and make a package and check it for each session :)
Reply with quote
gamesover
Novice


Joined: 06 Jun 2007
Posts: 30

PostPosted: Mon Apr 26, 2010 11:43 am   
 
I do not understand you very well.

Do you mean I need to create a commonly used scripts and import to each sessions I want to use?

Is there a way to creat a commonly used package and each session will call it automactically?
Reply with quote
Erasmus
Wanderer


Joined: 04 Aug 2004
Posts: 82
Location: Philadelphia

PostPosted: Mon Apr 26, 2010 2:33 pm   
 
This will point you in the right direction, but I am probably off in some of the fine details (sorry at work and don't have cMud in front of me)

Open the Package Editor
File -> New Package
You may need to name the package or something
In the new package create any aliases you wish to share across multiple sessions
Make sure the Module scoping is set to "Global" or "External Only"
Save the settings
Close the package window
Open the Sessions window
For each session you wish to use these aliases for:
Edit Session
Go to the tab called Packages or Files or something like that
The box at the bottom lists all the packaes that load for this session.
Select the Add Package button (+)
Select the package you just created
Click "OK"
Save changes to the session

When you open the session the new package with your aliases should load too.
_________________
Erasmus

Last edited by Erasmus on Mon Apr 26, 2010 8:34 pm; edited 1 time in total
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Apr 26, 2010 4:11 pm   
 
Alternative method:

Follow the previously described procedure to create the new package.
Then, instead of doing Edit Session to the other sessions, you open the session (probably in Offline mode)
In the session, double-click Settings
In the Package Editor window, click File|Open
In the Import Package window, select the new package containing your common scripts and click Open
From now on, when you run that session, that package will be loaded
Do the same for each session you want that package used in
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Mon Apr 26, 2010 8:03 pm   
 
No, there is no automatic method of doing this.
The general scripts package is about as easy as it gets though.
_________________
Discord: Shalimarwildcat
Reply with quote
gamesover
Novice


Joined: 06 Jun 2007
Posts: 30

PostPosted: Tue Apr 27, 2010 1:43 am   
 
Erasmus wrote:
This will point you in the right direction, but I am probably off in some of the fine details (sorry at work and don't have cMud in front of me)

Open the Package Editor
File -> New Package
You may need to name the package or something
In the new package create any aliases you wish to share across multiple sessions
Make sure the Module scoping is set to "Global" or "External Only"
Save the settings
Close the package window
Open the Sessions window
For each session you wish to use these aliases for:
Edit Session
Go to the tab called Packages or Files or something like that
The box at the bottom lists all the packaes that load for this session.
Select the Add Package button (+)
Select the package you just created
Click "OK"
Save changes to the session

When you open the session the new package with your aliases should load too.

Thank you very very much. I understand what should I do now.

One more question, is there a way to see currently existing package is for "local", "Global" or "External Only"? What's more, is there a way to change current package property to "local", "Global" or "External Only"? I mean, not to creat a new package, but just to change current package's property.
Reply with quote
Erasmus
Wanderer


Joined: 04 Aug 2004
Posts: 82
Location: Philadelphia

PostPosted: Tue Apr 27, 2010 2:34 am   
 
Quote:
One more question, is there a way to see currently existing package is for "local", "Global" or "External Only"? What's more, is there a way to change current package property to "local", "Global" or "External Only"? I mean, not to creat a new package, but just to change current package's property.


The scoping setting is actually set at the module level not at the package level (although the scope itself is by package). Select the module item in the tree panel, and it will display options for Global, Local Only, and External Only. This defines what packages the module is making itself visible to. To the right of that is a box that lists all the different packages loaded for that session. In this box you can select what particular packages the module will pay attention to.

It's a little confusing. I got an understanding just by playing around with it. Create a simple alias that does something like #ECHO Hello, and change the settings around and see what happens when you try to use the alias.
_________________
Erasmus
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