Talk:Achievement file format

From Official Factorio Wiki
Revision as of 04:44, 2 August 2024 by O2theC (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • I have fully mapped out the achievements-modded.dat file and updated the page to reflect, i split the page into a achievements.dat and achievement-modded.dat sections, there are some odditys but they seem to be consistent, it is confirmed that for both files, tracked achievements are stored as shorts to refrence the index of the achievement set earlyer in the file, for some reason there can be shorts with value 0, not sure why, best guess is old achievements that were tracked but were completed, while i tried my best to stay with the theme and wording of the wiki and the content that was there before, i feel that what i have added may not be clear, having someone else do a look over (peer review?) to make sure it's as clear as it can be would be useful, also it should be looked into whether the 2 sections can be condensed back into 1 since there is some redundant information O2theC (talk) 04:43, 2 August 2024 (UTC)
  • so i went into the modded formated and my god is it different, the normal header and all before is the same , seems like the same index values as the normal one (for my copys of the files), but after it goes weird, first it has an array which uses an int rather than short for length like previous arrays and then it goes SO String (ach type), SO String (ach name), then bytes[*], which is varible length based on ach type, what is weirder is that the research-achievement type has no data bytes, it does in the normal format but in the modded one is has no data bytes, and i had 2 achs with it and it was consistent , so weird , there also seems to be 4 bytes at the end of the file , not sure what they do yet O2theC (talk) who knows when i made this, i forgot to add the ~s
  • i think i have the correct format now and the page is updated to reflect it, during some testing it looks like the modded file almost seems to repeat some things and the repeated part uses a format that looks similar to what this page showed before, gonna check it out more tomorrow O2theC (talk) 01:27, 1 August 2024 (UTC)
  • the starting format is not complete, similar to mod settings format, there is a bool set to false right after the version string, the page has been adjusted to reflect this O2theC (talk) 19:56, 31 July 2024 (UTC)