Issues writing to config (ini) files from multiple servers
Posted: Tue Jul 25, 2017 11:04 pm
I have multiple UT servers running on the same physical host. They each run a mod called BTPlusPlus which uses an external config file (BTRecords.ini) to hold records about flag capture times on maps.
Ideally, all of the servers would share a single BTRecords.ini file and records would therefore be consistent across all servers.
However in practice this is not possible because when one server writes data to the file (for example when a new record is made or when the server changes maps), it overwrites the changes made by the previous server. It's my assumption that this is because of the way UT handles reading and writing config files - I'm guessing that it holds a copy of the config in memory and then every time a change is written, it dumps the whole thing out (instead of intepreting and editing the file on-the-fly).
Does anyone wiser than me know if the above is correct, and if so, if there's anything I can do about it short of creating a messy workaround using external scripts or something?
Ideally, all of the servers would share a single BTRecords.ini file and records would therefore be consistent across all servers.
However in practice this is not possible because when one server writes data to the file (for example when a new record is made or when the server changes maps), it overwrites the changes made by the previous server. It's my assumption that this is because of the way UT handles reading and writing config files - I'm guessing that it holds a copy of the config in memory and then every time a change is written, it dumps the whole thing out (instead of intepreting and editing the file on-the-fly).
Does anyone wiser than me know if the above is correct, and if so, if there's anything I can do about it short of creating a messy workaround using external scripts or something?