Register    Login    Search   View active topics    FAQ




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: [Tutorial] How to Replace Strings with Longer Strings
 Post Posted: Tue Oct 18, 2016 10:31 pm 
Offline
Warrior
User avatar

Joined: Mon Feb 01, 2016 4:51 pm
Posts: 222
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
------------------
Attachment:
Mesh Swap Tools.7z [245.72 KiB]
Downloaded 284 times

------------------

Step 0: Download the tools above and extract them.
Attachment:
Step 0.jpg
Step 0.jpg [ 179.56 KiB | Viewed 3024 times ]


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
Attachment:
step 1.jpg
step 1.jpg [ 208.61 KiB | Viewed 3025 times ]


Step 2: Copy the decompressed file from unpacked to the ObjRef Creator folder.
Attachment:
Step 2.jpg
Step 2.jpg [ 569.06 KiB | Viewed 3025 times ]


Step 3: Drag & drop your file onto extract.exe. You'll get a folder with the same name as your file.
Attachment:
step 3.jpg
step 3.jpg [ 248.05 KiB | Viewed 3025 times ]


Step 4: Copy your file and the new folder and paste them into the Package Appendor-Repacker folder.
Attachment:
step 4.jpg
step 4.jpg [ 449.2 KiB | Viewed 3025 times ]


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.
Attachment:
step 5.jpg
step 5.jpg [ 353.99 KiB | Viewed 3025 times ]


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.
Attachment:
Step 6 part 1.jpg
Step 6 part 1.jpg [ 536.85 KiB | Viewed 3025 times ]

Attachment:
step 6 part 2.jpg
step 6 part 2.jpg [ 509.01 KiB | Viewed 3025 times ]


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.
Attachment:
Step 7.jpg
Step 7.jpg [ 190.51 KiB | Viewed 3025 times ]


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.
Attachment:
step 8.jpg
step 8.jpg [ 47.9 KiB | Viewed 3025 times ]


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.
Attachment:
step 8.jpg
step 8.jpg [ 47.9 KiB | Viewed 3025 times ]


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.
Attachment:
step 10.jpg
step 10.jpg [ 1.01 MiB | Viewed 3025 times ]


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.
Attachment:
step 11.jpg
step 11.jpg [ 1.17 MiB | Viewed 3025 times ]


That's it! You're all done!
------------------------------
Thanks to thethiny for his tools and for helping me understand how to use them


Top 
 Profile E-mail  
 
 Post subject: Re: [Tutorial] How to Replace Strings with Longer Strings
 Post Posted: Wed Oct 19, 2016 8:12 am 
Offline
Mortal
User avatar

Joined: Fri Jul 31, 2015 8:42 pm
Posts: 53
thanks very much . i've been waiting for that since forever i'll try it ASAP


Top 
 Profile E-mail  
 
 Post subject: Re: [Tutorial] How to Replace Strings with Longer Strings
 Post Posted: Wed Oct 19, 2016 11:58 am 
Offline
Master
User avatar

Joined: Fri Nov 13, 2015 9:55 am
Posts: 349
Location: Romania
Skype: Killer Potato
Side: Darkness
Very useful.The ugly mofo aka Ninja Goro is comming! :lol:

_________________
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


Top 
 Profile E-mail  
 
 Post subject: Re: [Tutorial] How to Replace Strings with Longer Strings
 Post Posted: Wed Oct 19, 2016 12:09 pm 
Offline
Immortal
User avatar

Joined: Fri Jan 17, 2014 12:08 pm
Posts: 1160
Location: Earthrealm
Skype: thethiny (Steam)
Side: Light
PSN: thethiny
XBox Live: thethiny
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.

_________________
IMPORTANT:
Under the US Copyright Law, I am given full ownership of anything I create or do, hence I own ownership of my mods. I hereby give these mods for FREE to anyone who is willing to download them for any purpose under the condition that they do not try to sell them or gain benefits in any way, and if they're going to upload a video or showcase them, they MUST provide a download link to this mod (hence the term Free). Credit not necessary but don't claim as your own or somebody else's.


Top 
 Profile  
 
 Post subject: Re: [Tutorial] How to Replace Strings with Longer Strings
 Post Posted: Wed Oct 19, 2016 8:54 pm 
Offline
Warrior
User avatar

Joined: Mon Feb 01, 2016 4:51 pm
Posts: 222
thethiny 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.

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


Top 
 Profile E-mail  
 
 Post subject: Re: [Tutorial] How to Replace Strings with Longer Strings
 Post Posted: Thu Oct 20, 2016 3:43 am 
Offline
Mortal
User avatar

Joined: Tue Sep 01, 2015 8:36 am
Posts: 72
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. :)


Top 
 Profile E-mail  
 
 Post subject: Re: [Tutorial] How to Replace Strings with Longer Strings
 Post Posted: Fri Oct 21, 2016 7:59 am 
Offline
Immortal
User avatar

Joined: Fri Jan 17, 2014 12:08 pm
Posts: 1160
Location: Earthrealm
Skype: thethiny (Steam)
Side: Light
PSN: thethiny
XBox Live: thethiny
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


Haha I didn't continue reading that.

_________________
IMPORTANT:
Under the US Copyright Law, I am given full ownership of anything I create or do, hence I own ownership of my mods. I hereby give these mods for FREE to anyone who is willing to download them for any purpose under the condition that they do not try to sell them or gain benefits in any way, and if they're going to upload a video or showcase them, they MUST provide a download link to this mod (hence the term Free). Credit not necessary but don't claim as your own or somebody else's.


Top 
 Profile  
 
 Post subject: Re: [Tutorial] How to Replace Strings with Longer Strings
 Post Posted: Fri May 11, 2018 7:23 am 
Offline
Mortal
User avatar

Joined: Tue Apr 24, 2018 9:04 am
Posts: 40
Skype: -
Side: Light
PSN: -
XBox Live: -
Thx it work i made a cyber jason mod :D

_________________
Beginner :3


WAAAAAAAAA


Top 
 Profile E-mail  
 
 Post subject: Re: [Tutorial] How to Replace Strings with Longer Strings
 Post Posted: Sat Apr 13, 2019 3:10 pm 
Offline
Apprentice
User avatar

Joined: Fri Mar 11, 2016 1:27 pm
Posts: 87
Side: Darkness
Keeps crashing/freezing the game


Top 
 Profile E-mail  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 9 posts ] 


Who is online

Users browsing this forum: Google Adsense [Bot] and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

 Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

  Design by Mighty Gorgon