tolga Posted June 20, 2023 Posted June 20, 2023 Hi, I'm storing a custom variable in "default.config" and read the value as Config::getFloat() function in Unigine 2.13, but it constantly reverts itself and deletes my custom variable. I don't know whether it's the best place to store it, but am I doing something wrong? Thanks.
silent Posted June 21, 2023 Posted June 21, 2023 tolga Please check if you do not calling -config_readonly 1 on engine start-up and in the *.config file itself try to change autosave="0" to autosave="1". Maybe that would help. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
tolga Posted June 22, 2023 Author Posted June 22, 2023 (edited) Is it by default readonly? Because, I'm not calling it with -config_readonly 1. Also it's already autosave="1" in the default.config. Thanks. Edited June 22, 2023 by tolga
silent Posted June 23, 2023 Posted June 23, 2023 Try to set config)readonly to 0 explicitly and see if that change anything. If nothing helps, we would need a small repro code so we can see that behavior on our side and debug it. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts