Please help to debug a rare freeze

Discuss and distribute tools and methods for modding. Moderator - Grognak
Fins
Posts: 17
Joined: Wed Sep 04, 2019 5:39 pm

Please help to debug a rare freeze

Postby Fins » Thu Sep 12, 2019 7:10 pm

I have a modded FTL freeze here, it's 100% repeatable, and i'd like help debugging it. Please point me to any debugging tutorial for FTL mods if they exist, give any advice you can, and/or help me debug this. It is not the 1st time i encounter this kind of freeze, and so far i figured out the bug happens extremely rarely (once in a _thousands_ beacons visited), but when it does, it is the beacon itself which is bugged. I'd like to figure out which of the mods causes it, and if possible i'd like to fix the mod itself - for myself and everybody else - so that those freezes would never happen.

I managed to get save files with such a bugged beacon - freezes the game every time. Is there any way to figure out what exactly is wrong with the bugged beacon based on those save files? Also, i have a screenshot of the mod manager with exact mod names and load order being used - here it is. FTL is 1.6.7. Patching those mods in - did not display any problems. When this freeze happens, task manager reports FTL app as running, but nothing can be done in-game, not even moving mouse cursor. FTL does not close when "close window" command is given from right-click menu in the task bar. Neither FTL closes if to select it in "applications" tab of Task Manager and give command to close it. Only ending FTL process in "processes" tab allows to close FTL when this freeze happens.

Thank you for any help, in advance.
Woona
Posts: 35
Joined: Sun Sep 17, 2017 7:28 am
Location: Russia

Re: Please help to debug a rare freeze

Postby Woona » Fri Sep 13, 2019 12:49 pm

You could try opening FTL.log file which is located in the same folder as FTLGame.exe. Some (not all) errors with xml code are posted into that file. There is probably some problem with one of the events.
Fins
Posts: 17
Joined: Wed Sep 04, 2019 5:39 pm

Re: Please help to debug a rare freeze

Postby Fins » Sat Sep 14, 2019 2:43 pm

Ok, i have the file. The file timestamp (last changed) is the same minute the game hangs up. The last 3 lines in the file are:

Code: Select all

Warning: <FTL> not found in data/ce_mantis_spotter.xml, adding wrapper tag
lib/SIL/src/resource/core.c:2769(load_resource): img/ship/mantis_scout_base.png: Resource not found
Warning: <FTL> not found in data/bs_auto_turret.xml, adding wrapper tag


Thing is, Mantis Spotter ship (mantis base quest ending) was at the beacon prior to the bugged one, the fight was successfully completed, damage from batteries was taken (if this matters anyhow). Freeze happens when leaving Mantis-base completed beacon to the next one. So 1st and 2nd line seem to be not the cause? No idea if 3rd (last) line is also for the Mantis Base event or not.

What to do from here?
Fins
Posts: 17
Joined: Wed Sep 04, 2019 5:39 pm

Re: Please help to debug a rare freeze

Postby Fins » Sat Sep 14, 2019 3:31 pm

Progress!!

I have managed to narrow this down to just two mods: better planets and backgrounds and "BPaB compatibility mod". I disabled those two in the Slipstream manager, loaded the save - and to my HUGE surprise, the map of the sector changed siginificantly and the bug is gone! In this save, i have slightly less than half of the sector's beacons visited, and all unvisited beacons were revealed from one of earlier beacons (transport ship which had sector map as a reward for taking out its crew). By "map changed significantly" i mean that unvisited beacons are now placed differently, links between them are different, even their contents are different: for example i had 2 stores among non-visited beacons, but now there is only 1 store.

Note that the bug happened while running BPaB 1.3.0 (not 1.2.1 as it is on the screenshot), which is the only difference between the screenshot and mods being ran at the time. So, disabling BPaB 1.3.0 and BPaB compatibility patch - removed the freeze and changed the map. Then i also did the following: restored bugged save files to the game, then ran Slipstream and enabled BPaB 1.2.1 and BPaB compatibility patch. The bug is gone, the map _remained_ altered!

Note, with BPaB 1.2.1, this kind of freeze also happens - i had it at least once in the past while using 1.2.1. BPaB versions 1.3.0 and 1.3.1 add dozens more great background images however, which is why i'd like to be able to use them - as well as figure out how even BPaB 1.2.1 still leads to this freeze (even if very rarely).

Obviously i enjoy playing with BPaB; it's a great mod. Can anything be done to fix the mod to prevent such freezes? And i really wonder how BPaB 1.3.0 and compatibility patch for it - can affect sector map, too!
Woona
Posts: 35
Joined: Sun Sep 17, 2017 7:28 am
Location: Russia

Re: Please help to debug a rare freeze

Postby Woona » Sat Sep 14, 2019 4:39 pm

