My Status Attributes Reordered?
Kieron_59
04 Aug 2013, 12:50I'm typing in status attributes through the game-player tab, but I have this problem with any status attribute field.
I type them in the order I want them, but when I go to another object or test play, they're randomly rearranged.
Is there anything I could do to stop this? It might be something to do with the dictionary, I dunno.
I type them in the order I want them, but when I go to another object or test play, they're randomly rearranged.
Is there anything I could do to stop this? It might be something to do with the dictionary, I dunno.

jaynabonne
04 Aug 2013, 14:09If you could post some sample code, that would be helpful. Then we can suggest changes from there.
I had the same problem before. I was constantly changing the status variables, adding and removing then on each turn. And the variables kept changing order. It is a function of the dictionary. The solution I found was to remove the items in the opposite order from what I did when adding. But I have no idea if that applies to your case without being able to see some code.
I had the same problem before. I was constantly changing the status variables, adding and removing then on each turn. And the variables kept changing order. It is a function of the dictionary. The solution I found was to remove the items in the opposite order from what I did when adding. But I have no idea if that applies to your case without being able to see some code.
Kieron_59
04 Aug 2013, 16:16When I delete an attribute, I delete them all and redo it. I have a screenshot of all the steps I took after clearing the Status Attributes.
http://s1317.photobucket.com/user/Kiero ... sort=3&o=0
I'm not a programmer, so I don't even know if this behavior can be changed.
Thank you for taking the time to help me with this.
http://s1317.photobucket.com/user/Kiero ... sort=3&o=0
I'm not a programmer, so I don't even know if this behavior can be changed.
Thank you for taking the time to help me with this.

jaynabonne
04 Aug 2013, 23:04I tried what you showed, and it works for me - no reorder. So I suspect there's something in your file that is not right. Any chance of posting it (or a stripped down version)?
Kieron_59
04 Aug 2013, 23:37Here you go:
I've had this problem in several other projects since Version 5.2, but I can't seem to recreate it either. Hmm.
I've had this problem in several other projects since Version 5.2, but I can't seem to recreate it either. Hmm.

jaynabonne
05 Aug 2013, 00:25Try this:
1) Go into your game and delete the Weight status entry on the Game / Player tab.
2) Save the game
3) CLOSE THE GAME
4) Re-open the game
5) Add the weight status entry again
Option 2:
Go into Code View and manually move the Weight dictionary entry.
What seems to happen is that if you don't exit the game, there is some sort of memory of where the Weight entry was, and it puts it back in the same place.
1) Go into your game and delete the Weight status entry on the Game / Player tab.
2) Save the game
3) CLOSE THE GAME
4) Re-open the game
5) Add the weight status entry again
Option 2:
Go into Code View and manually move the Weight dictionary entry.
What seems to happen is that if you don't exit the game, there is some sort of memory of where the Weight entry was, and it puts it back in the same place.
Kieron_59
05 Aug 2013, 22:49Thank you. It all working now.