Started by Vladki, January 08, 2021, 08:51:51 PM
0 Members and 1 Guest are viewing this topic.
Quote from: Ranran on December 18, 2020, 09:10:11 AMAs previously reported, there is an issue where the save version cannot be read correctly. The version will be blank. (It is saved correctly just because it cannot be read. If you use an old client, you can check that the version information is recorded in the save data created by the current client)I think that is the cause.One of the possible problems seems to be the incorrect version. (Or the part related to this is incorrect)Code Select Expand#define SIM_SAVE_MINOR 7#define SIM_SERVER_MINOR 7But I have no idea what this version should be.For example, current nightly build can't recognize the saved game version recorded by itself, but the it will read recorded version if you change it. But I couldn't find the number to read its own saved game.
#define SIM_SAVE_MINOR 7#define SIM_SERVER_MINOR 7
/* // read pak_extension from file loadsave_t test; test.rd_open(fname); // add pak extension pak_extension = test.get_pak_extension(); // now insert in hash_table sve_info_t *svei_new = new sve_info_t(pak_extension.c_str(), sb.st_mtime, sb.st_size, test.get_version_int(), test.get_extended_version()); // copy filename char *key = strdup(fname); sve_info_t *svei_old = cached_info.set(key, svei_new); delete svei_old; */
./simutrans-extended -load test.sve