From my experience, most of the crashes and freezes happen when there is some sort of error in event code. I'd recommend you inspect FTL.log thoroughly, or posting it here. There are warnings for some event errors when you load a game. I never had a crash/freeze because of custom background (or any image).
Fins
Posts: 17
Joined: Wed Sep 04, 2019 5:39 pm

Re: Please help to debug a rare freeze

Postby Fins » Fri Sep 20, 2019 10:45 am

I do not see anything definitely related in the log, but maybe because of not knowing what to look for, though... How exactly "some event errors" will look like, in the log? Would the warning say, verbatim, "event error"?

See, about a thousand played beacons later (total from different runs), i got the bug happening again. As before, i was able to backup savegame file right after the bug happened, and then proceeded to experiment more.

This time, it was in a beacon which was the only one beacon with a connection to "Exit" beacon, so i _had_ to go through it - or abandon the run. This time, it happened with BPaB 1.2.1 being used, and changing installed version of the mod did not anyhow help (unlike above). Obviously i wasn't fancy to abandon the run. In the end, i found two methods to circumvent the bug:

- jump around through already visited beacons, until the bugged beacon gets taken by the rebel fleet, _then_ jump to it - this works perfectly well, but while often acceptable near the end of the sector, it'd be a disaster to do at the start of a sector;

- or, use savegame editor to change the state of the bugged beacon from "not visited" to "visited", and change its background image to something else. I used very 1st values available in the savegame editor. I also added "sprite coordinates" with values being same to one of actually visited beacons, no idea if it was needed or not, but the resulting edit worked.

The latter method results in the beacon obviously having no event of any kind, and changing background image and sprite coords in this "guesswork" way resulted in visually misplaced background picture for the beacon - but the main thing, the beacon worked and allowed me to get through to the next sector.

I also changed mod load order a bit somewhere during all the different tries: namely moved "larger enemy window" mod to be very 1st mod being patched in. No idea if this anyhow matters, i guess it shouldn't, but still.

And before finding those two working methods, i tried a number of different things, none of which helped to stop the game freeze from happening at the bugged beacon. Namely:

- using different fullscreen settings, including turning it off;

- assigning FTL process to different CPU cores, sometimes to a single core only;

- assigning FTL process higher priority (up to "realtime", at which point after the bug happens, FTL proceeds to consume seemingly endless amount of CPU power, making even task manager massively unresponsive);

- installing different versions of BPaB (1.3.0, 1.3.1);

- uninstalling BPaB entirely;

- uninstalling music mod and its patch;

- running FTL with various compatibility settings (amazingly, the game works even in win98 mode quite fine, but no settings of the sort helps with this particular bug);

- disabling / altering various visual compatibility settings for FTL process (obviously restarting every time);

- changing various graphical settings both in-game and in GPU control panel.

Since all those did not help to remove the bug, but in the same time did not make FTL unplayable - it seems to me the bug is indeed caused by some rare set of circumstances happening as a result of the sum of used mods.
Woona
Posts: 35
Joined: Sun Sep 17, 2017 7:28 am
Location: Russia

Re: Please help to debug a rare freeze

Postby Woona » Fri Sep 20, 2019 1:37 pm

Fins wrote:I do not see anything definitely related in the log, but maybe because of not knowing what to look for, though... How exactly "some event errors" will look like, in the log? Would the warning say, verbatim, "event error"?


Examples of most frequent event errors that can be found in FTL.log:

Choice for EVENT does not have an event (this one always crashes the game, I think)
Max is smaller than min: EVENT
Fins
Posts: 17
Joined: Wed Sep 04, 2019 5:39 pm

Re: Please help to debug a rare freeze

Postby Fins » Sat Sep 21, 2019 5:44 am

I see. So "Event" word must be present. Ctrl-f in the log revealed whole bunch of such lines! Here's the fragment of the log with all of them:

Code: Select all

