[Tutorial] How to Replace Strings with Longer Strings
[Tutorial] How to Replace Strings with Longer Strings
Hello, guys! Today I'll be showing you how to make strings longer. I'll be using my meshswap of MK4 Tanya as an example.
Necessary Tools
------------------ ------------------
Step 0: Download the tools above and extract them. Step 1: Copy the file you want to use from Asset to where you extracted the tools. In this example, that's CHAR_Kitana_M. Drag and drop the file onto decompress.exe. You should now have a folder called unpacked with the decompressed file inside Step 2: Copy the decompressed file from unpacked to the ObjRef Creator folder. Step 3: Drag & drop your file onto extract.exe. You'll get a folder with the same name as your file. Step 4: Copy your file and the new folder and paste them into the Package Appendor-Repacker folder. Step 5: Inside of your CHAR_XXXX_X.xxx (CHAR_Kitana_M for me), you'll find the 3 text documents ExportTable, ImportTable, and NameTable. Delete everything except for these 3 text documents. Step 6: Open ExportTable.txt and under the 'Edit' tab, go to 'Replace'. Enter the string you're replacing in the 'Find what:' box and the string you want to change it to in the 'Replace with:' box. In my case, I'm replacing all mentions of Kitana with TanyaDLC. You can either replace each string one by one with 'Replace', or use the 'Replace All' button. Once done, you can save and exit the file. Step 7: Repeat Step 6, but for NameTable.txt. Again, I'll be replacing all mentions of Kitana with TanyaDLC. Don't forget to save your changes. Step 8: Once you're done editing both ExportTable.txt and NameTable.txt, run the MKX Package Appendor-Repacker.exe and enter the name of the folder you're editing. Once the program is done, exit out of it. Step 9: You should now have a file called CHAR_XXXX_X.xxx.repack (CHAR_Kitana_M.xxx for me). If you're not doing a meshswap onto a different character, simply remove the '.repack' from the file name and put it in your Asset folder. If you are meshswapping to a different character, continue to the following steps. ONLY IF MESHSWAPPING ONTO ANOTHER CHARACTER
Step 10: If you're meshswapping to another character, open your CHAR_XXXX_X.xxx.repack file with a hex editor. Search for name of your character (CHAR_Kitana_M for me) and you should find something like the picture on the left. Replace all the highlighted area with the character you're meshwapping them to like in the example on the right (CHAR_TanyaDLC_M in my case). Make sure all the spaces after the name are '00' in hex and not just '.'. They have different values and this will not work if you just type periods after the name. If the character you're meshswapping to isn't DLC, you can now save the file and rename it to who you're meshswapping with. If they are DLC, there's one more step.
Step 11: If you're meshswap target is a DLC character, search again using your hex editor for 'CHAR'. When you find the string that matches the example on the left, change it to 'DLC'. Once that's done, save the file and rename it to who you're meshswapping with. That's it! You're all done!
------------------------------
Thanks to thethiny for his tools and for helping me understand how to use them
Necessary Tools
------------------ ------------------
Step 0: Download the tools above and extract them. Step 1: Copy the file you want to use from Asset to where you extracted the tools. In this example, that's CHAR_Kitana_M. Drag and drop the file onto decompress.exe. You should now have a folder called unpacked with the decompressed file inside Step 2: Copy the decompressed file from unpacked to the ObjRef Creator folder. Step 3: Drag & drop your file onto extract.exe. You'll get a folder with the same name as your file. Step 4: Copy your file and the new folder and paste them into the Package Appendor-Repacker folder. Step 5: Inside of your CHAR_XXXX_X.xxx (CHAR_Kitana_M for me), you'll find the 3 text documents ExportTable, ImportTable, and NameTable. Delete everything except for these 3 text documents. Step 6: Open ExportTable.txt and under the 'Edit' tab, go to 'Replace'. Enter the string you're replacing in the 'Find what:' box and the string you want to change it to in the 'Replace with:' box. In my case, I'm replacing all mentions of Kitana with TanyaDLC. You can either replace each string one by one with 'Replace', or use the 'Replace All' button. Once done, you can save and exit the file. Step 7: Repeat Step 6, but for NameTable.txt. Again, I'll be replacing all mentions of Kitana with TanyaDLC. Don't forget to save your changes. Step 8: Once you're done editing both ExportTable.txt and NameTable.txt, run the MKX Package Appendor-Repacker.exe and enter the name of the folder you're editing. Once the program is done, exit out of it. Step 9: You should now have a file called CHAR_XXXX_X.xxx.repack (CHAR_Kitana_M.xxx for me). If you're not doing a meshswap onto a different character, simply remove the '.repack' from the file name and put it in your Asset folder. If you are meshswapping to a different character, continue to the following steps. ONLY IF MESHSWAPPING ONTO ANOTHER CHARACTER
Step 10: If you're meshswapping to another character, open your CHAR_XXXX_X.xxx.repack file with a hex editor. Search for name of your character (CHAR_Kitana_M for me) and you should find something like the picture on the left. Replace all the highlighted area with the character you're meshwapping them to like in the example on the right (CHAR_TanyaDLC_M in my case). Make sure all the spaces after the name are '00' in hex and not just '.'. They have different values and this will not work if you just type periods after the name. If the character you're meshswapping to isn't DLC, you can now save the file and rename it to who you're meshswapping with. If they are DLC, there's one more step.
Step 11: If you're meshswap target is a DLC character, search again using your hex editor for 'CHAR'. When you find the string that matches the example on the left, change it to 'DLC'. Once that's done, save the file and rename it to who you're meshswapping with. That's it! You're all done!
------------------------------
Thanks to thethiny for his tools and for helping me understand how to use them
- mustafammk9456
- Mortal
- Posts: 53
- Joined: Fri Jul 31, 2015 8:42 pm
Re: [Tutorial] How to Replace Strings with Longer Strings
thanks very much . i've been waiting for that since forever i'll try it ASAP
- Killer Potato
- Master
- Posts: 345
- Joined: Fri Nov 13, 2015 9:55 am
- Side: Darkness
- Location: Romania
Re: [Tutorial] How to Replace Strings with Longer Strings
Very useful.The ugly mofo aka Ninja Goro is comming!
Doing stuff on MKX since 2016,and still doing stuff from time to time.
Mostly porting stuff on CoD
All the MKX mods I've done
Mostly porting stuff on CoD
All the MKX mods I've done
- thethiny
- Immortal
- Posts: 2261
- Joined: Fri Jan 17, 2014 12:08 pm
- Side: Light
- PSN: thethiny
- XBox Live: thethiny
- Location: Earthrealm
- Contact:
Re: [Tutorial] How to Replace Strings with Longer Strings
Hey just to note, the way the Package Repacker works is that it will ignore ALL THE EXPORT TABLES that were already there, and it will ADD the ones you had. So I don't think that you need to rename the Export Table. The Export table is only for the number of lines.
Example:
Export Table:
File1
File2
File3
Texture2D.ImageIAdded
Name Table:
Name1
Name2
Name3
My tool will go and copy the first 3 export tables into the new file, then it will search for ImageAdded.Texture2D and add it as well. So if the first 3 files were names X X X, it will still load the same 3 files because these are only there for numbering purposes. I dunno if I updated that TBH. The name table is the only thing that is truly repacked.
There's also still oen last CHAR_Kitana_M in the file (you can open it in hex and change it) it will be called something like Characters.Kitana.CHAR.CHAR_Kitana_M you can rename the entire string with CHAR_TanyaDLC_M or wtv you want.
Example:
Export Table:
File1
File2
File3
Texture2D.ImageIAdded
Name Table:
Name1
Name2
Name3
My tool will go and copy the first 3 export tables into the new file, then it will search for ImageAdded.Texture2D and add it as well. So if the first 3 files were names X X X, it will still load the same 3 files because these are only there for numbering purposes. I dunno if I updated that TBH. The name table is the only thing that is truly repacked.
There's also still oen last CHAR_Kitana_M in the file (you can open it in hex and change it) it will be called something like Characters.Kitana.CHAR.CHAR_Kitana_M you can rename the entire string with CHAR_TanyaDLC_M or wtv you want.
Re: [Tutorial] How to Replace Strings with Longer Strings
I did not know that renaming the Export Table didn't matter, thanksthethiny wrote:Hey just to note, the way the Package Repacker works is that it will ignore ALL THE EXPORT TABLES that were already there, and it will ADD the ones you had. So I don't think that you need to rename the Export Table. The Export table is only for the number of lines.
Example:
Export Table:
File1
File2
File3
Texture2D.ImageIAdded
Name Table:
Name1
Name2
Name3
My tool will go and copy the first 3 export tables into the new file, then it will search for ImageAdded.Texture2D and add it as well. So if the first 3 files were names X X X, it will still load the same 3 files because these are only there for numbering purposes. I dunno if I updated that TBH. The name table is the only thing that is truly repacked.
There's also still oen last CHAR_Kitana_M in the file (you can open it in hex and change it) it will be called something like Characters.Kitana.CHAR.CHAR_Kitana_M you can rename the entire string with CHAR_TanyaDLC_M or wtv you want.
For the big line with CHAR_Kitana_M I mentioned it specifically in Step 10 lol
Re: [Tutorial] How to Replace Strings with Longer Strings
Wow this is a great tutorial! I've been waiting for somebody to simplify this for a long time. Thanks for all your hard work! I can't wait to try this out.
- thethiny
- Immortal
- Posts: 2261
- Joined: Fri Jan 17, 2014 12:08 pm
- Side: Light
- PSN: thethiny
- XBox Live: thethiny
- Location: Earthrealm
- Contact:
Re: [Tutorial] How to Replace Strings with Longer Strings
Haha I didn't continue reading that.DickChapy wrote:I did not know that renaming the Export Table didn't matter, thanks
For the big line with CHAR_Kitana_M I mentioned it specifically in Step 10 lol
Re: [Tutorial] How to Replace Strings with Longer Strings
Thx it work i made a cyber jason mod
Beginner :3
WAAAAAAAAA
WAAAAAAAAA
Re: [Tutorial] How to Replace Strings with Longer Strings
Keeps crashing/freezing the game
Re: [Tutorial] How to Replace Strings with Longer Strings
does it work for mk9?