Safety transporter has a mixed unit order when loading a save #3009
Comments
Emdek uploaded file |
Berserk Cyborg changed priority from |
Berserk Cyborg changed title from |
Berserk Cyborg commented Below is my current understanding of the bug(s). The last Beta mission uses a "safety" transporter to bring multiple transporter loads of droids to the next mission while on the home map (bDroidsToSafety = true). For whatever reason, the transporter may not spawn on the next map. This is kind of two problems:
Although not quite a blocker, I set this to major because it would be disheartening to lose droids a player has had potentially from the beginning of a campaign. |
Per commented For the first issue, just check in rules.js before ending a mission that no transporter is on the way out of the map? So we stagger the mission end until it has flown out. |
Berserk Cyborg commented Replying to Warzone2100/old-trac-import#3009 (comment:2):
If I remember correctly, missions with the safety transporter spam eventTransporterExit when no player droids are left on map and causes the transporter to fail exiting. Anyway, have a save before this mission begins. One on the offworld mission called "cam2-8" where you can simply enter debug mode and type "let me win" and one before on the home map. Victory conditions:
|
Berserk Cyborg uploaded file |
Berserk Cyborg changed status from |
Berserk Cyborg changed owner from `` to |
Berserk Cyborg changed resolution from `` to |
Berserk Cyborg commented In Warzone2100/warzone2100@e9045fb:
|
alfred007 commented I updated to master e9045fb and you still get mixed units after reloading a saved game from a moment after the first transport left the map. But the order is no longer lost. |
alfred007 changed status from |
alfred007 changed resolution from |
Berserk Cyborg commented Loading a save on the last Beta mission after the first transporter exits causes some of the droids on the first transporter on Gamma 1 to be randomized from the list of droids the player flew to safety. |
Berserk Cyborg changed title from |
Berserk Cyborg commented Warning: A bunch of rambling. I setup a test to more easily understand what is happening. This test involves groups of similar units. Group 1 - 9 rockets, 1 truck I saved after each time the transporter reached the edge of the map. Observations: Loading a save after depositing group 1 had no effect on first group composition. save file structure of mdroid.json:
Eventually, ending the mission calls saveCampaignData(). If we are a safety mission:
By hacking around I found that completing the mission without reloading a save requires the droid list to be loadSaveDroid() also sorts transporters and commanders to be the first droids to be loaded (they need to be setup before any of their group members they command/hold). This always makes commanders budge into the first group on Gamma 1, which complicates things. Leaving the potential for a player to see 10 commanders as the first group on the next mission! So, I guess, its just because stuff gets sorted when loading the droid lists? Save I used uploaded. Use "biffer baker" cheat, send the transporter off, use "let me win", and then you can do some tests. |
Berserk Cyborg uploaded file Use with master |
Berserk Cyborg changed status from |
Berserk Cyborg changed resolution from `` to |
Berserk Cyborg commented Fixed with 58ac40f0a00c521eed5bad7cc55ba01a212ce4dd |
resolution_fixed
type_bug
| by EmdekI thought that there was such as report but couldn't find it...
I've ended starting g01 mission with nine howitzers and commander however there was no such transport!
First transport contained 3 trucks and few assault units (gun and cannon), second 4 howitzers, commander and few other units, next one 6 howitzers and 4 tank killers and last one one tank killer, second commander and few other assault units.
Issue migrated from trac:3009 at 2022-04-16 08:44:02 -0700
The text was updated successfully, but these errors were encountered: