|
Jesse-Linoge Newbie
Joined: 08 May 2009 Posts: 4
|
Posted: 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. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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.
|
|
|
|
|
|