Results 1 to 7 of 7

Thread: Question about to place a Elephant in....

Hybrid View

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

    Default Question about to place a Elephant in....

    I wanted to ask how i could place a Elephant ( unit ) for the faction thrace.
    i don't now how i have to place it.
    i think that it has to do with descr_buildings.txt
    i know that i have to place 2 things in descr_model_battle.txt one for the elephant and one for the driver cq unit
    so far i was with a little bit more than that.
    no errors seen and still no elephant on screen.
    and a elephant is big believe me and he can't hide it self so quick on my screen.

    so if there is someone who wanted to help me, thanks for now.

  2. #2
    Shaidar Haran Senior Member SAM Site Champion Myrddraal's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    5,752

    Default Re: Question about to place a Elephant in....

    So you want to add an elephant unit to thrace. By that I take it you want elephants to be recruitable by thrace right?

    Lets use carthaginian elephant african as an example

    1. Open export_descr_unit.txt and look for the entry for elephants:

    Code:
    type             carthaginian elephant african
    dictionary       carthaginian_elephant_african      ; War Elephants
    category         cavalry
    class            heavy
    voice_type       Medium_1
    soldier          carthaginian_elephant_crew, 18, 6, 1
    mount            elephant african
    mount_effect     horse +4, chariot +8, camel +4
    attributes       sea_faring, can_run_amok, frighten_foot, frighten_mounted
    formation        7, 11, 13,16, 1, square
    stat_health      1, 12
    stat_pri         6, 3, arrow, 120, 60, missile, archery, piercing, none, 25 ,1
    stat_pri_attr    no
    stat_sec         6, 8, no, 0, 0, melee, other, blunt, none, 25 ,1
    stat_sec_attr    area, launching, ap
    stat_pri_armour  0, 4, 0, flesh
    stat_sec_armour  13, 3, flesh
    stat_heat        -1
    stat_ground      0, 1, -6, -1
    stat_mental      8, normal, untrained
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        2, 2520, 490, 260, 380, 2520
    ownership        carthage
    You need to make the following edits here (highlighted in blue):

    Code:
    ownership        carthage, thrace
    2. Now open descr_model_battle.txt and find the entry for carthaginian_elephant_crew (you get this name from the 'soldier' line in export_descr_unit.txt)

    Code:
    type                carthaginian_elephant_crew
    skeleton            fs_forest_elephant_rider
    indiv_range            40
    texture                carthage, data/models_unit/textures/unit_carthage_light_archer_carthage.tga
    model_flexi        data/models_unit/unit_carthage_archer_high.cas, 15
    model_flexi        data/models_unit/unit_carthage_archer_med.cas, 30
    model_flexi        data/models_unit/unit_carthage_archer_low.cas, 40
    model_flexi        data/models_unit/unit_carthage_archer_lowest.cas, max
    model_sprite        carthage, 60.0, data/sprites/carthage_carthaginian_elephant_crew_sprite.spr
    model_tri            400, 0.5f, 0.5f, 0.5f
    In this section textures are assigned for different factions. For now, we'll use the same textures, but for thrace. Make the following edits (highlighted in blue):

    Code:
    type                carthaginian_elephant_crew
    skeleton            fs_forest_elephant_rider
    indiv_range            40
    texture                carthage, data/models_unit/textures/unit_carthage_light_archer_carthage.tga
    texture                thrace, data/models_unit/textures/unit_carthage_light_archer_carthage.tga
    model_flexi        data/models_unit/unit_carthage_archer_high.cas, 15
    model_flexi        data/models_unit/unit_carthage_archer_med.cas, 30
    model_flexi        data/models_unit/unit_carthage_archer_low.cas, 40
    model_flexi        data/models_unit/unit_carthage_archer_lowest.cas, max
    model_sprite        carthage, 60.0, data/sprites/carthage_carthaginian_elephant_crew_sprite.spr
    model_sprite        thrace, 60.0, data/sprites/carthage_carthaginian_elephant_crew_sprite.spr
    model_tri            400, 0.5f, 0.5f, 0.5f

    And you're done!

    BTW, I suggest you read some of the tutorials in the Modification Guides, Tools & Tutorials database. The question you're asking is quite basic, and you could find a lot of your answers there.

    Good luck
    Last edited by Myrddraal; 09-06-2006 at 14:29.

  3. #3

    Default Re: Question about to place a Elephant in....

    Myrddraal Thanks for your explonation, i am happy to see this kind.
    and yes i will listen to your suggest, before i put somequestions.
    Thanks again...

  4. #4

    Default Re: Question about to place a Elephant in....

    sorry but i didn't work
    I yhink that i have to change something also in the export_descr_buildings.txt
    file and even something in barack ore something else.
    But thats what i think, i think!!!
    And yes i did read somethings in the side where you advies me to read .
    But nothing did work for now.
    So i hope you could help me again a little bit
    Also you did write one thing wrong in the Sprite.spr
    it has to be Thrace in the last blue line.

    well people who could help me, please don't be afraid , let me now something, like how the weather is to day.

  5. #5
    Shaidar Haran Senior Member SAM Site Champion Myrddraal's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    5,752

    Default Re: Question about to place a Elephant in....

    You're quite right about the last blue line.

    So the instructions I gave you didn't look at recruitment at all, (which is handled in edb). Are the elephants availiable for Thrace in Custom Battle?

  6. #6
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: Question about to place a Elephant in....

    It seems to me that probably you need also to "clone" the texture for the mount (elephant itself) from another faction, let's say carthaginians or seleucids. I think that thrace has no elephant texture assigned.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO