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
Jesse-Linoge
Newbie


Joined: 08 May 2009
Posts: 4

PostPosted: Thu Aug 04, 2011 3:54 pm   

#ADD weird behavior saving variables between sessions
 
I can't reproduce this consistently but it happens often enough.
#ALIAS test {#ADD example.record 10}

If you have that alias type in test 5 times example.record has had 50 added to it if you shut down cmud and reload half the time example.record is not being saved it goes back to an earlier value.
If I do something that causes another variable to be changed after running test a few times it seems it gets saved fine.
If the test alias is example.record = @example.record + 10 It also gets saved all of the time.
The only time I have the problem is with #ADD
Like I said I can't reproduce consistently, can anyone reproduce this too?

Sorry about wrong forum can't find anyway to delete.
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Aug 05, 2011 6:15 pm   
 
I think sometimes doing a change to a keyed value in a variable doesn't flag the parent variable in the database as being changed, so it doesn't get saved. I'll see if I can reproduce this. Most functions/commands handle this but I might have missed that with #ADD since it's more left over for old zMUD compatibility.
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