Results 1 to 11 of 11

Thread: Bare Kingdoms crashes unexpectedly at year 1155

  1. #1
    BobaHat's Avatar Tiro
    Join Date
    Feb 2010
    Location
    Aarhus, Denmark
    Posts
    256

    Default Bare Kingdoms crashes unexpectedly at year 1155

    Hi all,

    I tried doing a search, but came up cold.

    I have made an extensive mod using the Bare Kingdoms pack, in which I have (among many other things) 'slowed down' the game as it were so that a year takes two turns (summer/winter). Everything works fine, and I have a good understanding of modding Medieval 2.
    However, when the game hits year 1155 (which is turn 152-153) the game just crashes after finishing the Rebels' turn with the following entry in the log file:

    02:46:42.840 [bink] [debug] [data/fmv/faction/minor_win.bik]Pause on
    02:46:42.841 [bink] [debug] [data/fmv/faction/minor_win.bik]Pause on
    02:46:43.302 [system.rpt] [error] Uh oh. This isn't good. No idea why, but exiting now. Sorry pal.

    I have no idea what's going on here, but the game always crashes like this on this exact year and turn, after the Rebels' turn.

    Can someone help me?
    "I have learned how to be a man.
    And so I shall become the King of Men."
    - Canute the Great, king of Denmark, Norway and England

  2. #2
    BobaHat's Avatar Tiro
    Join Date
    Feb 2010
    Location
    Aarhus, Denmark
    Posts
    256

    Default Re: Bare Kingdoms crashes unexpectedly at year 1155

    Ping Gigantus!
    "I have learned how to be a man.
    And so I shall become the King of Men."
    - Canute the Great, king of Denmark, Norway and England

  3. #3
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: Bare Kingdoms crashes unexpectedly at year 1155

    Change your CFG file entry for the log from trace to error and run the game again. Your log file will be rather large now, compress it (7Zip is freeware) and then upload for me to have a look. I am guessing it's one of those vanilla random crashes as the changes I made to make the game easy to mod should not affect game play.










  4. #4
    BobaHat's Avatar Tiro
    Join Date
    Feb 2010
    Location
    Aarhus, Denmark
    Posts
    256

    Default Re: Bare Kingdoms crashes unexpectedly at year 1155

    Eh... That's weird. I changed the log to error and ran the game from the saved point and ended the turn. Then the game crashed again at the same place, however, the log entry is only a few lines long and looks like this:

    11:25:02.442 [system.rpt] [always] CPU: SSE2
    11:25:02.442 [system.rpt] [always] ==== system log start, build date: Aug 3 2007 version bld-medieval2-kingdoms-104 (45562) ===
    11:25:02.458 [system.rpt] [always] mounted pack packs/data_0.pack
    11:25:02.458 [system.rpt] [always] mounted pack packs/data_1.pack
    11:25:02.458 [system.rpt] [always] mounted pack packs/data_2.pack
    11:25:02.458 [system.rpt] [always] mounted pack packs/data_3.pack
    11:25:02.458 [system.rpt] [always] mounted pack packs/data_4.pack
    11:25:02.458 [system.rpt] [always] mounted pack packs/localized.pack
    11:25:26.696 [game.script] [error] Condition parsin error in mods/Bare_Kingdoms/data/world/maps/campaign/imperial_campaign/campaign_script.txt, at line 2881, column 35
    faction type not recognised
    11:25:54.552 [game.script] [error] Condition parsin error in mods/Bare_Kingdoms/data/world/maps/campaign/imperial_campaign/campaign_script.txt, at line 2881, column 35
    faction type not recognised
    11:27:06.030 system.rpt] [error] Uh oh. This isn't good. No idea why, but exiting now. Sorry pal.
    I checked campaign_script.txt and went to the line in question (line 2881) and there seems to be nothing wrong. It is just a line from a larger entry telling the game to give Scotland a certain unit if it holds the settlement of Edessa (an option that is in place for all factions), but Scotland was nowhere near Edessa in-game, and the game seems to crash right after the Timurids arrive no matter what (I actually took the time to get to this turn twice just to see if it would crash).

    Anyway, here's the line in question in campain_script.txt:

    ...
    monitor_conditions not I_SettlementOwner Edessa = scotland
    and I_EventCounter holds_edessa_scotland == 1
    and I_NumberOfSettlements scotland > 0
    set_event_counter holds_edessa_scotland 0
    end_monitor
    ...
    "I have learned how to be a man.
    And so I shall become the King of Men."
    - Canute the Great, king of Denmark, Norway and England

  5. #5
    BobaHat's Avatar Tiro
    Join Date
    Feb 2010
    Location
    Aarhus, Denmark
    Posts
    256

    Default Re: Bare Kingdoms crashes unexpectedly at year 1155

    Right, I restarted and the game crashed again, on the turn after the Timurids appeared. The log is now huge as you said. Can you make any sense of it?
    Attached Files Attached Files
    "I have learned how to be a man.
    And so I shall become the King of Men."
    - Canute the Great, king of Denmark, Norway and England

  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: Bare Kingdoms crashes unexpectedly at year 1155

    This is the last script action from the log before the crash:
    Code:
    14:18:18.166 [game.script.exec] [trace] exec <spawn_army> at line 549 in mods/Bare_Kingdoms/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    Whatever spawns there (the Mongols?) appears to be causing the crash. Check if it includes the elephant artillery unit - it is known to cause a crash, but usually only in battle.

    The "faction type not recognized" is several seconds (an eternity before it, script wise) before that - not a critical error but it needs to be looked into.
    Code:
    14:14:54.842 [game.script] [error] Condition parsing error in mods/Bare_Kingdoms/data/world/maps/campaign/imperial_campaign/campaign_script.txt, at line 2881, column 35
    faction type not recognised










  7. #7
    BobaHat's Avatar Tiro
    Join Date
    Feb 2010
    Location
    Aarhus, Denmark
    Posts
    256

    Default Re: Bare Kingdoms crashes unexpectedly at year 1155

    For the life of me, I simply cannot figure out what the problem is. Here is my campaign_script.txt file. The spawning Timurid army at line 549 looks to be completely without problems. I have even checked all the names to see if they match, and they do. Can you see any problems?

    Thanks for helping me Gigantus. You have been my modding saviour too many times to count already.
    Attached Files Attached Files
    "I have learned how to be a man.
    And so I shall become the King of Men."
    - Canute the Great, king of Denmark, Norway and England

  8. #8
    BobaHat's Avatar Tiro
    Join Date
    Feb 2010
    Location
    Aarhus, Denmark
    Posts
    256

    Default Re: Bare Kingdoms crashes unexpectedly at year 1155

    Ahhh... I seem to have found the solution on my own. It was because one of the named Timurid generals that spawned had the same name as a child of a character that already existed. It caused the game to freeze. Man it feels good to have solved it...
    "I have learned how to be a man.
    And so I shall become the King of Men."
    - Canute the Great, king of Denmark, Norway and England

  9. #9
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: Bare Kingdoms crashes unexpectedly at year 1155

    Nice moment, isn't it?

    I would still recommend to take out the elephant artillery units from the spawn.










  10. #10
    BobaHat's Avatar Tiro
    Join Date
    Feb 2010
    Location
    Aarhus, Denmark
    Posts
    256

    Default Re: Bare Kingdoms crashes unexpectedly at year 1155

    Can I ask out of curiosity why? They work fine in Custom Battles and such, and they haven't caused any problems on the campaign map so far.
    "I have learned how to be a man.
    And so I shall become the King of Men."
    - Canute the Great, king of Denmark, Norway and England

  11. #11
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: Bare Kingdoms crashes unexpectedly at year 1155

    There used to be a major problem with them in the beginning, I have however never tried them again since the kingdoms extension came out. Maybe somehow they got fixed along the line. If there is no problem in custom battles now then ignore my advice.










Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •