Skip to content

How to Swap using Uasset Renamer

CDDTreborn edited this page Jun 2, 2023 · 2 revisions

What you Need

Fluffyquack's UassetRenamer program
Access to the uasset files you want to manipulate.
U4Pak to repak the files for use.
A hex editor or CompareIt to view the contents of the uasset files.

  • I have a list of links in my Tekken 7 Basic Modding Information page on my wiki.

Swapping entire Files

This is for when you want to keep the base file but change what's inside of it completely to another file.

Open uassetrenamer
The top part of the window will say "Open reference file"
Go to the file that you want to keep and click on it and then hit open
The top part of the window will now say "Open file to change id of"
Go to the file that you want to change it to and click open.
Uassetrenamer will close and you'll now have a new file with the extension "-new.uasset"
Remove the "-new" and pak it up.

Swapping file paths within a file

This is for when you want to edit just parts of a file.

Go to the file that has contents you want to change.
Open up the uasset with a viewer like CompareIt or a HexEditor.
Look for the file you want to change out and copy just the name of the file (do not include the whole filepath)
Now rename the file that has contents you want to change to the name you just copied.
Open up uassetrenamer
The top part of the window will say "Open reference file"
Go to the file that you want to use and click open.
The top part of the window will now say "Open file to change id of"
Go to the actual file you renamed earlier and click open.
Uassetrenamer will close and you'll now have a new file that is the name of the one you want to use with a "-new.uasset" at the end of it.
You will also still have the original file you renamed which can now be deleted.
Rename the "-new.uasset" file to match the one you started with.
Open up the file in a Uasset viewer like you did earlier to verify the changes.

Note: If you have multiple filepaths you want to change then you can repeat the process without verifying it till the end to save time.

TIPS:

  • Keep files that you will re-use often in a folder for quick access
  • If the file is encrypted then uassetrenamer will not work. Decrypt it, do the change, and encrypt before paking it up.
  • If a filepath you want to change has a name that is shared with another you have to change the longer one first or it will remove a line within your file and it won't work. -- Example: SK_CH_bob_trouserA and SK_CH_bob_trouser // you need to change ..._trouserA first.
    -- Example: SK_CH_bob_trouserA and SK_CH_bob_trouserB // since the full name is unique you won't have any issues.
    -- If you don't want to change the file with the longer name then change it to something else temporarily, change the file you want, then change the other file back to what it was.
    -- You can also use a hexeditor to change the filename then swap the filepath you want to and go back into the file with hex and revert the one you changed temporarily back to the original.
  • If you changed multiple filepaths to the same new filepath and want to make changes later you will need to do one of the methods above or just start over. Once you get comfortable re-doing the process is pretty quick and the safest way to avoid erros imo.
  • Most files can be swapped with the eachother but certain files can cause issues. MI files will often cause an issue if they are too big.