Results 1 to 9 of 9

Thread: Some factions not workiing for custom battle in mod

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Jubal_Barca's Avatar Master Engineer
    Join Date
    Dec 2006
    Location
    Cloud Cuckoo Land
    Posts
    2,355

    Default Some factions not workiing for custom battle in mod

    I'm trying to add a few extra units to the Warhammer : Total War mod (for RTW 1.2), but keep hitting a problem; I can only add units to the factions used in the original mod (gaul, senate, brutii, carthage) and numidia. For some reason, anything else causes a batttle loading CTD (The mod doesn't have a campaign map, just custom battle).

    Could anyone shed any light on this?

  2. #2

    Default Re: Some factions not workiing for custom battle in mod

    My best guess: You tried adding (existing) units to another faction via export_descr_units but forgot to assign them a texture in descr_model_battle.

    Did you try the show_err command line? Does it give any hints (sometimes, in case of the texture issue Iīve mentioned it does not)?
    I donīt have a copy of RTW at hand at the moment, so I canīt say precisely which files need to be changed, but EDU and DMB are the best guesses for starters, maybe descr_characters (assigns the models for generals) as well.
    Life is a sequence of missed opportunities

  3. #3
    Jubal_Barca's Avatar Master Engineer
    Join Date
    Dec 2006
    Location
    Cloud Cuckoo Land
    Posts
    2,355

    Default Re: Some factions not workiing for custom battle in mod

    Eeep,
    I have added textures in DMB but the thing still won't work! I tried using show_err as advised above, and got:

    Script error in data/world/maps/base/descr_regions.txt, at line 315, column 17.

    Unrecognised: 'italy' as a region resouce class (or hidden resource)

    I am certain that the battle map is 'stable' as it were, as I have played numerous battles with the other mod factions on it.

    In case it helps, here's the relevant code from EDU/DMB;

    DMB;

    type empire_free_company_archers
    skeleton fs_med_archer, fs_med_swordsman
    indiv_range 40
    texture romans_brutii, data/models_unit/textures/WHTW_EMPIRE_MIDDENLAND_FREE_COMPANY_ARCHERS.tga
    texture romans_scipii, data/models_unit/textures/WHTW_EMPIRE_ALTDORF_FREE_COMPANY_ARCHERS.tga
    texture romans_senate, data/models_unit/textures/WHTW_EMPIRE_ALTDORF_FREE_COMPANY_ARCHERS.tga
    model_flexi data/models_unit/WHTW_EMPIRE_FREE_COMPANY_ARCHERS_HIGH.cas, 15
    model_flexi data/models_unit/WHTW_EMPIRE_FREE_COMPANY_ARCHERS_MED.cas, 30
    model_flexi data/models_unit/WHTW_EMPIRE_FREE_COMPANY_ARCHERS_LOW.cas, 40
    model_flexi data/models_unit/WHTW_EMPIRE_FREE_COMPANY_ARCHERS_LOWEST.cas, max
    model_tri 800, 0.5f, 0.5f, 0.5f

    EDU;

    type brettonian archers
    dictionary empire_free_company_archers
    category infantry
    class missile
    voice_type Light_1
    soldier empire_free_company_archers, 20, 0, 0.8
    officer empire_state_captain
    attributes sea_faring,hide_forest
    formation 1.6, 1.6, 3, 3, 3,square
    stat_health 1, 0
    stat_pri 6,0, arrow, 120, 30, missile, archery, piercing, none, 25, 0.75
    stat_pri_attr no
    stat_sec 6,2, no, 0, 0, melee, simple, piercing, sword, 25, 0.35
    stat_sec_attr no
    stat_pri_armour 4, 5, 0, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat 0
    stat_ground 0, 0, 0, 0
    stat_mental 11,low,untrained
    stat_charge_dist 40
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 300, 100, 500, 500, 230
    ownership romans scipii

    Thanks
    Sine remo flumine adverso - Latin, 'up the creek without a paddle'.
    Mod leader of Warhammer Total War, Narnia Total War, and A Game of Colleges: Total War



    Under the patronage of Aden of Woodstock, The Black Prince.

  4. #4

    Default Re: Some factions not workiing for custom battle in mod

    Quote Originally Posted by Jubal_Barca View Post
    Eeep,
    I have added textures in DMB but the thing still won't work! I tried using show_err as advised above, and got:

    Script error in data/world/maps/base/descr_regions.txt, at line 315, column 17.

    Unrecognised: 'italy' as a region resouce class (or hidden resource)

    I am certain that the battle map is 'stable' as it were, as I have played numerous battles with the other mod factions on it.

    In case it helps, here's the relevant code from EDU/DMB;

    DMB;

    type empire_free_company_archers
    skeleton fs_med_archer, fs_med_swordsman
    indiv_range 40
    texture romans_brutii, data/models_unit/textures/WHTW_EMPIRE_MIDDENLAND_FREE_COMPANY_ARCHERS.tga
    texture romans_scipii, data/models_unit/textures/WHTW_EMPIRE_ALTDORF_FREE_COMPANY_ARCHERS.tga
    texture romans_senate, data/models_unit/textures/WHTW_EMPIRE_ALTDORF_FREE_COMPANY_ARCHERS.tga
    model_flexi data/models_unit/WHTW_EMPIRE_FREE_COMPANY_ARCHERS_HIGH.cas, 15
    model_flexi data/models_unit/WHTW_EMPIRE_FREE_COMPANY_ARCHERS_MED.cas, 30
    model_flexi data/models_unit/WHTW_EMPIRE_FREE_COMPANY_ARCHERS_LOW.cas, 40
    model_flexi data/models_unit/WHTW_EMPIRE_FREE_COMPANY_ARCHERS_LOWEST.cas, max
    model_tri 800, 0.5f, 0.5f, 0.5f

    EDU;

    type brettonian archers
    dictionary empire_free_company_archers
    category infantry
    class missile
    voice_type Light_1
    soldier empire_free_company_archers, 20, 0, 0.8
    officer empire_state_captain
    attributes sea_faring,hide_forest
    formation 1.6, 1.6, 3, 3, 3,square
    stat_health 1, 0
    stat_pri 6,0, arrow, 120, 30, missile, archery, piercing, none, 25, 0.75
    stat_pri_attr no
    stat_sec 6,2, no, 0, 0, melee, simple, piercing, sword, 25, 0.35
    stat_sec_attr no
    stat_pri_armour 4, 5, 0, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat 0
    stat_ground 0, 0, 0, 0
    stat_mental 11,low,untrained
    stat_charge_dist 40
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 300, 100, 500, 500, 230
    ownership romans scipii

    Thanks
    Take a very close look at the last line of the code you posted: it has to be romans_scipii, you forgot the underscore. Itīs tiny details like that which drive you mad, donīt feel bad, I had it happen myself often enough (and usually it took me days to recognize).

    The italy script error is normal for the Warhammer mod, that has to do with the (not existing) campaign map. Simply ignore it, once youīve got the battles running youīll notice you still get that error message when you exit the game the usual way (i.e. not via CTD).
    Life is a sequence of missed opportunities

  5. #5
    Jubal_Barca's Avatar Master Engineer
    Join Date
    Dec 2006
    Location
    Cloud Cuckoo Land
    Posts
    2,355

    Default Re: Some factions not workiing for custom battle in mod

    I changed it to an underscore, but still no change - anyway, in EDU I thought that it was only greek_cities that had the underscore and not the roman factions.

    New code is;
    type brettonian archers
    dictionary empire_free_company_archers
    category infantry
    class missile
    voice_type Light_1
    soldier empire_free_company_archers, 20, 0, 0.8
    officer empire_state_captain
    attributes sea_faring,hide_forest
    formation 1.6, 1.6, 3, 3, 3,square
    stat_health 1, 0
    stat_pri 6,0, arrow, 120, 30, missile, archery, piercing, none, 25, 0.75
    stat_pri_attr no
    stat_sec 6,2, no, 0, 0, melee, simple, piercing, sword, 25, 0.35
    stat_sec_attr no
    stat_pri_armour 4, 5, 0, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat 0
    stat_ground 0, 0, 0, 0
    stat_mental 11,low,untrained
    stat_charge_dist 40
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 300, 100, 500, 500, 230
    ownership romans_scipii

    Thanks for your help
    Sine remo flumine adverso - Latin, 'up the creek without a paddle'.
    Mod leader of Warhammer Total War, Narnia Total War, and A Game of Colleges: Total War



    Under the patronage of Aden of Woodstock, The Black Prince.

  6. #6
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: Some factions not workiing for custom battle in mod

    Your EDU entry seems to be missing spaces after the commas on quite a few of the lines ie.
    attributes sea_faring,hide_forest
    don't know if that matters or not off hand but some files are very picky about exact formatting.

    Also maybe worth trying without new units just adding romans_scipii to ownership line (and giving them DMB texture line) on some of the existing units and see if you can get custom battle to work with those first. Maybe that the faction is missing something else - only thing that springs to mind though is to check its set up with a captain, i.e.
    faction romans_scipii
    dictionary 15
    strat_card data/ui/roman/portraits/captain_card_julii.tga
    strat_model sm_roman_lesser_general
    battle_model roman_lesser_general
    battle_equip gladius, chainmail shirt helmet and rectangular shield
    in descr_character.txt and that the battle_model (in this case roman_lesser_general) has a valid entry in DMB

Posting Permissions

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