Results 1 to 16 of 16

Thread: unit numbers

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    SavageFeat's Avatar Senator
    Join Date
    Mar 2010
    Location
    Wellington, New Zealand
    Posts
    1,190

    Default unit numbers

    How do I edit the amount of men a unit has? and if I do is it still save game compatible?

    I want to make the governor Generals in RS1.6 have 80 men instead of 25 ty for replys
    Wars of Rome: The rise
    A Modifacation for Rome : Total War 1.5
    (Pretty sure its dead now^)


  2. #2

    Default Re: unit numbers

    You can change the number of men in an unit in the Export_Descr_Unit (EDU for short) file in the data folder.

    An example:

    Spoiler Alert, click show to read: 
    type carthaginian peasant
    dictionary carthaginian_peasant ; Peasants
    category infantry
    class light
    voice_type Light_1
    soldier carthaginian_peasant, 60, 0, 0.7
    attributes sea_faring, hide_forest, can_sap
    formation 1.2, 1.8, 2.4, 2.4, 6, horde
    stat_health 1, 0
    stat_pri 3, 2, no, 0, 0, melee, simple, piercing, mace, 25 ,0.73
    stat_pri_attr no
    stat_sec 0, 0, no, 0, 0, no, no, no, none, 25 ,1
    stat_sec_attr no
    stat_pri_armour 0, 3, 0, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat -1
    stat_ground 2, 1, 0, -1
    stat_mental 0, low, untrained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 120, 100, 20, 20, 120
    ownership carthage, numidia, slave


    Change the highlighted in red number. (this is the number of men at Normal unit scale. It is half this number at Small scale, twice at Large, and four times at Huge)

    I don't know if it is save game compatible.
    Macedon1an's Workshop | Germanic Unit Pack | HRTW | Macedonia Rises Again

    "With the blood we shed all over the Macedonian fields and forests, we serve freedom, as the Macedonian army of Alexander of Macedon did, with our slogan “Freedom or Death!"" - From the Constitution of the Macedonian Kresna Uprising, 1878

  3. #3
    stoogeofstooges's Avatar Decanus
    Join Date
    Jul 2010
    Location
    Pennsylvania
    Posts
    541

    Default Re: unit numbers

    I had a slightly similar question, does this work if you want to add an officer or standard bearer to a unit that doesn't already have one? I want to add KLA's new spartan_officer as an officer to the spartan hoplite unit. (the spartan_officer does work in battles, I replaced the greek_hoplite_elite vanilla standard_bearer officer with the new spartan_officer and it worked). I went to the EDU and added an entry for "officer" underneath "soldier" for the spartan hoplites and designated the correct path, but the officer doesn't show up. It only works on the elite hoplite, and other units that already had an officer from the vanilla install. (I'm playing vanilla by the way with some of my own changes.) I also noticed that the Roman Triari had 2 officers, but the number that was highlighted in red in the previous post was still the same as other units that had no officers. Same amount of men, no change. I'm not sure what I'm doing wrong.

  4. #4

    Default Re: unit numbers

    Quote Originally Posted by stoogeofstooges View Post
    I had a slightly similar question, does this work if you want to add an officer or standard bearer to a unit that doesn't already have one? I want to add KLA's new spartan_officer as an officer to the spartan hoplite unit. (the spartan_officer does work in battles, I replaced the greek_hoplite_elite vanilla standard_bearer officer with the new spartan_officer and it worked). I went to the EDU and added an entry for "officer" underneath "soldier" for the spartan hoplites and designated the correct path, but the officer doesn't show up. It only works on the elite hoplite, and other units that already had an officer from the vanilla install. (I'm playing vanilla by the way with some of my own changes.) I also noticed that the Roman Triari had 2 officers, but the number that was highlighted in red in the previous post was still the same as other units that had no officers. Same amount of men, no change. I'm not sure what I'm doing wrong.
    Officers are not counted as number of men in an unit in the EDU file.

    I'm also using KLA's spartan officer skin in my mod, and it works for me... These are the text files :

    export_descr_unit
    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
    officer greek_officer
    attributes sea_faring, hide_forest, can_sap, very_hardy
    formation 1, 1, 2, 2, 5, square, phalanx
    stat_health 2, 0
    stat_pri 16, 8, no, 0, 0, melee, simple, piercing, spear, 25 ,1
    stat_pri_attr spear
    stat_sec no, no, no, 0, 0, none, none, none, none, no ,no
    stat_sec_attr no
    stat_pri_armour 3, 9, 5, leather
    stat_sec_armour 0, 1, 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, 1220, 460, 130, 190, 1220
    ownership greek_cities


    Officer entry in descr_model_battle
    type greek_officer
    skeleton fs_spearman
    indiv_range 40
    texture macedon, data/models_unit/textures/Spartan_Officer_Hoplite.tga
    texture seleucid, data/models_unit/textures/Spartan_Officer_Hoplite.tga
    texture greek_cities, data/models_unit/textures/Spartan_Officer_Hoplite.tga ;MISSING
    texture thrace, data/models_unit/textures/Spartan_Officer_Hoplite.tga
    ;texture slave, data/models_unit/textures/Spartan_Officer_Hoplitel.tga ;MISSING
    model_flexi_m data/models_unit/Spartan_Officer_Hoplite.cas, 8
    model_flexi_m data/models_unit/Spartan_Officer_Hoplite.cas, 15
    model_flexi data/models_unit/Spartan_Officer_Hoplite.cas, 30
    model_flexi data/models_unit/Spartan_Officer_Hoplite.cas, 40
    model_flexi data/models_unit/Spartan_Officer_Hoplite.cas, max
    model_sprite 60.0, data/sprites/greek_officer_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.
    Macedon1an's Workshop | Germanic Unit Pack | HRTW | Macedonia Rises Again

    "With the blood we shed all over the Macedonian fields and forests, we serve freedom, as the Macedonian army of Alexander of Macedon did, with our slogan “Freedom or Death!"" - From the Constitution of the Macedonian Kresna Uprising, 1878

  5. #5
    stoogeofstooges's Avatar Decanus
    Join Date
    Jul 2010
    Location
    Pennsylvania
    Posts
    541

    Default Re: unit numbers

    Okay, lets see if it will work...

  6. #6
    stoogeofstooges's Avatar Decanus
    Join Date
    Jul 2010
    Location
    Pennsylvania
    Posts
    541

    Default Re: unit numbers

    Crap, its not working still! I don't know what it is. I used a different model and texture for the spartan hoplite other than yours, and I gave the spartan_officer its own entry in descr_model_battle so it wouldn't be used by every greek faction as an officer. Those are the only things I did differently. In fact, the only greek hoplite unit that will show up with an officer in battle is the armored/elite hoplites. I changed the model and texture for the too, but as a test I replaced the vanilla standard bearer they originally had with the spartan_officer and it worked! And so did the new standard bearer that I got from the Hellenic officers pack. I don't know what the hell to do!

    Here are my EDU entries for my greek hoplites. I took away the phalanx ability and edited some attack and defense values. But as said before I KNOW that the spartan_officer works. It just works for only one unit.
    Spoiler Alert, click show to read: 

    type greek hoplite
    dictionary greek_hoplite ; Hoplites
    category infantry
    class spearmen
    voice_type Medium_1
    soldier greek_hoplite, 40, 0, 1
    officer greek_standard
    attributes sea_faring, hide_forest, can_sap
    formation 1, 1, 2, 2, 5, square
    stat_health 1, 0
    stat_pri 9, 3, no, 0, 0, melee, simple, piercing, spear, 25 ,1
    stat_pri_attr spear, spear_bonus_8
    stat_sec 0, 0, no, 0, 0, melee, simple, piercing, sword, 25 ,1
    stat_sec_attr no
    stat_pri_armour 8, 5, 5, leather
    stat_sec_armour 0, 0, flesh
    stat_heat 3
    stat_ground 2, 0, 0, 0
    stat_mental 4, normal, highly_trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 440, 170, 50, 70, 440
    ownership greek_cities, slave


    type greek hoplite elite
    dictionary greek_hoplite_elite ; Armoured Hoplites
    category infantry
    class spearmen
    voice_type Heavy_1
    soldier greek_armoured_hoplite, 40, 0, 1.3
    officer greek_standard
    attributes sea_faring, hide_forest, can_sap, hardy
    formation 1, 1, 2, 2, 5, square
    stat_health 1, 0
    stat_pri 10, 4, no, 0, 0, melee, simple, piercing, spear, 25 ,1
    stat_pri_attr spear, spear_bonus_8
    stat_sec 0, 0, no, 0, 0, melee, simple, piercing, sword, 25 ,1
    stat_sec_attr no
    stat_pri_armour 13, 7, 5, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 4
    stat_ground 2, 0, 0, 0
    stat_mental 8, normal, highly_trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 640, 210, 70, 100, 640
    ownership greek_cities


    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
    officer spartan_officer
    attributes sea_faring, hide_forest, can_sap, very_hardy
    formation 1, 1, 2, 2, 5, square
    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 0, 0, no, 0, 0, melee, simple, piercing, sword, 25 ,1
    stat_sec_attr no
    stat_pri_armour 5, 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, here is the descr_model_battle entries for the greek general (which works), lesser general (which works), standard bearer (which works), the spartan officer (works only for armored hoplites), and the vanilla greek_officer which I didn't edit. I changed their skeletons using SigniferOne's pack, and I know you're tired of me saying this by now, but I tested them and I know they work.
    Spoiler Alert, click show to read: 

    type greek_general
    skeleton fs_s1_swordsman
    skeleton_horse fs_hc_swordsman
    skeleton_elephant fs_forest_elephant_rider
    skeleton_chariot fs_chariot_sword
    skeleton_camel fs_hc_swordsman
    indiv_range 40
    texture greek_cities, data/models_unit/textures/Greek_Strategos1.tga
    texture seleucid, data/models_unit/textures/Greek_Strategos4.tga
    texture macedon, data/models_unit/textures/Greek_Strategos3.tga
    texture thrace, data/models_unit/textures/Greek_Strategos2.tga
    model_flexi data/models_unit/Strategos_only_sword.cas, 15
    model_flexi data/models_unit/Strategos_only_sword.cas, 30
    model_flexi data/models_unit/Strategos_only_sword.cas, 40
    model_flexi data/models_unit/Strategos_only_sword.cas, max
    model_sprite 60.0, data/sprites/greek_general_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5

    type greek_lesser_general
    skeleton fs_dagger
    skeleton_horse fs_hc_swordsman
    skeleton_elephant fs_forest_elephant_rider
    skeleton_chariot fs_chariot_sword
    skeleton_camel fs_hc_swordsman
    indiv_range 40
    texture greek_cities, data/models_unit/textures/new_captain_greece.TGA
    texture seleucid, data/models_unit/textures/new_captain_seleucids.TGA
    texture macedon, data/models_unit/textures/new_captain_macedon.TGA
    texture thrace, data/models_unit/textures/new_captain_thrace.TGA
    model_flexi data/models_unit/officer_greek_lesser_general_high.cas, 15
    model_flexi data/models_unit/officer_greek_lesser_general_med.cas, 30
    model_flexi data/models_unit/officer_greek_lesser_general_low.cas, 40
    model_flexi data/models_unit/officer_greek_lesser_general_lowest.cas, max
    model_sprite 60.0, data/sprites/greek_lesser_general_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5

    type spartan_officer
    skeleton fs_s1_hoplite
    indiv_range 40
    texture greek_cities, data/models_unit/textures/Spartan_Officer_Hoplite.tga
    texture slave, data/models_unit/textures/Spartan_Officer_Hoplite.tga
    model_flexi_m data/models_unit/Spartan_Officer_Hoplite.cas, 8
    model_flexi_m data/models_unit/Spartan_Officer_Hoplite.cas, 15
    model_flexi data/models_unit/Spartan_Officer_Hoplite.cas, 30
    model_flexi data/models_unit/Spartan_Officer_Hoplite.cas, 40
    model_flexi data/models_unit/Spartan_Officer_Hoplite.cas, max
    model_sprite 60.0, data/sprites/greek_officer_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.

    type greek_officer
    skeleton fs_dagger
    indiv_range 40
    texture macedon, data/models_unit/textures/officer_greek_hoplite_macedon.tga
    texture seleucid, data/models_unit/textures/officer_greek_hoplite_seleucid.tga
    ;texture greek_cities, data/models_unit/textures/officer_greek_hoplite_greece.tga ;MISSING
    texture thrace, data/models_unit/textures/officer_greek_hoplite_thrace.tga
    ;texture slave, data/models_unit/textures/officer_greek_hoplite_rebel.tga ;MISSING
    model_flexi_m data/models_unit/officer_greek_hoplite_400.cas, 8
    model_flexi_m data/models_unit/officer_greek_hoplite_300.cas, 15
    model_flexi data/models_unit/officer_greek_hoplite_200.cas, 30
    model_flexi data/models_unit/officer_greek_hoplite_100.cas, 40
    model_flexi data/models_unit/officer_greek_hoplite_70.cas, max
    model_sprite 60.0, data/sprites/greek_officer_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.

    type greek_standard
    skeleton fs_standard_bearer
    indiv_range 40
    texture macedon, data/models_unit/textures/new_standard_macedon.TGA
    texture seleucid, data/models_unit/textures/new_standard_seleucids.TGA
    texture greek_cities, data/models_unit/textures/new_standard_sparta.TGA
    texture thrace, data/models_unit/textures/new_standard_thrace.TGA
    texture slave, data/models_unit/textures/standard_new_slave.TGA
    model_flexi_m data/models_unit/hellenic_standard_high.cas, 8
    model_flexi_m data/models_unit/hellenic_standard_high.cas, 15
    model_flexi data/models_unit/hellenic_standard_high.cas, 30
    model_flexi data/models_unit/hellenic_standard_low.cas, 40
    model_flexi data/models_unit/hellenic_standard_low.cas, max
    model_sprite 60.0, data/sprites/roman_legionary_cohort_ii_sprite.spr
    model_sprite seleucid, 60.0, data/sprites/seleucid_roman_legionary_cohort_ii_sprite.spr
    model_sprite romans_senate, 60.0, data/sprites/romans_senate_roman_legionary_cohort_ii_sprite.spr
    model_sprite romans_scipii, 60.0, data/sprites/romans_scipii_roman_legionary_cohort_ii_sprite.spr
    model_sprite romans_brutii, 60.0, data/sprites/romans_brutii_roman_legionary_cohort_ii_sprite.spr
    model_sprite romans_julii, 60.0, data/sprites/romans_julii_roman_legionary_cohort_ii_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5
    Last edited by stoogeofstooges; July 08, 2011 at 08:13 PM.

  7. #7

    Default Re: unit numbers

    The text files seem OK... I don't know what could be the problem...
    Try adding a standard bearer to the spartans, to see will it work.
    Macedon1an's Workshop | Germanic Unit Pack | HRTW | Macedonia Rises Again

    "With the blood we shed all over the Macedonian fields and forests, we serve freedom, as the Macedonian army of Alexander of Macedon did, with our slogan “Freedom or Death!"" - From the Constitution of the Macedonian Kresna Uprising, 1878

  8. #8
    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: unit numbers

    Have you run it through the Zeus tool (link in my sig)?
    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

  9. #9
    stoogeofstooges's Avatar Decanus
    Join Date
    Jul 2010
    Location
    Pennsylvania
    Posts
    541

    Default Re: unit numbers

    No, I haven't run it through the Zeus tool yet, not even sure what that is. I'm using a Mac, so it might not work anyway. But I did try adding a standard bearer to the Spartans as well as other units from vanilla that didn't already have a standard bearer(hoplites,Spartans). The only units that will show up with a standard or officer in battle are units that had one in vanilla. In this case only the elite hoplites were equipped with a standard in vanilla. Same thing happens with my Macedonian and Seleucid pikemen, only the royals and silver shields will show up with an officer if I assign them one. However, there is never any crash or error. It's just like I never assigned them an officer even if I did.

  10. #10

    Default Re: unit numbers

    Can this type of code editing stop the game from actualy working ? I changed my units to build in 0 turns and the game wouldn't start after that and i changed all the buildings to build in 1 turn, im not sure which of my file edits caused the game not to start, i had to reinstall it , although i did also change the campaign to last 9000 years and I started the game using an old save after i moded it , do i have to do a fresh installl and then make all these changes before I play ?

  11. #11
    SavageFeat's Avatar Senator
    Join Date
    Mar 2010
    Location
    Wellington, New Zealand
    Posts
    1,190

    Default Re: unit numbers

    1 most games modifications are not save game compatable and 2 you cannot make the game last for 9000 years
    Wars of Rome: The rise
    A Modifacation for Rome : Total War 1.5
    (Pretty sure its dead now^)


  12. #12
    stoogeofstooges's Avatar Decanus
    Join Date
    Jul 2010
    Location
    Pennsylvania
    Posts
    541

    Default Re: unit numbers

    Yeah, the game can't last 9000 years. But about the compatibility with saved games, I never tested the spartan officer in saved games, only custom battles. And after reinstalling the game so I have vanilla units, I tried giving the spartan hoplites a standard and/or an officer and they showed up, as always, without it. Hoplite elites did show up with any officer i gave them.

    I have not had any actual crashes.

    I'm stumped. Is there any other piece of code that determines what units can have officers?

  13. #13
    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: unit numbers

    No, you likely have a typo. Make sure you run the game using the -show_err switch.
    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

  14. #14
    stoogeofstooges's Avatar Decanus
    Join Date
    Jul 2010
    Location
    Pennsylvania
    Posts
    541

    Default Re: unit numbers

    but how can it be a typo? The spartan_officer WORKS for the greek armored hoplites. In fact, it works for any unit I assigned it to that originally had an officer in the vanilla game. But, if I try to add an officer to a unit that in vanilla did not come equipped with an officer, that officer just won't show up, like I never assigned an officer at all. No errors, no crashes, no weird looking units. And the officer itself looks great in game. Also, its not just the spartan_officer that is the problem. The greek_standard will not show up with units that, in vanilla, did not have an officer. Even if I put in an officer entry, the same thing happens that happened with the spartan_officer. It just acts like I never changed anything, no other problems.

    And by the way, how do you use -show_err on a mac?

  15. #15

    Default Re: unit numbers

    can you turn off the games time limit ? like just set it not to expire instead of increasing its lenght ?

  16. #16
    stoogeofstooges's Avatar Decanus
    Join Date
    Jul 2010
    Location
    Pennsylvania
    Posts
    541

    Default Re: unit numbers

    Sorry, you can't. I think its something that might be hardcoded. If it hasn't been done yet by any mods, than it probably can't be done.

Posting Permissions

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