Wings 3D Development Forum
Under what conditions would Wings3D rewrite Preferences.txt file ? - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Gripes & Grumbles (https://www.wings3d.com/forum/forumdisplay.php?fid=4)
+--- Thread: Under what conditions would Wings3D rewrite Preferences.txt file ? (/showthread.php?tid=1145)



Under what conditions would Wings3D rewrite Preferences.txt file ? - ggaliens - 04-13-2015

Under what conditions would Wings3D rewrite Preferences.txt file ?

I'm doing custom development , and have 7,8, or more preferences scattered about in Preferences.txt file

I think I was editing preferences.txt and who knows ... maybe I saved as rich text by mistake. Syntax error, missing comma. But i restarted via batch file ... and then all was gone. Preference.txt seemed to be rewritten as new and basic.

I wish I had backed it up.


RE: Under what conditions would Wings3D rewrite Preferences.txt file ? - micheus - 04-13-2015

(04-13-2015, 03:20 PM)ggaliens Wrote: Under what conditions would Wings3D rewrite Preferences.txt file ?
As I had noticed that happens always the file is corrupted in some way (load fail).

I noticed that exactly when I was trying to change the code to load files with unicode content. I had implemented the preferences.bak creation when default load has failed, but as the code was replaced for a better and shorter one, that change ended by being lost. (local_consult)

It didn't was implemented until now, maybe because no one have experienced a real situation where preferences could be be corrupted.
What you and me were doing is a no correct use of that file.