 |
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Fri Jun 18, 2010 4:28 am
[3.19f] Sorted DB Records |
The sorting no longer works. If you check Sorted, it no longer sorts when you add new records. It used to do this.
|
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Fri Jun 18, 2010 2:25 pm |
It does sort, you just have to exit the view of that variable and go back to it to see that it is now sorted.
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 18, 2010 4:56 pm |
Rahab is correct. Changes you make in the editor only take effect when you save the variable. There are a couple of bugs in the Variable Editor that are fixed for the 3.20 version later today that will properly update the list when you click Save Changes and which will properly handle the new additional sort options, so you might want to wait for that before playing with the Variable Editor too much.
|
|
|
 |
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Fri Jun 18, 2010 6:57 pm |
Never mind. I am not sure what is going on there. Anyway, I add the values through code not the editor and then do a #loopdb and print %key : %val. Earlier it was not printing them in order. I just checked it again inside the editor and the values are indeed sorted and it prints them sorted...weird. Maybe it is because I exported and reimported XML of everything? I dunno what happened. All I know is it just stopped printing them in sorted order yesterday. Seems to be working fine now.
|
|
|
 |
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Fri Jun 18, 2010 7:13 pm |
Okay additionally I have Use Default checked on that variable, but the values were saved and still in it when I open the editor offline... There shouldn't be any values saved correct?
|
|
|
 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Fri Jun 18, 2010 7:17 pm |
That's another known bug. Can you post a simple script to reproduce your first issue?
|
|
|
 |
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Fri Jun 18, 2010 7:50 pm |
GeneralStonewall wrote: |
That's another known bug. Can you post a simple script to reproduce your first issue? |
Not really. I am not sure what happened yesterday. Here is the simple code that is used. The first one just get the values from a trigger and the second loops through and prints them.
Code: |
#if (%ismember( %1, @enemies)) {#addkey locations %1 %2} |
Code: |
#loopdb @locations {
#print {<color red> %key </color><color silver>: %val</color>}
} |
Pretty simple. |
|
|
 |
|
|