Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Unpack/Repack UnityWebData1.0 Files?

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
ChrisX930
veteran
Posts: 154
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 4 times
Been thanked: 3 times

Unpack/Repack UnityWebData1.0 Files?

Post 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)
User avatar
ikskoks
Moderator
Posts: 1667
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 647 times
Been thanked: 431 times
Contact:

Re: Unpack/Repack UnityWebData1.0 Files?

Post by ikskoks »

Your link doesn't work.

By the way, check this http://wiki.xentax.com/index.php/List_of_Unity_Tools
ChrisX930
veteran
Posts: 154
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 4 times
Been thanked: 3 times

Re: Unpack/Repack UnityWebData1.0 Files?

Post 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/
khunawv
ultra-n00b
Posts: 5
Joined: Sun Feb 06, 2022 4:17 am
Has thanked: 1 time
Been thanked: 1 time

Re: Unpack/Repack UnityWebData1.0 Files?

Post by khunawv »

Sorry bro! Can you share your tools to make rebuilding unitywebdata? I have a problem same, thank you very very much :)
khunawv
ultra-n00b
Posts: 5
Joined: Sun Feb 06, 2022 4:17 am
Has thanked: 1 time
Been thanked: 1 time

Re: Unpack/Repack UnityWebData1.0 Files?

Post 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!!!
Post Reply