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: 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.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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.
Reply with quote
Zugg
MASTER


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

PostPosted: 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.
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: 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.
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: 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?
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Fri Jun 18, 2010 7:17 pm   
 
That's another known bug. Can you post a simple script to reproduce your first issue?
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: 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.
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