Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Help with a Unity mobile game

Featured Replies

Hey guys! First post here. Basically I need your help to extract the 3D mesh from a Unity mobile game called "Russian Car Drift" I used AssetStudio to extract the files, the textures are in .png and the 3D mesh is stored as .dat and .bytes files, somebody told me that I need to create a script to run these files and then I can finally import to Blender. But the problem is, I don't know nothing about programming 😞 can you guys please help me?

Edited by Nick01

Solved by shak-otay

  • Author
7 hours ago, KuWuniss6 said:

You may need to upload a file—just a sample will do—so we can review and analyze it.

Here!

TextAsset_dat.zip

  • Supporter
13 hours ago, Nick01 said:

But the problem is, I don't know nothing about programming

Hey. too bad.

Plus, the .dat format is so simple (UrasGt) that I can't imagine AssetStudio can't export the mesh.

image.png.dff552a0e6cd2fdcd85755491644cfa6.png

edit: can't remember having seen TextAsset in AssetStudio. The .dat I checked contained pure mesh data.

Edited by shak-otay

  • Author
5 minutes ago, shak-otay said:

Hey. too bad.

Plus, the .dat format is so simple (UrasGt) that I can't image AssetStudio can't export the mesh.

image.png.dff552a0e6cd2fdcd85755491644cfa6.png

I mean, I could see the other's mesh from the game, but not the car's mesh, those are TextAsset in AssetStudio

  • Author
5 hours ago, shak-otay said:

Can you unfold TextAsset in AssetStudio and click on a dat file?

Yes I already have the .dat files in my desktopimage.png.71ded643b2547770dc051adea9df0392.png

Btw, how could you be able to see the mesh?

Edited by Nick01

  • Supporter

I used hex2obj to display the mesh.

Can you upload the bundle file (or whatever you loaded into AssetStudio)? (If its size is not about 100 MB.)

  • Author
39 minutes ago, shak-otay said:

I used hex2obj to display the mesh.

Can you upload the bundle file (or whatever you loaded into AssetStudio)? (If its size is not about 100 MB.)

Hey! I found the main bundle, it's called UnityDataAssetPack (about 400MB). I couldn't find a smaller one, but all the Eclipse meshbytes are inside this one. Here is the link: https://drive.google.com/drive/folders/1rI1VQ_5XWJ7WSz4WO0bU2az71gwXcATt?usp=sharing. Thanks for the help! 

  • Localization

Are you sure you're not mistaken? I downloaded the data you provided, and it's not complicated at all. You can quickly view the data structure using a hex editor; the geometric structure is located near the beginning of the hex address. I printed out a few vertices, and they look perfectly normal. It's not much different from a standard Unity structure—it's not complicated at all.

  • Author
23 minutes ago, KuWuniss6 said:

Are you sure you're not mistaken? I downloaded the data you provided, and it's not complicated at all. You can quickly view the data structure using a hex editor; the geometric structure is located near the beginning of the hex address. I printed out a few vertices, and they look perfectly normal. It's not much different from a standard Unity structure—it's not complicated at all.

I appreciate you taking a look at the data. To be honest, I'm still learning how to navigate hex structures and my current tools are giving me a hard time with the offsets.

Since it’s a standard structure for you, would you mind helping me out with the extraction? It would be amazing to finally see the full car in 3D. Thanks again for your patience!

  • Author

Update: I think I'm finally understanding the hex2obj program, but when I click to see the generated mesh, the window that's supposed to open, just disappears!

  • Supporter
1 hour ago, Nick01 said:

, but when I click to see the generated mesh, the window that's supposed to open, just disappears!

That's when the parameters you entered are not correct. (could you show them plus the .dat file in question?)

Open the created test.obj file in a text editor and you'll see at which line it goes wrong.

Usually the chosen count of vertices is too big then leading to very big vertices or NAN values.

5 hours ago, KuWuniss6 said:

It's not much different from a standard Unity structure—it's not complicated at all.

That's not the problem. The problem is why AssetStudio doesn't recognize this.

Edited by shak-otay

  • Supporter

