is there any way to units not disband if there is only couple of soldiers, like 2 or 3 or 1 soldier??? Please help
is there any way to units not disband if there is only couple of soldiers, like 2 or 3 or 1 soldier??? Please help
There has been some work done on this. BullGod did come up with an idea, but it never worked for me.
This is the thread: http://www.twcenter.net/forums/showthread.php?t=454239
Anyway, despite using BullGod's mod, editting the 0.05 and 0.20 percentage variables to be 0, units with 4 or less troops were always disbanded. What I believe is that there isn't a percentage variable for when troops are disbanded (because if you set the unit multiplier to 100%, or 1.0, and you give units 4 troops using the PFM and none of them die in battle, they are still disbanded.) I think there is some file somewhere that says any unit with 4 or less soldiers will be disbanded.
I've found that the only way to prevent this is to first start a new game without editting anything. Then, go in and use the unit multiplier or resize units manually (or do both, like I did) to give yourself a small troop number. Somehow, this allowed what you can see in my picture halfway down the page in the link I gave you: single soldier units. It only works with units that would have 0 soldiers in-game, after the unit multiplier divides out the true amount of soldiers. For example: if the unit multiplier is set to "0.05" (5%) and you give Katana Samurai 15 soldiers using the PFM, they'd have .75 soldiers in-game, which will register as 0. In battle, one soldier appears, and he is not disbanded after the battle ends.
I'm not quite sure how this works myself. It's pretty buggy.
Last edited by Xorte-Renshe; July 01, 2011 at 10:19 PM.
can you explain me to te letter what should i do, because your explanation threw me of balance. i am totaly confused... wich file should i edit and what should i do ??? thx in advance
Oh, okay.
Using the PFM, go into the data.pack file and go to the db files. The file you want that regulates sizes of units is "units_stats_land" tables file.
As for the files that apparently regulate when units are disbanded, they are in the db file "campaign_variables", but the second mod in the thread I linked you to has the editted file by BullGod. Like I said, though, it didn't work for me.
One thing you should never do is edit the data.pack directly. It's a little buggy with the current versions of the PFM. Instead extract the files you need and make a mod. You might have already known that, but I say it anyway since it's better to be safe than sorry. ///_o
If you use the mod I'll link you to below, then you wont need to worry about it. You can edit that mod directly, of course.
First of all, I have a mod that gives each playable faction it's own version of each unit so you can edit them seperately. You can get it here: http://www.twcenter.net/forums/showthread.php?t=443518
Anyway, what I do is, first, go into the preferences.script file and set the unit multiplier to be .05. Thanks to that, units like the Yari Ashigaru will be at 10 guys per unit. If you have a mod that unlocks them, Onna Bushi will be at 4 soldiers per units and will be disbanded after the battle ends. Samurai Retainers will be at 3 guys and will be disbanded as well.
Second, I start a new campaign where I haven't editted the actual sizes of units. Then, after saving the game, I quit out and start up the PFM again. I go into the units_stats_land and change the size of the units I want (for some reason, I can never resize Yari Ashigaru). For example, if I'm playing as the Oda, I take Oda Naginata Samurai and Oda Katana Samurai and make them extremely powerful then set their unit size to be 15. Once in-game, their units will register as having 0 soldiers. In battle, the game will give those units 1 soldier, and since they originally had 0, after battle ends, they'll gain 1 soldier and will not be disbanded. This doesn't work if you change the size of units before starting the campaign.
Now, I've only tried this once, and it worked pretty well. But since I did only try it once, I dont know if you'll be able to duplicate it. Anyway, here's the picture that I had on the other thread to prove that it worked for me.
Last edited by Xorte-Renshe; July 04, 2011 at 08:19 AM.
Basically, what Xorte-Renshe wrote was, that there were other threads about this problem and we were unable to produce good results.
Maybe something is hardcoded into the game engine, or simply we cannot find the right values- I don't know.
There is one mod for Empire (Advance to Contact) that has 2,3,4 men units. Might be worth checking out, but on the other hand, Empire has a little different system of replacements than Napoleon or Shogun2, so what is good for Empire, might not work with Shogun.
You're welcome to check what we did in thread Xorte-Renshe linked, and maybe experiment further, because we've hit a wall.![]()
OK that works, but what about cavalry you cant change their unit size how you want. i think that minimal unit size iz 40
Depending on your unit multiplier, you probably wouldn't want to make the cavalry any smaller. At .05, if I remember right, there were only 2 soldiers in each cavalry unit.
i put the campaign unit multiplayer to 0.5 and in the unit stats land all unit sizes to one even horsemen and played for 15 to 20 turns then sudenly on the computer turn crashes... don`t know why... but i will try to find out
It did for me. I played a whole campaign without losing the Katana or Naginata Samurai, and they were in pretty much all of my major battles (since I modded them to be so powerful, they rarely died normally, and any time I recruited new ones to replace them, they wouldn't get disbanded either, no matter how many battles they fought in).
That was quite the run-on sentence. Sorry, haha.
You set every single unit to have only 1 soldier? Huh, I've never tried that before.
Just a thought, but did you set the number of horses in the cavalry units to be the same as the number of soldiers? I dont know if that would make any difference, but perhaps when the computer or you try to make a cavalry unit, the game freaks out about there being more horses than soldiers.
Apart from that, I have no idea.
yes, of course i set the same amount of horses, but still it crashesh on enemy faction turn, that i had no contact with...