Animations Initialized!
Loading Ship Blueprints....
Warning: <FTL> not found in data/names.xml, adding wrapper tag
Warning: <FTL> not found in data/bosses.xml, adding wrapper tag
Blueprints Loaded!
ERROR: Repeated Event Name! Name: ASTEROID_EXPLORE
ERROR: Repeated Event Name! Name: MERCENARY
ERROR: Repeated Event Name! Name: TRAP_BEACON
ERROR: Repeated Event Name! Name: PIRATE_CIVILIAN_BEACON
ERROR: Repeated Event Name! Name: REBEL_VS_FEDERATION
ERROR: Repeated Event Name! Name: DISTRESS_STATION_DISEASE
ERROR: Repeated Event Name! Name: DISTRESS_INFESTATION
ERROR: Repeated Event Name! Name: PIRATE_STATION_CROPS
ERROR: Repeated Event Name! Name: BOARDERS
ERROR: Repeated Event Name! Name: BOARDERS_HACKING
ERROR: Repeated Event Name! Name: STATION_SICK
ERROR: Repeated Event Name! Name: BOARDERS_ASTEROID_GHOST
ERROR: Repeated Event Name! Name: AUTO_ASTEROID
ERROR: Repeated Event Name! Name: AUTO_SUN
ERROR: Repeated Event Name! Name: FRIENDLY_BEACON
ERROR: Repeated Event Name! Name: ESCORT_BEACON
ERROR: Repeated Event Name! Name: QUEST_ESCORT
ERROR: Repeated Event Name! Name: QUEST_STORE_RESCUE
ERROR: Repeated Event Name! Name: QUEST_STORE_RESCUE
ERROR: Repeated Event Name! Name: DISTRESS_TRAPPED_MINER
ERROR: Repeated Event Name! Name: DISTRESS_SATELLITE_DEFENSE
ERROR: Repeated Event Name! Name: DISTRESS_STATION_FIRE
ERROR: Repeated Event Name! Name: QUEST_MANTIS_INVASION
ERROR: Repeated Event Name! Name: QUEST_CREWDEAD
ERROR: Repeated Event Name! Name: ALISON_DEFECTOR
ERROR: Repeated Event Name! Name: ALISON_MANTIS_CREW
ERROR: Repeated Event Name! Name: CIVILIAN_ASTEROIDS_BEACON
ERROR: Repeated Event Name! Name: DONOR_PONY
ERROR: Repeated Event Name! Name: TRADER_CIV
ERROR: Repeated Event Name! Name: SELL_MISSILES_STATION
Max is smaller than min: FUEL_FOR_DRONE_STATION 1603
Max is smaller than min: FUEL_FOR_DRONE_AUTO 1608
Max is smaller than min: FUEL_FOR_DRONE 1613
ERROR: Repeated Event Name! Name: FUEL_FOR_DRONE
ERROR: Repeated Event Name! Name: SELL_DRONES_STATION
ERROR: Repeated Event Name! Name: DONOR_BLACK_RAVEN
ERROR: Repeated Event Name! Name: DONOR_MANTIS_CHASE
ERROR: Repeated Event Name! Name: DONOR_MANTIS_CHASE2
ERROR: Repeated Event Name! Name: DONOR_PLAGUE
ERROR: Repeated Event Name! Name: REPAIR_STATION
ERROR: Repeated Event Name! Name: REFUEL_STATION
ERROR: Repeated Event Name! Name: PIRATE_SURRENDER
Max is smaller than min: CE_SURRENDER_NEGOTIATION_RESULTS 1749
ERROR: Repeated Event Name! Name: QUEST_CREWDEAD_START
ERROR: Repeated Event Name! Name: QUEST_CREWDEAD_CONTINUE
Max is smaller than min: CE_SURRENDER_NEGOTIATION_STATIONS_RESULTS 2059
ERROR: Repeated Event Name! Name: START_GAME
ERROR: Repeated Event Name! Name: START_BEACON
ERROR: Repeated Event Name! Name: NOTHING
ERROR: Repeated Event Name! Name: FLEET_EASY
ERROR: Repeated Event Name! Name: FLEET_EASY_DLC
ERROR: Repeated Event Name! Name: FLEET_HARD
ERROR: Repeated Event Name! Name: FLEET_EASY_BEACON
ERROR: Repeated Event Name! Name: FLEET_EASY_BEACON_DLC
ERROR: Repeated Event Name! Name: STORE
Max is smaller than min: CE_CIVILIAN_THEFT_INVESTIGATE 3977
Max is smaller than min: CE_CIVILIAN_THEFT_INVESTIGATE 3978
Max is smaller than min: CE_CIVILIAN_THEFT_INVESTIGATE 3979
Max is smaller than min: CE_CIVILIAN_THEFT_SCANNER 3981
Max is smaller than min: CE_CIVILIAN_THEFT_SLUG 3985
ERROR: Repeated Event Name! Name: FINISH_BEACON
ERROR: Repeated Event Name! Name: FINISH_BEACON_NEBULA
ERROR: Repeated Event Name! Name: FINISH_BEACON
ERROR: Repeated Event Name! Name: FINISH_BEACON_NEBULA
ERROR: Repeated Event Name! Name: FLEET_EASY_BEACON
ERROR: Repeated Event Name! Name: FLEET_EASY_BEACON_DLC
ERROR: Repeated Event Name! Name: START_GAME
ERROR: Repeated Event Name! Name: START_BEACON
ERROR: Repeated Event Name! Name: SE_START_BEACON_CIVILIAN
ERROR: Repeated Event Name! Name: SE_START_BEACON_CIVILIAN_HOME
ERROR: Repeated Event Name! Name: ZOLTAN_CREW_STUDY
ERROR: Repeated Event Name! Name: REBEL_PULSAR
ERROR: Repeated Event Name! Name: PIRATE_PULSAR
ERROR: Repeated Event Name! Name: REBEL_PDS
ERROR: Repeated Event Name! Name: REBEL_AUTO_PDS
ERROR: Repeated Event Name! Name: START_BEACON_LANIUS
ERROR: Repeated Event Name! Name: NOTHING_LANIUS
ERROR: Repeated Event Name! Name: LANIUS_DISTRESS_EMPTY
ERROR: Repeated Event Name! Name: LANIUS_DISTRESS_TOOLATE
ERROR: Repeated Event Name! Name: LANIUS_SURRENDER
Max is smaller than min: CE_PLAYER_SURRENDER_LANIUS 4695 4696 4697
Max is smaller than min: CE_PLAYER_SURRENDER_LANIUS 4702 4703 4704
Max is smaller than min: CE_PLAYER_SURRENDER_LANIUS 4709 4710 4711
ERROR: Repeated Event Name! Name: LANIUS_DISTRESS_FIGHT
ERROR: Repeated Event Name! Name: LANIUS_SLUG_DISTRESS
ERROR: Repeated Event Name! Name: LANIUS_DISTRESS_TRAP
ERROR: Repeated Event Name! Name: LANIUS_MANTIS_DISTRESS
ERROR: Repeated Event Name! Name: LANIUS_ROCK_DISTRESS
ERROR: Repeated Event Name! Name: LANIUS_RESEARCHER_CONTACT
ERROR: Repeated Event Name! Name: LANIUS_TRADER_TRANSLATOR
ERROR: Repeated Event Name! Name: LANIUS_TRADER
ERROR: Repeated Event Name! Name: LANIUS_FIGHT
ERROR: Repeated Event Name! Name: LANIUS_REBEL_FIGHT
ERROR: Repeated Event Name! Name: LANIUS_PIRATE_FIGHT
ERROR: Repeated Event Name! Name: LANIUS_FIGHT_ASTEROID
ERROR: Repeated Event Name! Name: LANIUS_FIGHT_PULSAR
ERROR: Repeated Event Name! Name: LANIUS_NOBOARDERS_PDS
ERROR: Repeated Event Name! Name: LANIUS_HARVESTER
ERROR: Repeated Event Name! Name: LANIUS_CIVILIAN
ERROR: Repeated Event Name! Name: LANIUS_PIRATE_CIVILIAN
ERROR: Repeated Event Name! Name: LANIUS_SOLO_SALVAGE
ERROR: Repeated Event Name! Name: LANIUS_SCARED_CIVILIAN
ERROR: Repeated Event Name! Name: LANIUS_AUTO_REBEL
ERROR: Repeated Event Name! Name: LANIUS_DORMANT_EVENT
ERROR: Repeated Event Name! Name: LANIUS_FUELING_STATION
ERROR: Repeated Event Name! Name: LANIUS_PIRATE_BOARDERS
ERROR: Repeated Event Name! Name: LANIUS_FIGHT_AUGMENTED
ERROR: Repeated Event Name! Name: STORE_LANIUS
ERROR: Repeated Event Name! Name: START_BEACON_LANIUS
ERROR: Repeated Event Name! Name: REFUGEE_DISTRESS
ERROR: Repeated Event Name! Name: REFUGEE_NO_DISTRESS
ERROR: Repeated Event Name! Name: REFUGEE_TRADER
ERROR: Repeated Event Name! Name: TERRAFORMING_SCAN
ERROR: Repeated Event Name! Name: PIRATE_SALESMAN
ERROR: Repeated Event Name! Name: DOCK_DRONE_SALESMAN
ERROR: Repeated Event Name! Name: DOCK_BOMB_SALESMAN
ERROR: Repeated Event Name! Name: REBEL_CHECKPOINT
ERROR: Repeated Event Name! Name: REBEL_HELPERS
ERROR: Repeated Event Name! Name: ROGUE_REBEL
ERROR: Repeated Event Name! Name: TRADER_UPGRADES_EXCHANGE
ERROR: Repeated Event Name! Name: NOTHING_REBEL
ERROR: Repeated Event Name! Name: START_BEACON_REBEL
ERROR: Repeated Event Name! Name: REBEL_AUTO
ERROR: Repeated Event Name! Name: AUTO_WARNING
ERROR: Repeated Event Name! Name: REBEL
ERROR: Repeated Event Name! Name: SQUAT_WARNING
ERROR: Repeated Event Name! Name: AUTO_CIVILIAN
ERROR: Repeated Event Name! Name: SQUAT_REFUEL_STATION
ERROR: Repeated Event Name! Name: AUTO_REFUEL_STATION
ERROR: Repeated Event Name! Name: AUTO_DEFENSE_MAP
ERROR: Repeated Event Name! Name: AUTO_DEFENSE_ITEM
ERROR: Repeated Event Name! Name: AUTO_DEFENSE_RADAR
ERROR: Repeated Event Name! Name: NEBULA_REBEL_BOARDING
ERROR: Repeated Event Name! Name: BOARDERS_REBEL_SHIP
ERROR: Repeated Event Name! Name: AUTO_HACKER
ERROR: Repeated Event Name! Name: REBEL_TRANSPORT
ERROR: Repeated Event Name! Name: BROKEN_REBEL_DRONE
ERROR: Repeated Event Name! Name: FLAGSHIP_CONSTRUCTION
ERROR: Repeated Event Name! Name: STORE_REBEL
ERROR: Repeated Event Name! Name: START_BEACON_REBEL
ERROR: Repeated Event Name! Name: START_BEACON_AUTO
ERROR: Repeated Event Name! Name: NOTHING_MANTIS
ERROR: Repeated Event Name! Name: START_BEACON_MANTIS
ERROR: Repeated Event Name! Name: MANTIS_NAMED_THIEF_DEFEAT
ERROR: Repeated Event Name! Name: MANTIS_FIGHT
ERROR: Repeated Event Name! Name: MANTIS_FIGHT_CHOICE
ERROR: Repeated Event Name! Name: MANTIS_CIVILIAN
ERROR: Repeated Event Name! Name: MANTIS_SUN_FIGHT
ERROR: Repeated Event Name! Name: MANTIS_NAMED_THIEF
ERROR: Repeated Event Name! Name: MANTIS_BOARDERS
ERROR: Repeated Event Name! Name: MANTIS_CREW
ERROR: Repeated Event Name! Name: STORE_MANTIS
ERROR: Repeated Event Name! Name: START_BEACON_MANTIS
ERROR: Repeated Event Name! Name: NOTHING_ENGI
ERROR: Repeated Event Name! Name: START_BEACON_ENGI
ERROR: Repeated Event Name! Name: ENGI_MANTIS_FIGHT
ERROR: Repeated Event Name! Name: ENGI_REBEL_FIGHT
ERROR: Repeated Event Name! Name: ENGI_PIRATE_FIGHT
ERROR: Repeated Event Name! Name: DISTRESS_ENGI_REBEL
ERROR: Repeated Event Name! Name: ENGI_UNLOCK_2FAKE_SURRENDER
ERROR: Repeated Event Name! Name: ENGI_UNLOCK_2REAL_SURRENDER
ERROR: Repeated Event Name! Name: ENGI_UNLOCK_2FAKE
ERROR: Repeated Event Name! Name: ENGI_UNLOCK_2REAL
ERROR: Repeated Event Name! Name: ENGI_UNLOCK_3
ERROR: Repeated Event Name! Name: ENGI_SEX
ERROR: Repeated Event Name! Name: ENGI_VIRUS
ERROR: Repeated Event Name! Name: STORE_ENGI
ERROR: Repeated Event Name! Name: START_BEACON_ENGI
ERROR: Repeated Event Name! Name: START_BEACON_QUARANTINE
ERROR: Repeated Event Name! Name: START_BEACON_PIRATE
ERROR: Repeated Event Name! Name: PIRATE
ERROR: Repeated Event Name! Name: PIRATE_NO_ESCAPE
ERROR: Repeated Event Name! Name: PIRATE_CIVILIAN
ERROR: Repeated Event Name! Name: PIRATE_BRIBER
ERROR: Repeated Event Name! Name: PIRATE_CHOICE
ERROR: Repeated Event Name! Name: PIRATE_SLAVER
ERROR: Repeated Event Name! Name: FRIENDLY_SLAVER
ERROR: Repeated Event Name! Name: PIRATE_SUN
ERROR: Repeated Event Name! Name: PIRATE_ASTEROID
ERROR: Repeated Event Name! Name: BOARDERS_SUN
ERROR: Repeated Event Name! Name: BOARDERS_ASTEROID
ERROR: Repeated Event Name! Name: START_BEACON_PIRATE
ERROR: Repeated Event Name! Name: NO_FUEL_REFUGEE_DAMAGED
ERROR: Repeated Event Name! Name: FUEL_NOTHING
ERROR: Repeated Event Name! Name: FUEL_NOTHING_DISTRESS
ERROR: Repeated Event Name! Name: NO_FUEL_FLEET_DLC
ERROR: Repeated Event Name! Name: NO_FUEL_FLEET
ERROR: Repeated Event Name! Name: FUEL_TRADER
ERROR: Repeated Event Name! Name: FUEL_TRADER_DISTRESS
ERROR: Repeated Event Name! Name: FUEL_ON_REBEL_ATTACK
ERROR: Repeated Event Name! Name: FUEL_ON_REBEL_WARNING
ERROR: Repeated Event Name! Name: FUEL_ON_MANTIS_ATTACK
ERROR: Repeated Event Name! Name: FUEL_OFF_ENGI_DUBIOUS
ERROR: Repeated Event Name! Name: FUEL_OFF_ROCK_CURIOUS
ERROR: Repeated Event Name! Name: FUEL_ON_SLUG_OVERPRICED
ERROR: Repeated Event Name! Name: NO_FUEL_REFUGEE_DAMAGED
ERROR: Repeated Event Name! Name: FUEL_OFF_ENGI_DUBIOUS
ERROR: Repeated Event Name! Name: FUEL_ON_SLUG_CHUCKLE
ERROR: Repeated Event Name! Name: NEBULA_EMPTY
ERROR: Repeated Event Name! Name: START_BEACON_NEBULA
ERROR: Repeated Event Name! Name: FLEET_EASY_NEBULA
ERROR: Repeated Event Name! Name: NEBULA_REBEL
ERROR: Repeated Event Name! Name: NEBULA_AUTO
ERROR: Repeated Event Name! Name: NEBULA_AUTO_WARNING
ERROR: Repeated Event Name! Name: NEBULA_PIRATE
ERROR: Repeated Event Name! Name: NEBULA_MANTIS_FIGHT
ERROR: Repeated Event Name! Name: NEBULA_REBEL_UNDETECTED
ERROR: Repeated Event Name! Name: NEBULA_PIRATE_SMUGGLE
ERROR: Repeated Event Name! Name: NEBULA_AUTO_DEFENSE_ITEM
ERROR: Repeated Event Name! Name: NEBULA_LOST_SHIP
ERROR: Repeated Event Name! Name: NEBULA_WEAPONS_TRADER
ERROR: Repeated Event Name! Name: NEBULA_ROCK_RACIST
ERROR: Repeated Event Name! Name: NEBULA_MANTIS_CHOICE
ERROR: Repeated Event Name! Name: NEBULA_REBEL_CHASE
ERROR: Repeated Event Name! Name: NEBULA_BOARDING
ERROR: Repeated Event Name! Name: STORM_AUTO
ERROR: Repeated Event Name! Name: STORM_REBEL
ERROR: Repeated Event Name! Name: STORM_ITEMS
ERROR: Repeated Event Name! Name: NEBULA_TRADER
ERROR: Repeated Event Name! Name: NEBULA_STORE
ERROR: Repeated Event Name! Name: STORM_BOARDING
Choice for GHOST_AI_DOCK 18917 does not have an event
Choice for GHOST_AI_DOCK 18917 does not have an event
ERROR: Repeated Event Name! Name: START_BEACON_NEBULA
ERROR: Repeated Event Name! Name: START_BEACON_HAZARD
ERROR: Repeated Event Name! Name: START_BEACON_INDUSTRIAL
Warning: <FTL> not found in data/events_imageList.xml, adding wrapper tag
ERROR: Repeated Event Name! Name: NOTHING_CRYSTAL
ERROR: Repeated Event Name! Name: START_BEACON_CRYSTAL
ERROR: Repeated Event Name! Name: CRYSTAL_UNLOCK
ERROR: Repeated Event Name! Name: CRYSTAL_FIGHT
ERROR: Repeated Event Name! Name: CRYSTAL_CONVOY
ERROR: Repeated Event Name! Name: CRYSTAL_HUNTER
ERROR: Repeated Event Name! Name: CRYSTAL_REBEL
ERROR: Repeated Event Name! Name: CRYSTAL_AUTO
ERROR: Repeated Event Name! Name: CRYSTAL_REBEL_CRYSTAL
ERROR: Repeated Event Name! Name: CRYSTAL_MANTIS_CRYSTAL
ERROR: Repeated Event Name! Name: CRYSTAL_PIRATE_CRYSTAL
ERROR: Repeated Event Name! Name: CRYSTAL_REBEL_CRYSTAL2
ERROR: Repeated Event Name! Name: CRYSTAL_FED
Max is smaller than min: CRYSTAL_FED_DESERTER 20650
Max is smaller than min: CRYSTAL_FED_DESERTER 20650
ERROR: Repeated Event Name! Name: CRYSTAL_FED_DESERTER
ERROR: Repeated Event Name! Name: CRYSTAL_HUMAN_TESTS
ERROR: Repeated Event Name! Name: CRYSTAL_HELP_DIG
ERROR: Repeated Event Name! Name: BOARDERS_CRYSTAL
ERROR: Repeated Event Name! Name: STORE_CRYSTAL
ERROR: Repeated Event Name! Name: LAST_STAND_START
ERROR: Repeated Event Name! Name: FEDERATION_BASE
ERROR: Repeated Event Name! Name: BOSS_TEXT_1
ERROR: Repeated Event Name! Name: BOSS_TEXT_2
ERROR: Repeated Event Name! Name: BOSS_TEXT_3
ERROR: Repeated Event Name! Name: BOSS_AUTOMATED
ERROR: Repeated Event Name! Name: BOSS_FLEETS_FED
ERROR: Repeated Event Name! Name: BOSS_SCOUT
ERROR: Repeated Event Name! Name: BOSS_SCOUT_RESCUE
ERROR: Repeated Event Name! Name: BOSS_FLEETS_BOTH_FIGHT
ERROR: Repeated Event Name! Name: BOSS_FLEETS_REBEL
Max is smaller than min: CE_FED_DESERTER 21392
Max is smaller than min: CE_FED_DESERTER 21392
ERROR: Repeated Event Name! Name: LAST_STAND_START
ERROR: Repeated Event Name! Name: NOTHING_ZOLTAN
ERROR: Repeated Event Name! Name: START_BEACON_ZOLTAN
ERROR: Repeated Event Name! Name: ZOLTAN_DISTRESS_MANTIS
ERROR: Repeated Event Name! Name: ZOLTAN_QUEST_PRIMITIVES
ERROR: Repeated Event Name! Name: ZOLTAN_FIGHT
ERROR: Repeated Event Name! Name: ZOLTAN_PIRATE
ERROR: Repeated Event Name! Name: ZOLTAN_MANTIS
ERROR: Repeated Event Name! Name: ZOLTAN_ENGI
ERROR: Repeated Event Name! Name: ZOLTAN_ASTEROID
ERROR: Repeated Event Name! Name: ZOLTAN_LIFERAFT
ERROR: Repeated Event Name! Name: ZOLTAN_SCIENCE_DOCK
ERROR: Repeated Event Name! Name: ZOLTAN_CREW_SCAN
ERROR: Repeated Event Name! Name: NEBULA_ZOLTAN_ROCK
ERROR: Repeated Event Name! Name: STORM_ZOLTAN_SUPPLY_CHOICE
ERROR: Repeated Event Name! Name: ZOLTAN_BOARDERS
ERROR: Repeated Event Name! Name: ZOLTAN_BOARDERS_MANTIS
ERROR: Repeated Event Name! Name: ZOLTAN_PEACE_QUEST2
ERROR: Repeated Event Name! Name: ZOLTAN_ODD_MOON
ERROR: Repeated Event Name! Name: ZOLTAN_SURRENDER
ERROR: Repeated Event Name! Name: STORE_ZOLTAN
Max is smaller than min: AI_FED_DESERTER 22008
Max is smaller than min: AI_FED_DESERTER 22008
ERROR: Repeated Event Name! Name: START_BEACON_ZOLTAN
ERROR: Repeated Event Name! Name: START_BEACON_AI
ERROR: Repeated Event Name! Name: SLUG_UNLOCK_SURRENDER
ERROR: Repeated Event Name! Name: SECRET_WORD_ABADOTH_CONCLUSION
ERROR: Repeated Event Name! Name: NOTHING_SLUG
ERROR: Repeated Event Name! Name: START_BEACON_SLUG
ERROR: Repeated Event Name! Name: NEBULA_NOTHING_SLUG
ERROR: Repeated Event Name! Name: SLUG_FIGHT
ERROR: Repeated Event Name! Name: SLUG_MANTIS
ERROR: Repeated Event Name! Name: SLUG_PIRATE
ERROR: Repeated Event Name! Name: SLUG_REBEL
ERROR: Repeated Event Name! Name: NEBULA_SLUG_FAKE_STORE
ERROR: Repeated Event Name! Name: NEBULA_SLUG_FIGHT
ERROR: Repeated Event Name! Name: NEBULA_SLUG_MANTIS
ERROR: Repeated Event Name! Name: NEBULA_SLUG_PIRATE
ERROR: Repeated Event Name! Name: NEBULA_SLUG_MEDBAY
ERROR: Repeated Event Name! Name: STORM_SLUG_FIGHT
ERROR: Repeated Event Name! Name: SLUG_DISTRESS_QUESTION_FALSE
ERROR: Repeated Event Name! Name: SLUG_DISTRESS_MANTIS
ERROR: Repeated Event Name! Name: NEBULA_SLUG_FIGHT_UNLOCK
ERROR: Repeated Event Name! Name: SLUG_UNLOCK_1
ERROR: Repeated Event Name! Name: SLUG_UNLOCK_2
ERROR: Repeated Event Name! Name: SLUG_DRINK
ERROR: Repeated Event Name! Name: QUEST_SLUG_PIRATE_TRAP2
ERROR: Repeated Event Name! Name: SLUG_DISTRESS_PILOTING
ERROR: Repeated Event Name! Name: NEBULA_SLUG_CHOOSE_DEATH
ERROR: Repeated Event Name! Name: NEBULA_SLUG_DOORS
ERROR: Repeated Event Name! Name: NEBULA_SLUG_OXYGEN
ERROR: Repeated Event Name! Name: NEBULA_STORE_SLUG
ERROR: Repeated Event Name! Name: START_BEACON_SLUG
ERROR: Repeated Event Name! Name: ROCK_SHIP_SURRENDER
ERROR: Repeated Event Name! Name: NOTHING_ROCK
ERROR: Repeated Event Name! Name: START_BEACON_ROCK
ERROR: Repeated Event Name! Name: ROCK_UNLOCK3
ERROR: Repeated Event Name! Name: ROCK_SHIP
ERROR: Repeated Event Name! Name: ROCK_PIRATE
ERROR: Repeated Event Name! Name: ROCK_MANTIS_HUNTER
ERROR: Repeated Event Name! Name: ROCK_MANTIS_FREIGHTER
ERROR: Repeated Event Name! Name: ROCK_ATHIEST
ERROR: Repeated Event Name! Name: ROCK_FIGHT_ASTEROID
ERROR: Repeated Event Name! Name: ROCK_PIRATE_ASTEROID
ERROR: Repeated Event Name! Name: ROCK_PIRATE_SUN
ERROR: Repeated Event Name! Name: ROCK_QUEST_MARRIAGE
ERROR: Repeated Event Name! Name: ROCK_BOARDERS_SHIP
ERROR: Repeated Event Name! Name: ROCK_BOARDERS_ASTEROID
ERROR: Repeated Event Name! Name: ROCK_BOARDERS_SUN
ERROR: Repeated Event Name! Name: ROCK_UNLOCK2
ERROR: Repeated Event Name! Name: ROCK_STARSHIP_MINE
ERROR: Repeated Event Name! Name: STORE_ROCK
ERROR: Repeated Event Name! Name: START_BEACON_ROCK
ERROR: Repeated Event Name! Name: START_BEACON_ROCK_HOME
Initializing Sound Data....


