ROM Hack Translation How to pack a .json file to a .uasset file

  • Thread starter Thread starter ongchin
  • Start date Start date
  • Views Views 2,390
  • Replies Replies 9

ongchin

Member
Newcomer
Joined
Jul 12, 2025
Messages
12
Reaction score
3
Trophies
0
Age
27
XP
46
Country
Vietnam
Hi everyone.
I just exported a .json file from a .uasset using FModel. I've translated the text in the .json to a new language, but i don't know how to repackage it back into a .uasset file. Thanks in advance for your support!

2025-07-14_09-05.png
 
Sorry, I just uploaded the new one.
I think this game is for UE5 so I'm not sure how to rebuild uasset files in this way, but if you take a look at the .uexp file in a hex editor, the text is quite clear and uncompressed. 4 bytes before each string are xx 00 00 00, xx being the length of the string +1, so if your string is 5C in length, it will have 5D, seems like you can just edit that file directly. I'm not 100% sure what encoding is correct for Vietnamese characters so you may have to experiment to get it work but I think you would be better off just editing the .uexp files directly rather than exporting to .json.
 
  • Love
Reactions: ongchin
I think this game is for UE5 so I'm not sure how to rebuild uasset files in this way, but if you take a look at the .uexp file in a hex editor, the text is quite clear and uncompressed. 4 bytes before each string are xx 00 00 00, xx being the length of the string +1, so if your string is 5C in length, it will have 5D, seems like you can just edit that file directly. I'm not 100% sure what encoding is correct for Vietnamese characters so you may have to experiment to get it work but I think you would be better off just editing the .uexp files directly rather than exporting to .json.
Thank you very much. I will practice according to what you said.
 
  • Like
Reactions: blashy101
Hi everyone.
I just exported a .json file from a .uasset using FModel. I've translated the text in the .json to a new language, but i don't know how to repackage it back into a .uasset file. Thanks in advance for your support!

View attachment 516418
Export to json is lossy in FModel. You can't put it back. It's only to extract informations.
 

Site & Scene News

Popular threads in this forum