Total War: SHOGUN 2

Total War: SHOGUN 2

monoolho's Hero Unit Mod (for Shogun 2)
 This topic has been pinned, so it's probably important
mono olho.  [developer] 17 Feb, 2016 @ 3:22pm
How to make your personal changes
How to modify to your taste:

You will need Pack File Manager (PFM) https://sourceforge.net/projects/packfilemanager/

Make a unit invincible:
- Open the mod via PFM, go to unit_stats_land_tables;

- Select the unit you want and go to "man_entity" change it to "mono_hero_ent" and the unit will be nearly invincible. If you find this too much work, just change the "man_health" column to something like 999, 9999 or whatever, it'll work.

- On the upper left corner click File > Save and it's done.

(It also applies to AI, so be careful if the unit is recruitable by everyone)


Make a unit only recruitable by X faction:

- Open the mod via PFM, go to units_to_exclusive_factions_permissions_tables;

- It is an empty table right now, so you can simply add an entry by clicking "Add Row";

- Now there are 3 columns: Key, Faction and Allowed;

- Key: This is the unit key that refers to the unit you want. You can go to units_tables or unit_stats_land_tables and look for the Key you want. The easy way is to simply click over the Key box of the unit you want, and press CTRL + C to copy, then go back to units_to_exclusive... and paste the Key;

- Faction: the faction which will have exclusive right to the unit. quite simple really: oda, shimazu, takeda; uesugi, ikko_ikki; chosokabe, date; no caps. You can open data.pack with PFM to see the factions if the one you want is not here (same tables should work).

- Allowed:mark the checkbox (or type "True"). This will ensure that the exclusivity will work.

Note: you can add multiple rows for more units or for different factions in case you want immortal heroes for you and your planned ally.

- On the upper left corner click File > Save and it's done.

Alternate way of making a unit exclusive:

- Open the mod via PFM and go to "buildings_units_allowed_tables"

- Each hero has one entry for each building level (castle 1 through 5 and sword school 1 through 4);

- You can make each (or all) exclusive to faction by adding the faction name on the faction column and marking the checkbox column "unknown" or typing "True" --- This will make the hero only recruitable by that faction, having that specific building, so you have to make it to all entries of the same unit, or else you'll only be able to recruit the hero with a "sword school lvl 1" and as soon as you upgrade it in the campaign, the hero will be unavailable.

- On the upper left corner click File > Save and it's done.

Not a very simple method, too much work in my opinion, but it may allow for further customization if you want it.


That's about it. Any questions, feel free to ask.
Last edited by mono olho.; 18 Feb, 2016 @ 1:15pm
< >
Showing 1-11 of 11 comments
Sage of Six Feet 28 Oct, 2017 @ 10:03pm 
For some reason, whenever I set a certain unit to be exclusive for oda the game just freezes on the splash screen. Anything I can do to fix this?
mono olho.  [developer] 28 Oct, 2017 @ 11:53pm 
possibly a conflict of duplicated entries (either with another mod or within the mod)? Need more info for analysis, however.
Sage of Six Feet 1 Nov, 2017 @ 11:51pm 
What info would you need?
Fly_Horse 12 Dec, 2017 @ 4:18am 
hey man I love your mod and I wanted to ask how you got these units not to disband after battle? I once tried making a mod like this my self but the units kept disbanding due to not having enough men every time a battle ended.
mono olho.  [developer] 12 Dec, 2017 @ 5:58pm 
You know, I have absolutely no idea. I guess it happened a lot when I first started the mod, I remember being seriously pissed at it back then (that's why I haven't finished shogun yet, never got to the end of it). I think I messed with the attrition of the hero units and essentially deleted it, so neither cold nor sieges could affect them, my guess is that this made them last after battles. But I also think they fixed some of the engine stuff and it made my mod work better. Then again, I don't really know, and I don't want to try to know because it'll frustrate me hahahha

Thanks, bro, really appreciate your opinion
steelwarrior77 3 Mar, 2018 @ 7:53pm 
Which unknown column should I check - there are 6,7,8,9 and 11
Dynhus 1 Feb, 2019 @ 1:27pm 
After many tests, I can say the first method for make a unit recruitable by one faction don't work. But the second work!
Dreysantillan 7 Jan, 2020 @ 11:44pm 
Hello! I am new to the modding community and only started doing mods in the last 4 days, I would like to know how you make individual independent units without affecting the default units? I made a yari unit that is a weaker version and they don't have any armor, when I made the unit, the defafult Yari Ashigaru's skin/model was also affected having no armor as well (stats are not affected) Is there a way for you to help? thank you!
mono olho.  [developer] 27 Jan, 2020 @ 11:11am 
Originally posted by Dreysantillan:
Hello! I am new to the modding community and only started doing mods in the last 4 days, I would like to know how you make individual independent units without affecting the default units? I made a yari unit that is a weaker version and they don't have any armor, when I made the unit, the defafult Yari Ashigaru's skin/model was also affected having no armor as well (stats are not affected) Is there a way for you to help? thank you!

You have to create an entirely new unit. Assigning a unique ID (including all the other active mods you may have, hence why some mods use humongous numbers for the IDs, to avoid conflicts). What you did is edit an existing unit, or at the very least edit the unit graphics (soldier_variants if I am correct) and that affected the vanilla unit.
I can't offer much help, since it's been some years since I've messed with Total War modding, but the basic version of it is: you have to create a new unit from scratch. You can google tutorials on that and follow their examples.
For single-soldier units, You have to set it to 1 soldier, and instead of editing the 'soldier' graphics, you have to create a new 'officer' graphic, and set it to your unit.
Dreysantillan 13 Dec, 2020 @ 5:29am 
Originally posted by mono olho.:
Originally posted by Dreysantillan:
Hello! I am new to the modding community and only started doing mods in the last 4 days, I would like to know how you make individual independent units without affecting the default units? I made a yari unit that is a weaker version and they don't have any armor, when I made the unit, the defafult Yari Ashigaru's skin/model was also affected having no armor as well (stats are not affected) Is there a way for you to help? thank you!

You have to create an entirely new unit. Assigning a unique ID (including all the other active mods you may have, hence why some mods use humongous numbers for the IDs, to avoid conflicts). What you did is edit an existing unit, or at the very least edit the unit graphics (soldier_variants if I am correct) and that affected the vanilla unit.
I can't offer much help, since it's been some years since I've messed with Total War modding, but the basic version of it is: you have to create a new unit from scratch. You can google tutorials on that and follow their examples.
For single-soldier units, You have to set it to 1 soldier, and instead of editing the 'soldier' graphics, you have to create a new 'officer' graphic, and set it to your unit.

Hi, I just saw this now, thank you for replying, so far I am very good at making new units! I've come so far since then, next is trying to create a new clan which is playable, I use MMS, I'm not too familiar with PFM, but I do have RPFM in my computer. The tutorial I found online was quite confusing, any tips in creating new clan that can be implemented in custom and campaign? Thank you so much
Nata28ru 13 Dec, 2020 @ 6:25am 
ok
< >
Showing 1-11 of 11 comments
Per page: 1530 50