Page 1 of 1

Unpack/Repack UnityWebData1.0 Files?

Posted: Mon Sep 12, 2022 1:49 pm
by ChrisX930
Hey Guys,
I wanted to know if it's possible to unpack and repack UnityWebData1.0 Files?
I was able to unpack the file using AssetStudio, resulting in having these files lying around:
Image

I want to edit some of the contents (unity3d, sharedAssets) and I know how to do that, but I haven't found a way to actually repack the UnityWebData1.0 File after editing the files.
Any Idea how to do that?

I've uploaded the file I want to unpack and Repack: https://cellenser.es/Demo/PokemonPCTrai ... se.data.br (which actually isn't compressed with brotli)

Re: Unpack/Repack UnityWebData1.0 Files?

Posted: Mon Sep 12, 2022 10:18 pm
by ikskoks
Your link doesn't work.

By the way, check this http://wiki.xentax.com/index.php/List_of_Unity_Tools

Re: Unpack/Repack UnityWebData1.0 Files?

Posted: Tue Sep 13, 2022 1:57 pm
by ChrisX930
ikskoks wrote: Mon Sep 12, 2022 10:18 pm Your link doesn't work.

By the way, check this http://wiki.xentax.com/index.php/List_of_Unity_Tools
ahhhh yea, sorry. edited the file in the link multiple times.
unfortunately there are currently no tools that lets you decompress, edit and recompress UnityWebData (yet).

Just figured out that the UnityWebData-Files are just multiple files packed in one (without any compression whatsoever).


So I wrote a simple tool in c# that "rebuilds" the UnityWebData, using the modified files (extracted with AssetStudio or the tool I made).
For comparison of both files, here are the links:
Original, unmodified file: https://cellenser.es/Demo/PokemonPCTrai ... se.data.br
Modified file (containing modified & uncompressed data.unity3d-file): https://cellenser.es/Demo/PokemonPCTrai ... ed.data.br

The UnityWebData File was easy to rebuild.
Here's the documentation I made to make a tool rebuilding the UnityWebData.
Image

The modified files in the game actually work fine!
As PoC, I replaced the Game Logo with a translated one.
Original Game: https://pc.pokemon-foundation.or.jp/
PoC on my Server (currently trying to translate the game): https://cellenser.es/Demo/PokemonPCTraining/

Re: Unpack/Repack UnityWebData1.0 Files?

Posted: Sat Oct 22, 2022 3:09 pm
by khunawv
Sorry bro! Can you share your tools to make rebuilding unitywebdata? I have a problem same, thank you very very much :)

Re: Unpack/Repack UnityWebData1.0 Files?

Posted: Sat Oct 22, 2022 3:12 pm
by khunawv
and one question Which tools did you use to repack data.unity3d when you edit decompressed data.unity3d?
Thank you very much again!!!