#6 Sort event inside modules when rollback

Closed
opened 5 years ago by LecygneNoir · 2 comments
Owner

Thea 2 refuses to import some modules after rollback with errors about somes nodes, usually the first one, even if there is no particular error inside the file.

My best guess is the game await event in the numerical order (event 0 the first, 1 the second, ...) in the file, probably because of sequential loading.

Indeed file exported from the game are in this order, and those with the import problem are all disordered.

We need to sort event when rollbacking to have the exact order from the original file. As all events are numeroted, it should be possible to do that during the rollback.

To be more precise, files inside:

https://git.lecygnenoir.info/LecygneNoir/thea2Shattering_i18n_tools/src/branch/master/Translation/fr/game_files/Modules

should be identicals to:

https://git.lecygnenoir.info/LecygneNoir/thea2Shattering_i18n_tools/src/branch/master/Modules/game_files

regarding the order of events

Thea 2 refuses to import some modules after rollback with errors about somes nodes, usually the first one, even if there is no particular error inside the file. My best guess is the game await event in the numerical order (event 0 the first, 1 the second, ...) in the file, probably because of sequential loading. Indeed file exported from the game are in this order, and those with the import problem are all disordered. We need to sort event when rollbacking to have the exact order from the original file. As all events are numeroted, it should be possible to do that during the rollback. To be more precise, files inside: https://git.lecygnenoir.info/LecygneNoir/thea2Shattering_i18n_tools/src/branch/master/Translation/fr/game_files/Modules should be identicals to: https://git.lecygnenoir.info/LecygneNoir/thea2Shattering_i18n_tools/src/branch/master/Modules/game_files regarding the order of events
Poster
Owner

After patch, modules still causing problems:

  • mSeaEncounters
  • Woodlandkin
  • Cemetery
  • Demon encounters
  • Natural disaster
  • SpiritTalkers
  • Bandits attack
  • Earthbound
  • MiscEncounters 3

They provoke an error when importing concerning some incorrects nodes, such as the following for mSeaEncounters:

Erreur d'importation : 11 depuis le module : mSeaEncounters, évenement : 2, noeud : 5

These modules seems correctly ordered, I'll have to dig more to find what is causing that

After patch, modules still causing problems: - mSeaEncounters - Woodlandkin - Cemetery - Demon encounters - Natural disaster - SpiritTalkers - Bandits attack - Earthbound - MiscEncounters 3 They provoke an error when importing concerning some incorrects nodes, such as the following for `mSeaEncounters`: ``` Erreur d'importation : 11 depuis le module : mSeaEncounters, évenement : 2, noeud : 5 ``` These modules seems correctly ordered, I'll have to dig more to find what is causing that
Poster
Owner

Ok, after long search, it appears this error occurs when there are event missing inside the file, regarding the actual game version.

Eg you use an old translated file for a newer version, and the .txt does not have all event the game need

Ok, after long search, it appears this error occurs when there are event missing inside the file, regarding the actual game version. Eg you use an old translated file for a newer version, and the .txt does not have all event the game need
LecygneNoir closed this issue 5 years ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.