Understandably.....
Right now the script writes the language value to config.ini, but it doesn't seem to be able to read this value when the game starts. What could be the problem? What to check?
for example:
2:02:32.233:config.ini: Unknown Field: TextLanguage
2:02:32.404:-- * --
2:02:32.404:config.ini exists
2:02:32.404:retrieving settings from config.ini
2:02:32.404:file is currently linked to Data.vis
2:02:32.404:window mode is currently set to Windowed
2:02:32.404:[string "(30,20)"]:50: call to setValue on object Unnamed (eGame,-1) failed
2:02:32.404:stack traceback:
[C]: in function 'debugerror'
[string "function debugfunc(err) debugerror(err) end"]:1: in function 'debugfunc'
[C]: in method 'setValue'
[string "(30,20)"]:50: in function 'read_ini'
[string "(8,11913)"]:1: in main chunk
2:02:32.404:Failed to run string in Lua:
2:02:32.404:String content: read_ini()
Apparently I need to edit something in the script itself. But where and what I can not understand. I am using script from wiki
A couple more explanations:
I added read_ini() to the initial actions in the game properties.
The "cfg_update" condition is always true for me, i.e. the idea is that if the player enters the settings menu, changes something or does not change, write_ini () occurs anyway when exiting this menu.
It seemed to me so much easier than changing this parameter to true every time after certain changes in the settings