Total War: SHOGUN 2

Total War: SHOGUN 2

View Stats:
Uniform editing
Hello.
I'm in need of some help editing uniforms. I've tried changing stuff in PFM in uniforms_tables but i don't see any changes in game.

Let's say i want Kihetai to have the same uniform as Tosa Riflemen. How do i achiev this?
< >
Showing 1-15 of 16 comments
The_Yogi Apr 5, 2016 @ 5:48pm 
Best thing to study modding: Use PFM to open mods, learning how it works, then reverse-engineer it so you can do it yourselves. This is better than tutorials and how-tos.

Now, for the explanation:
The models used by unit are defined in unit_variant files in variantmodels>units directory.
Which unit_variant used by a unit are assigned in uniforms tables.

Lets say you want to make Kiheitai look like Tosa Riflemen, you can either:

1. Edit the Boshin_Modern_Inf_Kihetai.soldier.unit_variant itself.
OR
2. Change the "filename" in uniforms tables of "Default_Boshin_Kiheitai" from "Boshin_Modern_Inf_Kihetai" to "Boshin_Modern_Inf_Tosa_Riflemen". Note using this method means the unit card would be swapped as well.
Kagraman™ Apr 5, 2016 @ 6:39pm 
I am constantly trying to reverse engineer mods in order to learn. It works some times. But other times i just don't get it. Which is why i ask forums for help.

Thank you very much for your explaination. I hope i'm able to figure it out from now.
Kagraman™ Apr 5, 2016 @ 6:55pm 
It seems i have run into a very annoying and kinda embarrassing problem right away... Where is variantmodels?
The_Yogi Apr 5, 2016 @ 7:00pm 
models2.pack
Kagraman™ Apr 5, 2016 @ 7:05pm 
Oh... I looked in models.pack, it was not there. I did not look in models2.pack...

Thanks again.
Kagraman™ Apr 5, 2016 @ 7:38pm 
Result: http://i.imgur.com/AuRZsg4.jpg
(Units are invisible)
The_Yogi Apr 6, 2016 @ 3:17pm 
unit_variant file corruption. This happens sometimes with PFM - just Try again, you'll get it it right.

If you wish, you can use Assembly Kit Unit Editor to edit the unit_variant, then use PFM to pack it. This is a better option, as you can see the unit model as you edit it.
Last edited by The_Yogi; Apr 6, 2016 @ 4:53pm
Kagraman™ Apr 6, 2016 @ 5:50pm 
File corruption makes sense. Because i get an error that looks like this: http://i.imgur.com/DE052De.png every time i click on a unit ID under "units" under "variantmodels" however since clicking continue closes the error and lets me continue that's what i did...

I did get the error every single time i click on the unit i'm copying from (or any other unit) so there was alot of closing errors. Not while changing anything, just clicking on an ID gets me the error.

So you're saying i should just try to do the same mod again in the same way?

I may try the assembly kit. I've tried using it once before but it didn't make any sence to me so i gave up.
The_Yogi Apr 6, 2016 @ 5:57pm 
Originally posted by Roebuck™:
So you're saying i should just try to do the same mod again in the same way?
Yes. Especially the unit_variant editing part.
Kagraman™ Apr 6, 2016 @ 6:09pm 
You mean there's another part? What do i need to do except editing the unit_variant?

All i did was change the various parts in this bit here http://i.imgur.com/LLmW356.png for Kiheitai to match Tosa rifles, save and start the game.

Btw, do you know any way to get rid of the errors? Just make them not pop up all the time.
The_Yogi Apr 6, 2016 @ 6:16pm 
Its fine, you are doing it right.
Kagraman™ Apr 7, 2016 @ 8:39am 
When you say try again. Do you mean delete the pack file that made my units invisible and create a new one entirely?

I did that, this time only changing the helmet of Kiheitai for test and it worked. So now i'm trying to change more things.

One thing i don't get is how do i get them to wear backpacks?
The_Yogi Apr 7, 2016 @ 8:41am 
Not the pack itself, but the edited unit_variant.

Bacpacks are equipmentmodels. You'll need unit_stats_land - "equipment_theme"
Last edited by The_Yogi; Apr 7, 2016 @ 8:42am
Kagraman™ Apr 7, 2016 @ 11:22am 
The new Kiheitai: http://i.imgur.com/kvRYc10.jpg

I could not have done this without your help.

Thank you.
Gulf of Armpits~ May 24, 2017 @ 2:51am 
hey there so sorry, but can u gimme description about "naval.unit.variant" ?
< >
Showing 1-15 of 16 comments
Per page: 1530 50

Date Posted: Apr 5, 2016 @ 2:58pm
Posts: 16