category:set sort order - Doesn't seem to update XML file

Help each other out

category:set sort order - Doesn't seem to update XML file

Postby m_ski on Mon Oct 31, 2005 12:27 pm

I am using the 'category:set sort order' to sort a database on the fly in my skin but am experiencing some slightly strange behaviour.

It seems that after I sort a database the sorted XML file does not get saved to disk. I know this because I am making some changes to the database in a VB.NET plugin (directly on the XML file) and when I refresh the database in xlobby the sort order has been screwed up.

2 questions really..
1) Has anybody used 'set sort order' much and had any problems with it?
2) Should xlobby save the xml file after the 'set sort order' command? (One for Stephen I guess)

Thanks for any help you can give.
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby m_ski on Mon Nov 07, 2005 12:24 pm

I found a solution to this by using 'save to variable' and then saving this variable back to the same place in the category using 'variable set'. This seems to force a save of the xml file.

I believe this is a bug so I'll raise it in the bug forum.
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom