首都高赛车

首都高赛车

221 个评价
Importing custom decals
由 Silent 制作
With this guide, you can replace the stock decals with your custom images for use in the Livery Editor.
15
7
2
3
5
4
   
奖励
收藏
已收藏
取消收藏
Introduction & required tools
With this guide, you can replace the default decals with your custom ones. It's currently unknown if adding decals is possible.

To import your own decals, you'll need:
Extracting the original decals
  1. Open FModel.
  2. Add Tokyo Xtreme Racer to the list of games in FModel. You will only have to do these steps once.
    1. Click on the arrows under ADD UNDETECTED GAME.
    2. Click on ... and navigate to the game directory, then select it.
    3. Click on + to add the game to the list.
    4. Click on the UE Versions dropdown and select GAME_UE5_4.
  3. Select Tokyo Xtreme Racer from the list and click OK. If FModel mentions available updates, you may safely dismiss this dialog.
  4. Set a proper AES key for the game. Again, you will only have to do these steps once.
    1. Navigate to DirectoryAES.
    2. In the Main Static Key field, paste this key and press and press OK:
      0xD499D0D1C8E2B87D576EA9756B5137306D1A96D378124C16A6F033BE2A9CBB4A
    3. If done correctly, pakchunk0-Windows.utoc in the GAME ARCHIVES list will no longer be greyed out.
  5. Double-click on pakchunk0-Windows.utoc and navigate to the directory with decals: 'TokyoXtremeRacer/Content/ITSB/ArtAssets/Models/Livery/Vinyl'.
  6. Find the decal(s) you want to replace. Right-click on each and select Export Raw Data (.uasset).
  7. If done correctly, the decal(s) will be extracted to a new directory created where FModel is. The decal(s) will be located in 'Output/Exports/TokyoXtremeRacer/Content/...'.
Replacing the decals
For each decal, do the following:

  1. Open UE4-DDS-Tools.
  2. Navigate to the directory with the extracted decals ('Output/Exports/TokyoXtremeRacer/Content/...'), drag and drop the .uasset file into the field that says Drop .uasset here!.
  3. Drag and drop the image you want to replace the decal with into the field that says Drop an image here!.
  4. Change the UE version field to 5.4 if necessary.
  5. Press Inject.
  6. A new .uasset file will be created in an 'injected' directory. Take this asset, and replace the original asset from FModel's 'Output' directory with that one.
Importing the decals back into the game
  1. Open the Command Prompt in a directory with UnrealReZen.
  2. Run:
    UnrealReZen.exe --content-path "<path-to-fmodel>\Output\Exports" --game-dir "<path-to-game>\TokyoXtremeRacer\Content\Paks" --output-path "<path-to-game>\TokyoXtremeRacer\Content\Paks\CustomDecals_P.utoc" --compression-format Oodle --engine-version GAME_UE5_4 --aes-key 0xD499D0D1C8E2B87D576EA9756B5137306D1A96D378124C16A6F033BE2A9CBB4A
    where:
    • '<path-to-fmodel>' is the path where FModel is located. Next to that should be an 'Output' directory where you extracted the original decals.
    • '<path-to-game>' is the path where Tokyo Xtreme Racer is installed. Notice this path is present twice in the command. A correctly constructed path must include TokyoXtremeRacer twice.
  3. If done correctly, CustomDecals_P.pak, CustomDecals_P.ucas and CustomDecals_P.utoc files will be created in '<path-to-game>\TokyoXtremeRacer\Content\Paks'. If the decals are packed correctly, CustomDecals_P.ucas will not be 1KB in size. If it is, you've done something wrong.
  4. If later you want to come back and repack the archive after adding more custom decals, do note that due to a bug in UnrealReZen, the tool currently cannot overwrite existing archives and it will crash when trying to do so. To fix this, go to '<path-to-game>\TokyoXtremeRacer\Content\Paks' and delete CustomDecals_P.pak, CustomDecals_P.ucas and CustomDecals_P.utoc, and re-run UnrealReZen.




You may now use your decals in the Livery Editor. Please note that the preview images will NOT be replaced! Custom decals only show once you place them on your car.