@Nick01: edit: the TextAssets in the archive you've uploaded don't have a mesh contained afaics.

For type "mesh" the meshes are displayed and exported correctly.

So AssetStudioMod works like a charm, afaics.

Bottle_6.001.zip

Edited by shak-otay

  • Author
9 hours ago, shak-otay said:

That's when the parameters you entered are not correct. (could you show them plus the .dat file in question?)

Open the created test.obj file in a text editor and you'll see at which line it goes wrong.

Usually the chosen count of vertices is too big then leading to very big vertices or NAN values.

That's not the problem. The problem is why AssetStudio doesn't recognize this.

Yeah, sure! 

TextAsset.zip

  • Author
2 hours ago, shak-otay said:

@Nick01: I can't seem to find any TextAssets in the archive you've uploaded. It's "mesh", "Texture2D, "monoBehaviour" and the meshes are displayed and exported correctly.

So AssetStudioMod works like a charm, afaics.

Bottle_6.001.zip 5.39 kB · 1 download

That "Bottle_6.001" It's a mesh that I could see perfectly in the AssetStudio viewer (appears as mesh in AssetStudio) But that's not what I looking for to convert into a mesh. I'm trying too see all the meshes from the Eclipse folder, they are listed as TextAsset in the program.

This was the route I used to find the files for that car: "assets/_ladadrift/editor/resources/meshbytes/eclipse" after dragging the .apk into AssetStudio.image.thumb.png.63aec3e331745b9695a50647459b0ae2.png

 

Edited by Nick01

  • Author
1 minute ago, shak-otay said:

Maybe report the issue here.

Thanks, but you already show me in this pic that is possible see the meshes with hex2obj with the "TextAsset_dat.zip" file that I uploaded here earlier and that's I'm trying too doo with all the restant meshes.
I just need to figure out the exact parameters...

image.png.dff552a0e6cd2fdcd85755491644cfa6.png

  • Supporter
  • Solution

It's not a 15 minutes job as I thought:

Hex2obj0.25bW7_JsE0MDafRM.png

mesh_viewer_Gyj6IV6Vaz.png

edit: the 2nd sub mesh is not so obvious:

uQL9CBsEbV.png.72ff8d55712a97ba8d77df498c3be2ba.png

Edited by shak-otay

  • Author
1 hour ago, shak-otay said:

It's not a 15 minutes job as I thought:

Hex2obj0.25bW7_JsE0MDafRM.png

mesh_viewer_Gyj6IV6Vaz.png

edit: the 2nd sub mesh is not so obvious:

uQL9CBsEbV.png.72ff8d55712a97ba8d77df498c3be2ba.png

That looks amazing! Thanks for sharing the screen, it makes everything much clearer. I see you've got the parameters perfectly tuned for the Eclipse mesh.

  • Author

@shak-otay A guy told me to find the code which is used to loading the meshes from assets, and then write a script for Blender to import them.
Can you please help me with that script? It's my last request, I don't want to keep wasting your time. Thank you for everything!

  • Supporter
10 hours ago, Nick01 said:

@shak-otay A guy told me to find the code which is used to loading the meshes from assets,

The code for loading meshes in the AssetStudio project? That will handle "mesh", not "TextAsset", I guess.

Quote

Can you please help me with that script?

When it means that I write the code, then sorry, no, I don't have the time for that.

If I means that you write the code and I check it, then 'yes'.

 

edit: I checked the code, in Exporter.cs there's these two functions:

private static bool ExportMesh(AssetItem item, string exportPath)

private static bool ExportTextAsset(AssetItem item, string exportPath)

Someone with free time might exchange their names, then try to export TextAssets as mesh. Just a wild guess, I'll maybe check that later... 

Edited by shak-otay

  • Author

 

2 hours ago, shak-otay said:

When it means that I write the code, then sorry, no, I don't have the time for that.

Don't worry, It's fine!

Edited by Nick01

  • Author

Update: Finally I can see the first mesh! I used the image above as example and to find out how it works a hex file.

Thank you guys! I'll leave this post open just in case.

mesh.jpg

Edited by Nick01

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.