|
gamesover Novice
Joined: 06 Jun 2007 Posts: 30
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Ithilion Wanderer
Joined: 02 Sep 2005 Posts: 85
|
Posted: 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 :)
|
|
|
|
gamesover Novice
Joined: 06 Jun 2007 Posts: 30
|
Posted: 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? |
|
|
|
Erasmus Wanderer
Joined: 04 Aug 2004 Posts: 82 Location: Philadelphia
|
Posted: 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 |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
gamesover Novice
Joined: 06 Jun 2007 Posts: 30
|
Posted: 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. |
|
|
|
Erasmus Wanderer
Joined: 04 Aug 2004 Posts: 82 Location: Philadelphia
|
Posted: 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 |
|
|
|
|
|