Character reindex (swaping ) tool

User avatar
zepterrian
Grand Master
Posts: 659
Joined: Fri Jul 10, 2015 3:50 pm
Side: Light

Re: Character reindex (swaping ) tool

Post by zepterrian »

... may be i exaggerated a bit :D . anyway i hope it helps you


For the raptor race...
User avatar
L0a
Mortal
Posts: 14
Joined: Wed Oct 14, 2015 3:12 pm

Re: Character reindex (swaping ) tool

Post by L0a »

Im following your instructions I finished everything but I'm getting an error in the Loading Screen after I choose Kitana.
I don't think the error is located before e) Step
So in F) Step, the last offset of kitana is this one for me
Image
01395D10
so i converted that number to 105D3901 (i think i did the conversion ok)
Now in G) Step I opened the new .skeletalmesh
Image
then i added it to CHAR_Kitana.xxx (with all modifications)

Image ( I don't know if i did it well)

I replaced all .DDS files too so I'm not sure what is the problem.

And here are the codes replaced already

Image

I hope you could find where im doing the things bad!


This is the error shown
Image

BTW This is what "reindex" shows. Maybe the problem is here

Image
User avatar
zepterrian
Grand Master
Posts: 659
Joined: Fri Jul 10, 2015 3:50 pm
Side: Light

Re: Character reindex (swaping ) tool

Post by zepterrian »

well i tested things for my self and i managed to make it work. i found you are having three problems:

1- last package´s offset wrongly converted
to solve this first issue you have to check that the offset you have is the very last. I looked at the pic you posted and the value you took for your last offset was "01395D10" when the real one is "01395D12". this is something that may confuse you easily or may be i did not explained clearly. basically you have to click on the right of the last number you see and check:
HxD5.png
then your converted value is 125D3901

2- two bytes apparently deleted
according to your picture i can conclude you deleted these last bytes
HxD4.png
you do not have to delete them but you need to past the skeletalmesh aside (as you can see in my picture the skeletalmesh is represented in red)

3- index not found
this is something that usually comes with some chars. everytime you use the reindex tool you need to check the "reindex.log" file in search of any message that tells you exported file will not work!!!. you need to fix this manually from you hex editor. this may be the dirtiest part but not that hard to do. in this case you have to open kitana´s export list and look for some index to replace the one the tool did not find. in this case the problem was with "MaterialInstanceConstantInterior_MIC". in the export list look for something that could match (some similar name) your index. I found "MaterialInstanceConstant Interior_Char_MIC". then you need to take note of it´s index number (looking at the first column of numbers on the left). in this case it is "990". for some reason i did not fully understand yet, the number you need to use is not "990" but "991". now go and convert it to a hex value. it is "3DF". but now you also need it to be converted to little endian format. so if your value was "3DF" your converted one will be "DF03". Now go to the offsets you had problems with (they are six) and replace everyone.
You also had problems with "Eyes_MIC". You can find "Eyes_MIC" in the export list (i can´t figure out why the tool couldn´t). Again, the index number is "988" but you will use "989". Your converted value to hex is "3DD". Converted to little endian is "DD03". Go and replace it.

These fixes should be enough to make your mod work. Let me know about it...
For the raptor race...
User avatar
L0a
Mortal
Posts: 14
Joined: Wed Oct 14, 2015 3:12 pm

Re: Character reindex (swaping ) tool

Post by L0a »

I understood everything. I really appreciate your help and patience
I'm modifyng those offsets I hope I replaced them well.
This is how I did, is it well?

BEFORE (MaterialInstanceConstant Interior_Char_MIC)

Image

AFTER (MaterialInstanceConstant Interior_Char_MIC)

Image

BEFORE Eyes_MIC

Image

AFTER Eyes_MIC

Image

Is it well the way I replaced them? I noticed there was 01 in every offset i had to replace
Those replacements were made in the new.SkeletalMesh so now I'll copy and paste in CHAR_Kitana.xxx descompress.
Now I'll continue and will see if work now. Thanks for help again
User avatar
L0a
Mortal
Posts: 14
Joined: Wed Oct 14, 2015 3:12 pm

Re: Character reindex (swaping ) tool

Post by L0a »

And FINALLY it worked! I couldn't have fixed this withour your help mate.
I did kitana/jade swap to test mainly, so now I got a way to swap jade with smoke and create that female smoke version.



Here is the proof... Anyway, there is something funny in Jade clothes, can you see it? haha
Well I'm one step ahead, next step would be swaping sfx.
Thanks you
User avatar
L0a
Mortal
Posts: 14
Joined: Wed Oct 14, 2015 3:12 pm

Re: Character reindex (swaping ) tool

Post by L0a »

BTW. In my trying for swap smoke with jade everything is perfect until i have to change .dds files

Can't understand why it shows me a msg saying: " File not found in .xxx package "
I only can inject: Smoke detail a norm but it keeps me saying that error on the others.
I tried 1.2, 1.3, 1.4, 1.5 MK9 Injector but not results. I even tried Generic File injector from HowardC and it says something similar: "Archive not found!... Check paths and try again "

Image

Im pretty sure those files have same name inside CHAR_Smoke_b.xxx descompressed
User avatar
zepterrian
Grand Master
Posts: 659
Joined: Fri Jul 10, 2015 3:50 pm
Side: Light

Re: Character reindex (swaping ) tool

Post by zepterrian »

well you are using the generic injector tool. you should use the dds injector http://www.mksecrets.net/forums/eng/vie ... =84&t=6311. besides you´ve written wrongly the file extention; you have "texture2d" but it is "Texture2D". use the dds injector
For the raptor race...
User avatar
L0a
Mortal
Posts: 14
Joined: Wed Oct 14, 2015 3:12 pm

Re: Character reindex (swaping ) tool

Post by L0a »

Still not working. This is so weird
User avatar
zepterrian
Grand Master
Posts: 659
Joined: Fri Jul 10, 2015 3:50 pm
Side: Light

Re: Character reindex (swaping ) tool

Post by zepterrian »

tell me exactly what you are doing
For the raptor race...
User avatar
L0a
Mortal
Posts: 14
Joined: Wed Oct 14, 2015 3:12 pm

Re: Character reindex (swaping ) tool

Post by L0a »

I finish everything to do the swap thing.
I got .dds files from Char_Smoke_B I edited them to put Jade files.
So now I put .dds files and .Texture2D files in Injector Folder
This is what is shows
Image
User avatar
L0a
Mortal
Posts: 14
Joined: Wed Oct 14, 2015 3:12 pm

Re: Character reindex (swaping ) tool

Post by L0a »

With the original .xxx only descompressed.. everything works fine...
but with the .xxx hex edited already, it doesnt work.. maybe the wrong thing is there
User avatar
zepterrian
Grand Master
Posts: 659
Joined: Fri Jul 10, 2015 3:50 pm
Side: Light

Re: Character reindex (swaping ) tool

Post by zepterrian »

the only thing i can say is that you are using a package that´s been previously modified (i´m talking about modifications in it´s textures files).
To make things clean you should have Smoke´s package without previous modifications in his textures files.
-Get his .Texture2D files.
-Take jade´s dds files, edit them (or not) and save them as DTX...... as you already know.
-Rename those edited files so the names matches smoke´s. Example: you have Jade_Diff.dds but renaming it you will have Smoke_B_Diff.dds. i´m not sure this renaming step is necessary i think not just makes the job easier for me.
- Inject them.

The hex modification hasn´t to do with the problem, i´m sure of that.
For the raptor race...
User avatar
L0a
Mortal
Posts: 14
Joined: Wed Oct 14, 2015 3:12 pm

Re: Character reindex (swaping ) tool

Post by L0a »

Look at this I got: "Offset [0x00151baa]:ExportList 'MaterialInstanceConstantAccessoryDamage_MIC'(885) not found, exported file will not work!!!"
So i've looking for something similar... then i changed it in Hex and now i can inject all the files expect pmsk and psmk_damage

BTW i was using a clean smoke file
User avatar
zepterrian
Grand Master
Posts: 659
Joined: Fri Jul 10, 2015 3:50 pm
Side: Light

Re: Character reindex (swaping ) tool

Post by zepterrian »

right. make sure the swap works before injecting. if it works make a backup of it before modifying the textures.
For the raptor race...
User avatar
L0a
Mortal
Posts: 14
Joined: Wed Oct 14, 2015 3:12 pm

Re: Character reindex (swaping ) tool

Post by L0a »

yes, it is working Image

I noticed something. Smoke NormHQA is horizontal and Jade NormHQA is vertical is that a problem?
Post Reply

Return to “Mortal Kombat 9 PC Modding Tutorials and Discussions”