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


Joined: 21 May 2020
Posts: 32
Location: The Netherlands

PostPosted: Fri May 27, 2022 11:14 pm   

Move generic code out of session file, how? in mud file?
 
How do you make a database variable that is the same for all characters, but not stored for every character (I have a separate session file for every character, since they all have different abilities/buttons),
but some things are not specific to the character, but work for the whole mud, all characters.

For instance a database.
It would be unwise to have such a table for every character in the mud...

key (full name of the item)````````value (keyword of item to use)
a frosty dragonhide bracer ````````frosty-bracer

key (full name of the mob as shown on screen)````````value (keyword of mob as used to attack it)
The darkhaven guard`````````````````````````````guard

I could think of making such tables that contains most items and mobs in the game. But not if I would have to store it separately for all my 65 characters.
There are things that are mudwide, and things that are unique to each character.
Eventhough it is always good to have a backup. And a more certain way to store some things would be welcome too (library) cause sessions get corrupted often.

'ld say a library could be used for that, but I believe you have to upload a library to the Zugg mudlist before you can use it?
Since you have to login with your zugg forum name to edit a library package. And creating a new one cant be done by the cmudpro software.
I'ld want it just for myself, and maybe a couple of friends.
Reply with quote
shalimar
GURU


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

PostPosted: Sat May 28, 2022 11:41 am   
 
You would stick it in a separate package that all your characters use.

These packages can be shared via the CMUD library as well.

You can create the package from the settings editor.

You need to edit your session file to add the package to it (after it is created), there is a packages tab you can add to the list from.
_________________
Discord: Shalimarwildcat
Reply with quote
foldar
Novice


Joined: 21 May 2020
Posts: 32
Location: The Netherlands

PostPosted: Mon Oct 03, 2022 3:42 pm   Bug with generic packages
 
I made a general package with triggers and speedwalk buttons now.
If I load a character that has the package, and a character without the package, both characters get all triggers and buttons inside the package.
It doesnt matter which of the two logs in first.
If I only load the character without the package, he doesnt have it. He gets the package when I log a character that does have the package.
Thats a bug? My storage is not supposed to have the package with speedwalks, he never moves anywhere, just sits on darkhaven[].
Yet if I log the storage mostly another character that does have the package is open.

Also triggers have been mysteriously disappearing from the package.
Well maybe I just didnt specifically save them. They should have saved though the moment I pasted them in.

Why am I listed as beginner? If you make me advanced I can brag about it :) I am not guru though, like you.

With kind regards,

Foldar
Reply with quote
shalimar
GURU


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

PostPosted: Thu Oct 06, 2022 2:02 pm   
 
Sounds like you are running both characters in the same instance of CMUD.

When a side package is loaded into the group session, all windows will have access unless you expressly limit them.
If you select the window object in the settings editor and go to the advanced tab, you can turn off those packages you don't want to be active.

P.S. titles short of guru and admin are dependent on post count.
_________________
Discord: Shalimarwildcat
Reply with quote
foldar
Novice


Joined: 21 May 2020
Posts: 32
Location: The Netherlands

PostPosted: Thu Oct 06, 2022 2:23 pm   
 
Switching the tab off works, and after i switched it off it didnt load anymore for the storages.

I do think it is not how it should be though.
If you have ten tabs every tab gets all packages of the other 9 active tabs too. (10 times the same, plus one general package for me)
That seems kind of inefficient and time consuming to me.

With kind regards,

Foldar
Reply with quote
shalimar
GURU


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

PostPosted: Thu Oct 06, 2022 9:55 pm   
 
This is why I suggest that people run each character in a separate instance of CMUD, to avoid that headache.
_________________
Discord: Shalimarwildcat
Reply with quote
foldar
Novice


Joined: 21 May 2020
Posts: 32
Location: The Netherlands

PostPosted: Fri Oct 07, 2022 6:00 am   
 
Sometimes I do that, but then I loose the #all command, and the aliasses to log and logoff multiple players automatically.
I think if you start up cmudpro multiple times, you loose some important multying commands.

logon: #session Foldar

logoff: :Foldar:quit;#wa 100;:Foldar:#DI;#close Foldar;

I have up to 8 characters in the alias, since you can login up to 8 alts at the same time for realms of depsiar
Reply with quote
shalimar
GURU


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

PostPosted: Fri Oct 07, 2022 2:02 pm   
 
This is true.

Is it more trouble dealing with package scope or losing the multi commands?

You have to deal with either one headache or the other.
Choices are funny like that sometimes.
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


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

PostPosted: Fri Oct 07, 2022 2:22 pm   
 
It is possible to toggle to relegate the scope issue to script... but that is some ugly code.
_________________
Discord: Shalimarwildcat
Reply with quote
foldar
Novice


Joined: 21 May 2020
Posts: 32
Location: The Netherlands

PostPosted: Fri Oct 07, 2022 2:39 pm   
 
The multi commands are really needed if I multi. But sometimes when 1 alt is only leveling, or bot - farming some item for hours he can be in a separate cmud instance.
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