Results 1 to 2 of 2

Thread: crash in battle bug

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Valiant Champion's Avatar Praepositus
    Join Date
    Jun 2008
    Location
    Central Kentucky
    Posts
    5,402

    Default crash in battle bug

    Attachment 204559

    Is in campaign battle script

    this last section in log

    Spoiler Alert, click show to read: 
    16:09:22.243 [game.script.counter] [trace] counter <g_stop> = 2
    16:09:22.243 [game.script.exec] [trace] exec <label_unit> at line 59761 in mods/Third_Age_3/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    16:09:22.243 [game.script.exec] [trace] exec <battle_wait> at line 59762 in mods/Third_Age_3/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    16:09:22.243 [game.script.timer.battle] [trace] Battle timer started 0.10 @ 384.1, line number 59762
    16:09:22.332 [game.script.timer.battle] [trace] Battle timer finished 0.10 @ 384.2, line number 59762
    16:09:22.333 [game.script.exec] [trace] exec <unit_order_halt> at line 59763 in mods/Third_Age_3/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    16:09:22.333 [game.script.exec] [trace] exec <if> at line 59765 in mods/Third_Age_3/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    16:09:22.333 [game.script.exec] [trace] exec <battle_wait> at line 59765 in mods/Third_Age_3/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    16:09:22.334 [game.script.timer.battle] [trace] Battle timer started 30.00 @ 384.2, line number 59765
    16:09:52.217 [game.script.timer.battle] [trace] Battle timer finished 30.00 @ 414.2, line number 59765
    16:09:52.217 [game.script.exec] [trace] exec <if> at line 59768 in mods/Third_Age_3/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    16:09:52.218 [game.script.exec] [trace] exec <if> at line 59773 in mods/Third_Age_3/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    16:09:52.218 [game.script.exec] [trace] exec <release_unit> at line 59773 in mods/Third_Age_3/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    16:09:52.218 [game.script.exec] [trace] exec <set_counter> at line 59774 in mods/Third_Age_3/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    16:09:52.218 [game.script.counter] [trace] counter <g_stop> = 0
    16:09:59.313 [system.rpt] [error] Medieval 2: Total War encountered an unspecified error and will now exit.


    this section read in the campaign battle script


    ;;;;;;;General Stop

    monitor_conditions I_BattleStarted
    and I_CompareCounter g_stop = 1
    and I_CompareCounter open_battle = 1
    and I_BattleEnemyArmyNumberOfUnits > 2
    and I_BattlePlayerArmyIsAttacker
    and I_BattleAiAttacking
    and I_UnitEnemyUnitInRadius a2g1 120

    set_counter g_stop 2
    label_unit 1 0 0 a2g1
    battle_wait 0.1
    unit_order_halt a2g1
    if I_BattleEnemyArmyNumberOfUnits > 5
    battle_wait 30
    end_if
    if I_BattleEnemyArmyNumberOfUnits < 6
    battle_wait 15
    end_if
    if I_BattlePlayerArmyIsAttacker
    and I_CompareCounter g_stop = 2
    and I_BattleAiAttacking
    release_unit a2g1
    set_counter g_stop 0
    end_if
    end_monitor

    Looks like it is a bug after all.

    I am thinking this script is read sometime before the battle or maybe even before the campaign as it is in the world folder so that in certain battles it is already predetermined for a certian action to be taken by AI in certian circumstances. So the crash is predetermined before the battle is fought. Correct me if I am wrong. Than there are the counters which are random and if counter results are a certian way and a command given than CRASH.

    Also if script is fixed than one would probably have to start a new campaign for the fix to work. correct me if I am wrong.
    Last edited by Valiant Champion; March 21, 2012 at 03:28 PM.

  2. #2
    Valiant Champion's Avatar Praepositus
    Join Date
    Jun 2008
    Location
    Central Kentucky
    Posts
    5,402

    Default Re: crash in battle bug

    I guess maybe the file is accessed during battle. I suppose coding could be written to access the file in the world folder even though generally the world folder is only ever parsed completely on beginning of campaign.

Posting Permissions

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