AlyMar1994 / UFoCP-OLD

The source of the unofficial patch for Petroglyph's 2006 RTS hit "STAR WARS: Empire at War – Forces of Corruption."
GNU Affero General Public License v3.0
5 stars 2 forks source link

Corellia - Piracy corruption mission crashes on loading. #30

Open AlyMar1994 opened 3 years ago

AlyMar1994 commented 3 years ago

Title.

No cause as to why, but has to do with the latest update. Using the debugger on Corellia while doing the mission also doesn't crash the game when doing Piracy, so I've resorted to uploading a crash report to Petroglyph and hope Brian/Steve can sort it out.

No unencrypted corruption Lua means we can't do much.

omemberb commented 2 years ago

I was able to isolate the issue and so far, it is, luckily, not reated to Lua script. The problem that is causing crash is the map's .ted file, which has multiple ATTACKER ENTRY POSITION and DEFENDING FORCES POSITION markers. Having one ATTACKER ENTRY POSITION and one DEFENDING FORCES POSITION marker fixes the crash. Accordingly, that bug can be very easily fixed in FOC Map editor, just by removing redundant markers (i.e. remove all but one ATTACKER ENTRY POSITION and all but one DEFENDING FORCES POSITION) in _space_planet_corellia_piracy.ted file.

AlyMar1994 commented 2 years ago

... Accordingly, that bug can be very easily fixed in FOC Map editor, just by removing redundant markers (i.e. remove all but one ATTACKER ENTRY POSITION and all but one DEFENDING FORCES POSITION) in _space_planet_corellia_piracy.ted file.

This is an interesting fix but doesn't exactly address the underlying issue of why this happens in the first place. Every map in FoC has multiple attacker/defender markers, so this still has to be something internally breaking because this map doesn't violate anything regarding how Petro did their maps.

However, it is useful to know that this is a temporary solution. I'll look more into it.