Results 1 to 12 of 12

Thread: Problem with Adding Unit

Hybrid View

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

    Default Problem with Adding Unit

    Hi thats my First Post,

    i want to add a unit to rtr
    i test to change the skins :no problems
    I read the Tutorials and make every steps
    because i wanted to add the same unit but after i do everything i cant see the unit in custom battle

  2. #2
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: Problem with Adding Unit

    Welcome to the forums, I think you're possibly posting this in the wrong section, anyway:
    If you meant you can't select them for custom battle check in export_descr_units for the unit you added, e.g.
    type steppe horde spearmen
    dictionary steppe_horde_spearmen ; Steppe Horde Spearmen
    category infantry
    class spearmen
    voice_type Light_1
    soldier runaway_slave_spearmen, 60, 0, 1.1
    attributes sea_faring, hide_forest, can_horde, no_custom
    formation 1, 1, 2, 2, 4, horde
    stat_health 1, 0
    stat_pri 6, 2, no, 0, 0, melee, simple, piercing, spear, 25 ,0.73
    stat_pri_attr light_spear, spear_bonus_4
    stat_sec 0, 0, no, 0, 0, no, no, no, none, 25 ,1
    stat_sec_attr no
    stat_pri_armour 2, 7, 3, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat -1
    stat_ground 1,0,1,1
    stat_mental 5, normal, untrained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 270, 0, 30, 50, 300
    ownership sarmatians, roxolani, vandals, slavs, goths, ostrogoths
    check you have the faction you want to play with them in the 'ownership' line and check you don't have 'no_custom' in the attribute line, also make sure you can actually get the faction that owns them in custom battles, that is set in descr_sm_factions.txt:
    custom_battle_availability yes (or no)

    If you meant you can't see them at a distance in custom battles then problem is with the sprite line in descr_model_battle.txt

  3. #3

    Icon13 Re: Problem with Adding Unit

    thanks that you want to help ,
    but it dont helps me so i give you the problem detailed :

    1.at first i want to change the ugly hoplites from rtrpe with the nice tarentine hoplites skin frome iberia tw so i do it and everything was ok
    but they was too armoured so i decided to make a new unit in rtrpe:the tarentine hoplites
    2.here are my text files in rtrpe which i changed to become the new unit:

    export descr unit:

    type tarantine hoplite
    dictionary tarantine_hoplite ; Sacred Band
    category infantry
    class spearmen
    voice_type Heavy_1
    soldier tars_elite_hoplite, 60, 0, 2.3
    officer greek_officer_new
    officer greek_standard_new
    attributes sea_faring, hide_forest, can_sap, hardy
    formation 1, 1, 2, 2, 5, square, phalanx
    stat_health 1, 0
    stat_pri 12, 9, no, 0, 0, melee, simple, piercing, spear, 25 ,1
    stat_pri_attr spear, spear_bonus_8
    stat_sec 11, 9, no, 0, 0, melee, simple, piercing, sword, 25 ,0.75
    stat_sec_attr no
    stat_pri_armour 10, 7, 4, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 12
    stat_ground 4, 2, 0, -2
    stat_mental 20, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 900, 225, 90, 120, 900
    ownership greek_cities, slave

    export descr unit enums:

    greek_tarantine_hoplite
    greek_tarantine_hoplite_descr
    greek_tarantine_hoplite_descr_short

    descr model battle:

    type greek_tarantine_hoplite
    skeleton fs_spearman, fs_swordsman ; combat spear
    indiv_range 40
    texture greek_cities, data/models_unit/textures/white_shield.tga
    texture slave, data/models_unit/textures/white_shield.tga
    model_flexi data/models_unit/white_shield.cas, 15
    model_flexi data/models_unit/white_shield.cas, 30
    model_flexi data/models_unit/white_shield.cas, 40
    model_flexi data/models_unit/white_shield.cas, max
    model_sprite greek_cities, 60.0, data/sprites/greek_cities_tars_elite_hoplite_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f

    3.I have

    6 sprite data in data/sprite
    1 .cas data in data/models_unit (the name is white_shield.cas)
    and in data/models_unit/textures 1 .tga data (white_shield.tga)

    i think i have everything which i need to add the unit to the game but i dont know what the mistake is

    I play rtrpe without BI and the MetropolisNavalMod

    so i hope that the community can help me

    sry for my bad english its my third language
    Last edited by Turk; February 09, 2007 at 08:36 AM.

  4. #4
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: Problem with Adding Unit

    In your export_descr_unit section you have
    soldier tars_elite_hoplite
    that means you descr_model_battle section should read
    type tars_elite_hoplite
    but yours says
    type greek_tarantine_hoplite
    unless you have posted parts from 2 different units that might be the problem.

    The dictionary line should be the one that goes in export_descr_unit_enums,
    so
    dictionary tarantine_hoplite
    means you need:
    tarantine_hoplite
    tarantine_hoplite_descr
    tarantine_hoplite_descr_short
    without the 'greek' bit if you don't have that in the export_descr_units dictionary line. (think enums entry is not required for all game versions but leave it in to be safe) Dictionary line also determines what you have to call the unit cards if you have them - if you don't have unit cards it doesn't matter too much, it will just look like a peasant in the pre-battle selection screen etc.

    You should also put some text information for them in data/text/export_units.txt
    i.e.
    {tarantine_hoplite} Unit Name.....
    {tarantine_hoplite_descr} long description....
    {tarantine_hoplite_descr_short} short description....

    Fixing that should help, if you still have any problems, please describe problem more fully as well, e.g. does it crash when you start game, crash when you start battle, or is unit just not recruitable - in custom battle or in game, to make it recruitable in game you also need to change export_descr_buildings.txt.

  5. #5
    Halie Satanus's Avatar Emperor of ice cream
    Join Date
    Nov 2005
    Location
    London
    Posts
    19,971
    Blog Entries
    1

    Default Re: Problem with Adding Unit

    Moved to the workshop.

  6. #6

    Default Re: Problem with Adding Unit

    hi thanks for the reply, i havent got ctd nothing i only cant see the unit in the custom battle. My new files:
    export descr units:
    type greek_tars_elite_hoplite
    dictionary greek_tars_elite_hoplite
    category infantry
    class spearmen
    voice_type Heavy_1
    soldier greek_tars_elite_hoplite, 60, 0, 2.3
    attributes sea_faring, hide_forest, can_sap, hardy
    formation 1, 1, 2, 2, 5, square, phalanx
    ...
    descr model battle:
    type greek_tars_elite_hoplite
    skeleton fs_spearman, fs_swordsman
    indiv_range 40
    texture greek_cities, data/models_unit/textures/white_shield.tga
    texture slave, data/models_unit/textures/white_shield.tga
    model_flexi data/models_unit/white_shield.cas, 15
    model_flexi data/models_unit/white_shield.cas, 30
    model_flexi data/models_unit/white_shield.cas, 40
    model_flexi data/models_unit/white_shield.cas, max
    model_sprite slave, 60.0, data/sprites/greek_cities_tars_elite_hoplite_sprite.spr
    model_sprite greek_cities, 60.0, data/sprites/greek_cities_tars_elite_hoplite_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f

    export descr unit enums:
    greek_tars_elite_hoplite
    greek_tars_elite_hoplite_descr
    greek_tars_elite_hoplite_descr_short
    export units:
    ¬----------------

    {greek_tars_elite_hoplite} greek_tars_elite_hoplite

    {greek_tars_elite_hoplite_descr}
    Superior\nHardy\nArmored Hoplites\nCan Form Phalanx\nSapping Ability\n\nTarantinoi Leukaspides are...

    {greek_tars_elite_hoplite_descr_short}
    Tarantinoi Leukaspides are ...

    ¬----------------
    so i hope you can found a mistake
    Last edited by Turk; February 13, 2007 at 02:11 PM.

  7. #7

    Default Re: Problem with Adding Unit

    Did you eliminate the officers? I mean greek_officer_new and greek_standard_new from export_descr_unit. If you haven't defined the two models in descr_model_battle and copied the .cas and .tga.dds files, you will have CTD.

    Do you see the unit card corresponding to the peasant? This would be the case if you haven't copied the unit card from data\ui\units\greek_cities folder.

    In case you see this unit card, select this unit and tell us what happens when loading the battle.

    Let's see if you can use this niiiiice unit.

  8. #8

    Default Re: Problem with Adding Unit

    Hi,
    i cant see the ui card and i cant see it in the custom battle which means that it isnt available
    i deleted the officers
    i cant see the peasant
    and i dont have ctd s
    i have the ui cards in the data/Ui folder

    its a really nice unit like all the itw greeks

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

    Default Re: Problem with Adding Unit

    Can you show the whole EDU entry please?
    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.

  10. #10

    Default Re: Problem with Adding Unit

    Quote Originally Posted by Turk View Post
    Hi,
    i cant see the ui card and i cant see it in the custom battle which means that it isnt available
    i deleted the officers
    i cant see the peasant
    and i dont have ctd s
    i have the ui cards in the data/Ui folder

    its a really nice unit like all the itw greeks
    If you can't see the unit in the unit selection of the greek cities, then you have some mistake either in export_descr_unit (more probable) or in descr_model_battle.

    As said by Jubal_Barca, put the complete entries of both files and we will see if there is any mistake.

    Another possible problem is that you put the .cas model or the texture in a wrong folder, but in such case you would get a CTD.:hmmm:

Posting Permissions

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