I doubt those are the cause though. I'd crash much more often than once in many hundreds beacons visited, if those would all cause it, right?
Woona
Posts: 35
Joined: Sun Sep 17, 2017 7:28 am
Location: Russia

Re: Please help to debug a rare freeze

Postby Woona » Sat Sep 21, 2019 5:50 pm

Fins wrote:I doubt those are the cause though. I'd crash much more often than once in many hundreds beacons visited, if those would all cause it, right?


I don't think "Repeated Event Name" crashes the game, it's just an event being overwritten.

Not sure if "Max is smaller than min" causes crashes/freezes.

But the one below definitely causes a crash if it is actually called by any event lists.

Code: Select all

Choice for GHOST_AI_DOCK 18917 does not have an event
User avatar
mr_easy_money
Posts: 611
Joined: Fri May 29, 2015 9:05 pm
Location: A galaxy far, far away

Re: Please help to debug a rare freeze

Postby mr_easy_money » Sat Sep 21, 2019 6:13 pm

Fins wrote:I doubt those are the cause though. I'd crash much more often than once in many hundreds beacons visited, if those would all cause it, right

actually you did manage to find this
Fins wrote:

Code: Select all

...
Choice for GHOST_AI_DOCK 18917 does not have an event
Choice for GHOST_AI_DOCK 18917 does not have an event
...

which is exactly what Woona was talking about "probably leads to crash"

upon further inspection...

in events_nebula.xml.append of Captain's Edition

Code: Select all

...
<eventList name="GHOST_AI_DOCK">
   <event>
      <text>Your crew complains of hearing strange voices as they work. One requests that they end the salvage operation early.</text>
      <choice hidden="true">
         <text>They're being ridiculous. Finish the job.</text>
         <choice hidden="true">
            <text>Continue</text>
            <event load="GHOST_AI_BOARDING"/>
         </choice>
      </choice>
      <choice hidden="true">
         <text>They've gathered enough supplies. Let's get going.</text>
         <choice hidden="true">
            <text>Continue</text>
            <event load="GHOST_AI_SCRAP"/>
         </choice>
      </choice>
      <choice req="sensors" lvl="2" hidden="true">
         <text>(Sensors) Wait, sensors are picking up something strange...</text>
         <event>
...

the first two choices have choices directly under choices, but choices can only have text and events, so the error is saying there should be an event in between them. fix by wrapping the second-level choices in events and adding a <text> for the new events.

Who is online

Users browsing this forum: No registered users and 21 guests