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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Tue Aug 31, 2010 3:38 pm   

[3.24] The New #TEMPVAR
 
I noticed there is a new option to check if you want to make a variable Temp in the editor. However, if you check Temp and then save it, when you look at the variable again it has Use Default checked instead and Temp is no longer checked. It doesn't want to allow you to make it a Temp variable through the editor. Also even if you add #TEMPVAR through code it doesn't save it as a Temp variable (if you copy it anywhere to move it).

Maybe just make the Temp option read only since these variables get deleted upon closing the session anyway or just remove it and add a new option in the menu to create a Temp Variable and remove the Use Default and other options for Temp Variables since you can't use them anyway?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Aug 31, 2010 5:00 pm   
 
Yeah, this is left over from before all variables were optimized to not write to the database all the time when the #NOSAVE command was being used. It used the "Use default" flag to mark a variable as #NOSAVE. There must still be some code somewhere that is causing it to get confused with the new Temp option. Added to bug list.

The problem with the "Use Default" option was that while it prevented the *value* of the variable from being saved to the *.PKG disk file, it didn't prevent the variable record itself from being saved. The Temp option is supposed to prevent it from being saved to the disk file at all.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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