[BTS] Does the game produce crash dumps or logs?

Discussion in 'Civ4 - Technical Support' started by Miuna, Jun 11, 2022.

  1. Miuna

    Miuna Chieftain

    Jul 29, 2020
    I recently been working on a mod, it's been working fine for a while, i made a large patch update to the mod and ever since it keeps crashing to desktop during games, especially present in multiplayer, I'm not getting any python exception errors or other errors whilst playing it just crashes, is there any logs or dump files the game creates when it crashes to desktop? I'm no pro but anything to work with would be nice.

    Or is there any known issues which causes the game to crash to desktop without notice?

    (Note the mod is a modmod for FFH2)
  2. f1rpo

    f1rpo plastics

    May 22, 2014
    GenerateCrashDumps can be enabled in My Games\Beyond the Sword\CivilizationIV.ini, but, without debug symbols, that'll just say that there was a segmentation fault or so. And I think you'll need Visual Studio just to view the dump file. Enabling RandLog along with MessageLog will log all generated random numbers to MPLog.txt; that might narrow down the cause of the error. One can also enable some more Python logging (to PythonDebg.log; requiring LoggingEnabled=1 in CivilizationIV.ini) through the __LOG variables in CvEventManager.py. None of these will explicitly document a crash to desktop.

    It may well be an interrupt in the CPU caused by some memory access or division by 0 in the (GameCore) DLL or in the EXE – indirectly caused, presumably, by some XML change – that kills the BtS process on the spot.

    Ultimately, debugging the DLL would likely reveal the cause of the crash, but that requires setting up Visual Studio for the mod in question, which is a bit of an endeavor. Or you could revert changes until the crash no longer occurs. (Though it doesn't sound like the crashes you're experiencing are reliably reproducible ... :undecide:)
    Last edited: Jun 14, 2022

Share This Page