Results 1 to 2 of 2

Thread: Historical Battle: script problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Historical Battle: script problem

    Hey, I'm making a historical battle and i have the following problem: it does not recognise the script, and the following error report is shown:



    It's the first time something like this happens to me. I tried erasing that line, without positive results (the battle never finishes loading).

    I'm attaching the full script, if you want to read it... I've erased some monitors so that it's not such a long post.

    Spoiler Alert, click show to read: 
    script

    ; init
    prepare_for_battle

    ;label_unit ALLIANCE ARMY UNIT

    label_unit 0 0 0 ENGLISH_GENERAL
    label_unit 0 0 1 ENGLISH_SELECT_FYRD1
    label_unit 0 0 2 ENGLISH_SELECT_FYRD2
    label_unit 0 0 3 ENGLISH_SELECT_FYRD3
    label_unit 0 0 4 ENGLISH_LIGHT_FYRD1
    label_unit 0 0 5 ENGLISH_FYRD1
    label_unit 0 0 6 ENGLISH_FYRD2
    label_unit 0 0 7 ENGLISH_FYRD3
    label_unit 0 0 8 ENGLISH_HOUSECARL1
    label_unit 0 0 9 ENGLISH_HOUSECARL2
    label_unit 0 0 10 ENGLISH_LIGHT_FYRD2
    label_unit 0 0 11 ENGLISH_THEGN1
    label_unit 0 0 12 ENGLISH_THEGN2
    label_unit 0 0 13 ENGLISH_THEGN3
    label_unit 0 0 14 ENGLISH_THEGN4
    label_unit 0 0 15 ENGLISH_LIGHT_FYRD3
    label_unit 0 0 16 ENGLISH_LIGHT_FYRD4


    label_unit 1 0 0 NORMAN_GENERAL
    label_unit 1 0 1 NORMAN_ARCHERS1
    label_unit 1 0 2 NORMAN_ARCHERS2
    label_unit 1 0 3 NORMAN_ARCHERS3
    label_unit 1 0 4 NORMAN_ARCHERS4
    label_unit 1 0 5 NORMAN_ARCHERS5
    label_unit 1 0 6 NORMAN_KNIGHTS1
    label_unit 1 0 7 NORMAN_CAVALRY1
    label_unit 1 0 8 NORMAN_FOOTKNIGHTS1
    label_unit 1 0 9 NORMAN_ARMOURED_AXEMEN1
    label_unit 1 0 10 NORMAN_ARMOURED_AXEMEN2
    label_unit 1 0 11 NORMAN_AXEMEN1
    label_unit 1 0 12 NORMAN_AXEMEN2
    label_unit 1 0 13 NORMAN_SPEARMEN1
    label_unit 1 0 14 NORMAN_SPEARMEN2
    label_unit 1 0 15 NORMAN_FOOTKNIGHTS2
    label_unit 1 0 16 NORMAN_KNIGHTS2
    label_unit 1 0 17 NORMAN_AXEMEN3
    label_unit 1 0 18 NORMAN_SPEARMEN3


    ai_active_set off

    declare_counter PITITO


    define_unit_group NORMAN_ARCHERS NORMAN_ARCHERS1 NORMAN_ARCHERS2 NORMAN_ARCHERS3 NORMAN_ARCHERS4 NORMAN_ARCHERS5
    define_unit_group NORMAN_REST NORMAN_GENERAL NORMAN_KNIGHTS1 NORMAN_CAVALRY1 NORMAN_FOOTKNIGHTS1 NORMAN_ARMOURED_AXEMEN1 NORMAN_ARMOURED_AXEMEN2 NORMAN_AXEMEN1 NORMAN_AXEMEN2 NORMAN_SPEARMEN1 NORMAN_SPEARMEN2 NORMAN_SPEARMEN3 NORMAN_FOOTKNIGHTS2 NORMAN_KNIGHTS2 NORMAN_AXEMEN3

    while ! I_BattleStarted ; wait FOR DEPLOYMENT
    end_while




    ;;;;;;;;;;;;;;;;;;;;;;;;;move archers forward until they have the enemy in range;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions not I_UnitInRangeOfUnit NORMAN_ARCHERS1 ENGLISH_THEGN1
    unit_order_move_relative NORMAN_ARCHERS1 0 500
    terminate_monitor
    end_monitor

    [some monitors were cut away]

    ;;;;;;;;;;;;;;;;;;;;;;;order the army to follow the archers;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_UnitGroupDistanceFromGroup NORMAN_ARCHERS NORMAN_REST 100
    unit_group_order_relative_move_formed NORMAN_ARCHERS1 0 500
    set_counter PITITO 1
    terminate_monitor
    end_monitor

    [some monitors were cut away]

    ;;;;;;;;;;;;;;;;;;;;;;;order archers to attack the enemies when they are in range;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_UnitInRangeOfUnit NORMAN_ARCHERS1 ENGLISH_THEGN1
    unit_order_attack_unit NORMAN_ARCHERS1 ENGLISH_THEGN1
    terminate_monitor
    end_monitor

    [some monitors were cut away]

    while I_InBattle
    end_while

    end_script
    There are none so enslaved as those who falsely believe they are free

  2. #2

    Default Re: Historical Battle: script problem

    Please pm me the entire script,i've scripted a lot of historical battles in 3 years to be able to create historical videos re enactement. I have had that problem in the past,so again, pm me both your descr_battle & descr_script files. Because,I can help you way better,if i have everything you've done for this historical battle.

    so i'll wait for your pm

Posting Permissions

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