Results 1 to 10 of 10

Thread: Been a few days, can't get skins to work. Help?

Hybrid View

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

    Default Been a few days, can't get skins to work. Help?

    Ok I spent all night and part of the day working on this and haven't gotten ANY closer. I just installed the game day before last and I'm modding it. I will list my steps here so when it doesn't work again maybe someone can help.

    Using this tutorial:
    http://forums.totalwar.org/vb/showth...eginners/page2

    1. Fresh install Rome:Total War Gold Ediition
    2. Added -show_err to shortcut
    3. Downloaded GREEK/MACEDONIAN skins from the top sticky. Only doing Spartan Hoplite atm to see if I can get it to work then I'll do others.
    4. Renamed "TEXTURES" file in data/model_units to "textures"...probably doesn't matter but I'm doing everything.
    5. Put SPARTAN_HOPLITE.tga.dds in data/models_unit/textures/
    6. Put SPARTAN_HOPLITE.cas in data/models_unit/
    7. Left model_sprite 60.0, data/sprites/greek_hoplite_spartan_pylos_sprite.spr ALONE b/c guide so it fine.
    8. Reworked descr_model_battle and here it is finished:

    type SPARTAN_HOPLITE
    skeleton fs_slow_spearman, fs_slow_swordsman
    indiv_range 40
    ;texture greek_cities, data/models_unit/textures/SPARTAN_HOPLITE.tga
    model_flexi_m data/models_unit/SPARTAN_HOPLITE.cas, 8
    model_flexi_m data/models_unit/SPARTAN_HOPLITE.cas, 15
    model_flexi_m data/models_unit/SPARTAN_HOPLITE.cas, 30
    model_flexi data/models_unit/SPARTAN_HOPLITE.cas, max
    model_sprite 60.0, data/sprites/greek_hoplite_spartan_pylos_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f


    9. Reworked export_descr_unit and here it is:

    type SPARTAN_HOPLITE
    dictionary SPARTAN_HOPLITE ; Spartan
    category infantry
    class spearmen
    voice_type Medium_1
    soldier SPARTAN_HOPLITE, 40, 0, 1.3
    attributes sea_faring, hide_forest, can_sap, very_hardy
    formation 1, 1, 2, 2, 5, square, phalanx
    stat_health 2, 0
    stat_pri 16, 4, no, 0, 0, melee, simple, piercing, spear, 25 ,1
    stat_pri_attr spear, spear_bonus_8
    stat_sec 12, 3, no, 0, 0, melee, simple, piercing, sword, 25 ,1
    stat_sec_attr no
    stat_pri_armour 3, 9, 5, leather
    stat_sec_armour 0, 0, flesh
    stat_heat 2
    stat_ground 2, 0, 0, 0
    stat_mental 14, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 2, 1190, 460, 120, 180, 1190
    ownership greek_cities

    10. Starting game.

  2. #2

    Default Re: Been a few days, can't get skins to work. Help?

    Errors with pigs/wardogs, have to delete some stuff so it doesn't mess up finding it. Basically I'm finding all the wardog/pig units and deleting them out of model_battle and descr_unit

  3. #3

    Default Re: Been a few days, can't get skins to work. Help?

    When you make a new post and paste the text from EDU(export_descr_unit) and DMB(descr_model_battle) put [CODE] before that text and [/CODE] after it. That way it will keep its aspect. Like this:
    Code:
    type             SPARTAN_HOPLITE
    dictionary       SPARTAN_HOPLITE     ; Spartan
    category         infantry
    class            spearmen
    voice_type       Medium_1
    soldier          SPARTAN_HOPLITE, 40, 0, 1.3
    attributes       sea_faring, hide_forest, can_sap, very_hardy
    formation        1, 1, 2, 2, 5, square, phalanx
    stat_health      2, 0
    stat_pri         16, 4, no, 0, 0, melee, simple, piercing, spear, 25 ,1
    stat_pri_attr    spear, spear_bonus_8
    stat_sec         12, 3, no, 0, 0, melee, simple, piercing, sword, 25 ,1
    stat_sec_attr    no
    stat_pri_armour  3, 9, 5, leather
    stat_sec_armour  0, 0, flesh
    stat_heat        2
    stat_ground      2, 0, 0, 0
    stat_mental      14, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        2, 1190, 460, 120, 180, 1190
    ownership        greek_cities
    See the red parts? You do not need to change any of them to change how the unit looks in game. Leave them exactly as they were in vanilla. In fact, ignore the EDU altogether for now. Just change the texture and the model in DMB.
    And remove this:
    Code:
    type                SPARTAN_HOPLITE
    skeleton            fs_slow_spearman, fs_slow_swordsman
    indiv_range            40
    ;texture                greek_cities, data/models_unit/textures/SPARTAN_HOPLITE.tga
    model_flexi_m            data/models_unit/SPARTAN_HOPLITE.cas, 8
    model_flexi_m            data/models_unit/SPARTAN_HOPLITE.cas, 15
    model_flexi_m            data/models_unit/SPARTAN_HOPLITE.cas, 30
    model_flexi            data/models_unit/SPARTAN_HOPLITE.cas, max
    model_sprite        60.0, data/sprites/greek_hoplite_spartan_pylos_sprite.spr
    model_tri            400, 0.5f, 0.5f, 0.5f

  4. #4

    Default Re: Been a few days, can't get skins to work. Help?

    Error in export_descr_buildings, unknown unit greek hoplite spartan.

    Before:

    recruit "greek hoplite spartan" 0 requires factions { greek_cities, } and hidden_resource sparta

    After:

    recruit "SPARTAN_HOPLITE" 0 requires factions { greek_cities, } and hidden_resource sparta

    TWO ENTRIES CHANGED

  5. #5

    Default Re: Been a few days, can't get skins to work. Help?

    Error in same place: Export_descr_buildings

    wardogs/pigs error...so I'm going to DELETE all wardog/pig entries in file.

    warhounds as well IN descr_model_battle, descr_unit and buildings.
    Last edited by mikehmike; February 14, 2010 at 02:33 PM.

  6. #6

    Default Re: Been a few days, can't get skins to work. Help?

    Game started, NO SPARTANS ANYWHERE. Got this error when leaving game:


    Generic Error:

    World creation error: couldn't find unit description for unit type 'greek hoplite spartan'



    edit: Just fyi, I've had this game for like 50hours and I have no programming experience. I just like things like this and the game is amazing. Also I am doing what florin80 stated before addressing this "world" error.

  7. #7

    Default Re: Been a few days, can't get skins to work. Help?

    Updated EDB (back to vanilla)

    Code:
    type             greek hoplite spartan
    dictionary       greek_hoplite_spartan     ; Spartan Hoplites
    category         infantry
    class            spearmen
    voice_type       Medium_1
    soldier          greek_hoplite_spartan_pylos, 40, 0, 1.3
    attributes       sea_faring, hide_forest, can_sap, very_hardy
    formation        1, 1, 2, 2, 5, square, phalanx
    stat_health      2, 0
    stat_pri         16, 4, no, 0, 0, melee, simple, piercing, spear, 25 ,1
    stat_pri_attr    spear, spear_bonus_8
    stat_sec         12, 3, no, 0, 0, melee, simple, piercing, sword, 25 ,1
    stat_sec_attr    no
    stat_pri_armour  3, 9, 5, leather
    stat_sec_armour  0, 0, flesh
    stat_heat        2
    stat_ground      2, 0, 0, 0
    stat_mental      14, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        2, 1190, 460, 120, 180, 1190
    ownership        greek_cities

    Removed ; from DMB but everything else same.

  8. #8

    Default Re: Been a few days, can't get skins to work. Help?

    Upon starting game:

    Script error in data/export_descr_unit.txt, at line 4128, column 31.

    Could not find solider battle model for unit type 'greek hoplite spartan'


    skins I downloaded: http://www.twcenter.net/forums/showthread.php?t=46617
    Last edited by mikehmike; February 14, 2010 at 03:09 PM.

  9. #9

    Default Re: Been a few days, can't get skins to work. Help?

    Ok this is getting long lol..but maybe it will help future idiots like myself. When I went into the EDU and changed 1 line:

    Code:
    type             greek hoplite spartan
    dictionary       greek_hoplite_spartan     ; Spartan Hoplites
    category         infantry
    class            spearmen
    voice_type       Medium_1
    soldier          SPARTAN_HOPLITE, 40, 0, 1.3
    attributes       sea_faring, hide_forest, can_sap, very_hardy
    formation        1, 1, 2, 2, 5, square, phalanx
    stat_health      2, 0
    stat_pri         16, 4, no, 0, 0, melee, simple, piercing, spear, 25 ,1
    stat_pri_attr    spear, spear_bonus_8
    stat_sec         12, 3, no, 0, 0, melee, simple, piercing, sword, 25 ,1
    stat_sec_attr    no
    stat_pri_armour  3, 9, 5, leather
    stat_sec_armour  0, 0, flesh
    stat_heat        2
    stat_ground      2, 0, 0, 0
    stat_mental      14, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        2, 1190, 460, 120, 180, 1190
    ownership        greek_cities
    Now if I change SPARTAN_HOPLITE to the vanilla text it fails and gives me the can't find greek hoplite spartan error. MEANING the "solider" line is the line the game pulls up to figure out what the file is called IE "greek hoplite spartan" or as I have it in DMB "SPARTAN_HOPLITE".

    So once I made EDU as the above code shows the game loads fine, I go to custom games and pull up Spartan soliders. Upon loading the battle it fails and says "unit doesn't exist SPARTAN_HOPLITE.cas"

  10. #10

    Default Re: Been a few days, can't get skins to work. Help?

    WOOT I did it!


    Ok so basically you have to put the TGA/CAS files in the right place then change the DMB and then change the solider line in the EDU so it knows where exactly to find it. Now I'm off to finish my army and probably do Macedonian

Posting Permissions

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