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 25ty for replys
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 25ty for replys
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:
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
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.
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
Okay, lets see if it will work...
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:
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:
Last edited by stoogeofstooges; July 08, 2011 at 08:13 PM.
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
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
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.
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 ?
1 most games modifications are not save game compatable and 2 you cannot make the game last for 9000 years
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?
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
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?
can you turn off the games time limit ? like just set it not to expire instead of increasing its lenght ?
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.