Results 1 to 6 of 6

Thread: The final leg

Hybrid View

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

    Default The final leg

    Im in the last stage of my mod before its finished- adding jerusalem as an emergent faction. however i keep getting CTDs no matter what i try, here are the parts of code i edited, thanks for any help!

    Decr-events-
    Spoiler Alert, click show to read: 
    event historic JERUSALEM_EMERGES
    date 0
    movie event/crusades_faction_intro.bik


    campaign script-
    Spoiler Alert, click show to read: 
    ;-------------- KOJ EMERGES --------------; 1100
    monitor_event EventCounter EventCounterType JERUSALEM_EMERGES
    and EventCounter > 0
    spawn_army
    faction jerusalem
    character Baldwin, named character, age 40, x 328, y 73, family, direction N
    traits GoodCommander 4 , BattleChivalry 3 , CrusaderHistory 2 , BattleChivalry 2 , PublicFaith 1 , ContentGeneral 3 , Hatesegypt 2
    unit NE Bodyguard exp 6 armour 0 weapon_lvl 0
    unit Great Cross exp 2 armour 0 weapon_lvl 0
    unit Pilgrims exp 0 armour 0 weapon_lvl 0
    unit Pilgrims exp 0 armour 0 weapon_lvl 0
    unit Pilgrims exp 1 armour 0 weapon_lvl 0
    unit Pisan and Geonese sailors exp 0 armour 0 weapon_lvl 0
    unit Pisan and Geonese sailors exp 1 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 1 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 0 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 1 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 0 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Knights of Jerusalem exp 6 armour 0 weapon_lvl 0
    unit Knights of Jerusalem exp 6 armour 0 weapon_lvl 0
    unit Knights of Jerusalem exp 6 armour 0 weapon_lvl 0
    unit Knights of Jerusalem exp 6 armour 0 weapon_lvl 0
    end
    spawn_army
    faction jerusalem
    character Andre, named character, age 40, x 328, y 72, family, direction N
    traits GoodCommander 2 , TourneyKnight 2 , BattleChivalry 2 , StrategyChivalry 2 , PublicFaith 2 , ContentGeneral 3 , Hatesislam 2
    unit NE Bodyguard exp 6 armour 0 weapon_lvl 0
    unit Great Cross exp 2 armour 0 weapon_lvl 0
    unit Pilgrims exp 0 armour 0 weapon_lvl 0
    unit Pilgrims exp 1 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 1 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 1 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 0 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 1 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 1 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Knights of Jerusalem exp 6 armour 0 weapon_lvl 0
    end

    historic_event JERUSALEM_INVASION event/crusades_faction_intro.bik

    terminate_monitor

    end_monitor
    wait_monitors
    end_script


    decsr_sm_factions
    Spoiler Alert, click show to read: 
    faction jerusalem, spawned_on_event
    culture northern_european
    religion catholic
    symbol models_strat/symbol_jerusalem.CAS
    rebel_symbol models_strat/symbol_rebels.CAS
    primary_colour red 239, green 239, blue 239;red 200, green 220, blue 240;
    secondary_colour red 197, green 156, blue 61
    loading_logo loading_screen/symbols/symbol128_england.tga
    standard_index 27
    logo_index FACTION_LOGO_JERUSALEM
    small_logo_index SMALL_FACTION_LOGO_JERUSALEM
    triumph_value 5
    custom_battle_availability yes
    horde_min_units 10
    horde_max_units 20
    horde_max_units_reduction_every_horde 10
    horde_unit_per_settlement_population 250
    horde_min_named_characters 2
    horde_max_percent_army_stack 80
    horde_disband_percent_on_settlement_capture 0
    horde_unit NE Bodyguard
    horde_unit Great Cross
    horde_unit Pilgrims
    horde_unit Pisan and Geonese sailors
    horde_unit Templar Sergeant
    horde_unit Templar Crossbowmen
    horde_unit Dismounted Knights of Jerusalem
    horde_unit Knights of Jerusalem
    can_sap no
    prefers_naval_invasions no
    can_have_princess yes
    has_family_tree yes


    and i just checked the Historic_events the description for the event that triggers is gone.

    I know i am missing something, hell probably alot, since im so new at this and teaching myself off the great tutorials found here. my mod is using SS 6.2 with RR/RC, modified to 2tpy with the start date set back to 1080. i currently have jerusalem coming in 1080 so i can test faster, but want it at 1100 once i figure out what im doing lol.

    Thanks in advance!
    More like pretty girls are like EA, you give more and more money, but dont get it back in quality
    - Thatguy

  2. #2

    Default the final leg

    EDIT

    Im in the last stage of my mod before its finished- adding jerusalem as an emergent faction. however i keep getting CTDs no matter what i try.

    Ive narrowed the problem down to the campaign script, so if someone could tell me how to fix this script so it wont caes a CTD at the end of the turn id appreciate it. Thanks!

    Spoiler Alert, click show to read: 
    ;-------------- KOJ EMERGES --------------; 1100
    monitor_event EventCounter EventCounterType Jerusalem_emerges
    and EventCounter > 0

    add_events
    event emergent_faction jerusalem
    date 0
    end_add_events

    spawn_army
    faction jerusalem
    character Baldwin, named character, age 40, x 328, y 73, family
    traits Supplies 1 , Turnsaway 3 , Factionleader 1 , GoodCommander 4 , BattleChivalry 3 , CrusaderHistory 2 , StrategyChivalry 2 , PublicFaith 1 , ContentGeneral 3 , Hatesegypt 2
    unit NE Bodyguard exp 6 armour 0 weapon_lvl 0
    unit Great Cross exp 2 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 0 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 0 armour 0 weapon_lvl 0
    unit Pisan and Geonese sailors exp 1 armour 0 weapon_lvl 0
    unit Pisan and Geonese sailors exp 0 armour 0 weapon_lvl 0
    unit Pisan and Geonese sailors exp 1 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 1 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 0 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 1 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 0 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Knights of Jerusalem exp 6 armour 0 weapon_lvl 0
    unit Knights of Jerusalem exp 6 armour 0 weapon_lvl 0
    unit Knights of Jerusalem exp 6 armour 0 weapon_lvl 0
    unit Knights of Jerusalem exp 6 armour 0 weapon_lvl 0
    end
    spawn_army
    faction jerusalem
    character Andre, named character, age 35, x 328, y 72, family
    traits Supplies 1 , Turnsaway 3 , Factionheir 1 , GoodCommander 2 , TourneyKnight 2 , BattleChivalry 2 , StrategyChivalry 2 , PublicFaith 2 , ContentGeneral 3 , Hatesislam 2
    unit NE Bodyguard exp 6 armour 0 weapon_lvl 0
    unit Great Cross exp 2 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 0 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 1 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 1 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 1 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Sergeant exp 2 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 0 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 1 armour 0 weapon_lvl 0
    unit Templar Crossbowmen exp 1 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Dismounted Knights Of Jerusalem exp 7 armour 0 weapon_lvl 0
    unit Knights of Jerusalem exp 6 armour 0 weapon_lvl 0
    end
    historic_event JERUSALEM_INVASION event/crusades_faction_intro.bik

    terminate_monitor
    end_monitor


    still using SS 6.2 as well.
    Last edited by jman47; June 21, 2009 at 10:02 PM.
    More like pretty girls are like EA, you give more and more money, but dont get it back in quality
    - Thatguy

  3. #3

    Default Re: the final leg

    bumped due to edit
    More like pretty girls are like EA, you give more and more money, but dont get it back in quality
    - Thatguy

  4. #4
    Caesar Clivus's Avatar SS Forum Moderator
    Join Date
    May 2007
    Location
    Australia
    Posts
    12,693

    Default Re: the final leg

    If there is a problem with the campaign script, there should be something in the log file to direct you as to what is causing the crash.

    BftB2 UPDATED 22nd DECEMBER. Member of the Complete Byzantine Unit Roster team

  5. #5
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: The final leg

    Merged your two threads together. A couple of things, you don't need multiple threads for related problems, and second unless you are posting a tool or a tutorial please do not create new threads in the tutorial section of the workshop.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  6. #6
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: The final leg

    Yes, please post the log so that we can tell where the problem is. Also put the log to:

    level =game.script* trace

    so that only script messages will be considered for the log, and all of those will be logged (thus trace).
    Last edited by SigniferOne; June 23, 2009 at 02:09 PM.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

Posting Permissions

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