dapanda
Member
I know there is a bug report with this but I have a tangent question and I wanted to give the background. I run mafia on Windows and use Chrome to run the relay browser.
Bug report:
In the past my _prefs.txt file has been reset to default a few times and I don't know what would cause it. In the past 6 months, not counting today, it has happened probably 3 times. My computer is pretty stable with no power loses and when the script is done running it runs cli_execute("quit"); to exit. Each time it happened in the past I would update to the latest build and rebuild the preferences by hand as I remembered them.
In the last 24 hours my _pref.txt has been reset twice. Below are the details:
-Running r27334 after rollover last night, I boot up mafia and discover that all my preferences are gone. There was no issue the previous kol day that I know of (as my scripts will fail if the prefs file gets reset.)
-I go to download the latest version of mafia off of ci.kolmafia.us: r27410
-I move the new version to my kolmafia file and I set the pref file as best I could when my script runs into a problem.
-I run probably 50% of the script and keep running into my script aborting because of prefs not being set so I decide to finish it up tomorrow.
-I leave mafia open and I come back this morning to finish my turns, (computer was on all night, no power outages or program crashes)
-I clicked on the map icon in the browser window (I run kolmafia with chrome) to have kolmafia reconnect. I had it at http://127.0.0.1:60080/game.php.
-Nothing happens so I click on the map in the kolmafia window.
-kol opens in a new browser window and upon loading "Ezandora guide relay" I notice that all my tasks have reset as if I could use them again.
-Checking the pref file and kolmafia in program settings, it has returned everything to default, from my breakfast settings to zone adventuring choices as it normally does.
-Checking the settings folder a dapanda_prefs.bak file was created but it only had one line in it: lastKingLiberation=174
Is there a script or command that will check and update your prefs file with the iotms and areas you have access to along with skill count (like manual of numberologys)? I haven't been able to find this and maybe I am not just looking in the right area of the site.
Bug report:
Feature - Implemented - Prefs file backup/restore Draft PR
Based on some chatter elsewhere I thought we might try to help users who are losing their prefs files by creating a backup after we successfully load prefs. Not sure if it would help, but it might. There are a lot of possible approaches and the code is working for basic use cases (prefs don't...
kolmafia.us
In the past my _prefs.txt file has been reset to default a few times and I don't know what would cause it. In the past 6 months, not counting today, it has happened probably 3 times. My computer is pretty stable with no power loses and when the script is done running it runs cli_execute("quit"); to exit. Each time it happened in the past I would update to the latest build and rebuild the preferences by hand as I remembered them.
In the last 24 hours my _pref.txt has been reset twice. Below are the details:
-Running r27334 after rollover last night, I boot up mafia and discover that all my preferences are gone. There was no issue the previous kol day that I know of (as my scripts will fail if the prefs file gets reset.)
-I go to download the latest version of mafia off of ci.kolmafia.us: r27410
-I move the new version to my kolmafia file and I set the pref file as best I could when my script runs into a problem.
-I run probably 50% of the script and keep running into my script aborting because of prefs not being set so I decide to finish it up tomorrow.
-I leave mafia open and I come back this morning to finish my turns, (computer was on all night, no power outages or program crashes)
-I clicked on the map icon in the browser window (I run kolmafia with chrome) to have kolmafia reconnect. I had it at http://127.0.0.1:60080/game.php.
-Nothing happens so I click on the map in the kolmafia window.
-kol opens in a new browser window and upon loading "Ezandora guide relay" I notice that all my tasks have reset as if I could use them again.
-Checking the pref file and kolmafia in program settings, it has returned everything to default, from my breakfast settings to zone adventuring choices as it normally does.
-Checking the settings folder a dapanda_prefs.bak file was created but it only had one line in it: lastKingLiberation=174
Is there a script or command that will check and update your prefs file with the iotms and areas you have access to along with skill count (like manual of numberologys)? I haven't been able to find this and maybe I am not just looking in the right area of the site.