Other links
If you want to follow my work, check out one of those places:
http://twitter.com/__silent_
https://cookieplmonster.bsky.social/
https://www.youtube.com/user/CookiePLMonster

Also take a look at my blog, featuring modding and programming related articles and more!
https://cookieplmonster.github.io/
98 条留言
[NL]᠌krizzy090 9 月 30 日 下午 2:02 
might be a weird question but i guess the update of the game delete the decals i did?
Arthur 9 月 29 日 上午 6:05 
I'm working on an alternate method to get decals into the game and I've been having good progress so far. You can check how its going at the TXR modding Discord but I'll let everyone everywhere know once it's release ready.
Sir Kibbles 9 月 29 日 上午 3:58 
Since UE4-DDS-Tool doesn't seem to work. Is there no other way to import currently?
siffie 9 月 26 日 上午 9:25 
ahhh that explains it. thanks
Arthur 9 月 26 日 上午 6:44 
UE4-DDS-Tools doesn't work with Unreal Engine versions above 5.4 and the game has been updated to 5.6
siffie 9 月 26 日 上午 6:20 
the UE version is also in 5.4
siffie 9 月 26 日 上午 6:19 
File "C:\Users\Administrator\Downloads\UE4-DDS-Tools-v0.6.1-GUI\src\unreal\uasset.py", line 64, in __init__
self.serialize(ar)
File "C:\Users\Administrator\Downloads\UE4-DDS-Tools-v0.6.1-GUI\src\unreal\uasset.py", line 99, in serialize
self.name_list = self.header.serialize_name_map(ar, self.name_list)
File "C:\Users\Administrator\Downloads\UE4-DDS-Tools-v0.6.1-GUI\src\unreal\file_summary.py", line 337, in serialize_name_map
ar == (Uint64, 0xC1640000, "hash_version")
File "C:\Users\Administrator\Downloads\UE4-DDS-Tools-v0.6.1-GUI\src\unreal\archive.py", line 128, in __eq__
raise RuntimeError(msg)
RuntimeError: Unexpected value for hash_version.

i feel like it will still pop up if i try all other formats, any help please?
siffie 9 月 26 日 上午 6:19 
i'm getting this error when i try to inject the custom image to the uasset file with UE4 DDS tools:

[RunCommand] Error: Traceback (most recent call last):
File "C:\Users\Administrator\Downloads\UE4-DDS-Tools-v0.6.1-GUI\src\main.py", line 588, in <module>
main(args, config=config)
File "C:\Users\Administrator\Downloads\UE4-DDS-Tools-v0.6.1-GUI\src\main.py", line 533, in main
results = [func(folder, file, args)]
File "C:\Users\Administrator\Downloads\UE4-DDS-Tools-v0.6.1-GUI\src\main.py", line 109, in caller
raise e
File "C:\Users\Administrator\Downloads\UE4-DDS-Tools-v0.6.1-GUI\src\main.py", line 106, in caller
response = func(*args, **kwargs)
File "C:\Users\Administrator\Downloads\UE4-DDS-Tools-v0.6.1-GUI\src\main.py", line 175, in inject
asset = Uasset(uasset_file, version=args.version)
Ayanami Gaming 9 月 24 日 下午 10:23 
Has anyone tried doing this on linux?
シンデレラ 2 月 18 日 上午 4:55 
[21:46:19 INF] Loading Game Archives...
[21:46:19 INF] Pak "pakchunk0-Windows.pak": 2119 files (73 encrypted), version 11 in 00:00:00.0076101
[21:46:19 WRN] "pakchunk0optional-Windows.pak" has strange mount point "/", mounting to root
[21:46:19 INF] Pak "pakchunk0optional-Windows.pak": 0 files, version 11 in 00:00:00.0010141
[21:46:19 INF] IoStore "pakchunk0optional-Windows.utoc": 14 files, mount point: "TokyoXtremeRacer/Content/", version 6 in 00:00:00.0020111
[21:46:19 INF] IoStore "pakchunk0-Windows.utoc": 42850 files (42850 encrypted), version 6 in 00:00:00.1104168
[21:46:19 INF] Packing Contents...
[21:46:19 INF] Packing files...
Done! 0 file(s) packed