State files in wrong place

Posted by Xinefus on Thu 03 Sep 2020 07:52 PM — 3 posts, 13,936 views.

#0
Fiendish said:

Put it anywhere that isn't protected by the OS. Many people choose their desktop or documents folders. I make my installer default to the desktop for this reason.


Ok, I don't know what I did and not even sure how it is happening. I installed MUSHClient on my desktop.

Everything was going fine until I decided to delete my state files to do a fresh load of a world.

My state files started to save within the folder that I have placed inside of 'world/plugins'. Is this something that is supposed to happen? They are not in a 'state' folder, just mixed in with my plugins and now interfere with loading up of my client. Is there a way to revert this?

Any advice?
#1
I did a fresh install and it's all working right again. But is there something I need to avoid to prevent that from happening again?
Australia Forum Administrator #2
The function GetGlobalOptionList shows all the global options (the default location of the state files is one of those):


for k, v in pairs (GetGlobalOptionList()) do 
  Note (v, " = ", GetGlobalOption(v)) 
end


In my case:


...
PluginList = 
PluginsDirectory = C:\Program Files (x86)\MUSHclient\worlds\plugins\
StateFilesDirectory = .\worlds\plugins\state\
...


Possibly the option StateFilesDirectory was (somehow) changed to be something different.