Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


Any interest in reverse engineering .unitypackage files?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 jefferytitan   Crossbones+   -  Reputation: 2455

Like
0Likes
Like

Posted 31 July 2014 - 04:00 PM

I'm currently doing a little home project that involves reverse engineering the .unitypackage file format. I have a lot of free Asset Store assets downloaded, and find the built-in categorisation system useless for finding what I need. Therefore I'm making a .NET tool that runs through my asset store folder and stores package names, paths, filenames and preview images in a SQL database so I can do full-strength searching. This would allow me to (for example) find all *.anim files, or all model formats that contain "car" in the path.

 

It likely wouldn't cover all facets of the file format, just the ones I need for my project. Anybody interested in an article when I've finished my little project?

 

JT

 



Sponsor:

#2 frob   Moderators   -  Reputation: 31266

Like
4Likes
Like

Posted 31 July 2014 - 04:16 PM

The format isn't much of a mystery.

 

To make them, they mangle the names and put them in a single directory, creating a mapping file. Then they run them through a classic compression (tar+gz).

 

To decompress it, dump the files then rename them based on the mapping file.  Or use an existing script like this simple .py file.

 

 

 

As for the rest of the catalog, yes, that does sound like a potentially useful thing.


Check out my book, Game Development with Unity, aimed at beginners who want to build fun games fast.

Also check out my personal website at bryanwagstaff.com, where I occasionally write about assorted stuff.


#3 jefferytitan   Crossbones+   -  Reputation: 2455

Like
1Likes
Like

Posted 31 July 2014 - 04:53 PM

Well I wish I'd asked here rather than on the unity forums before I started. wink.png In any case I figured it out, the main speedbump was working with the .tar.gz format in memory. If I distribute source, the Tar library that I used is under a BSD license. I guess just include the compiled form of it and the obligatory license file?



#4 jefferytitan   Crossbones+   -  Reputation: 2455

Like
0Likes
Like

Posted 31 July 2014 - 05:23 PM

By the way, why was this post moved? Given that it's a suggestion for writing an article, Article Writing seemed the right location to me. wink.png



#5 LorenzoGatti   Crossbones+   -  Reputation: 3242

Like
2Likes
Like

Posted 01 August 2014 - 01:25 AM

Not much article potential, what can you say about these Unity archives beyond the information in Frob's answer?


Omae Wa Mou Shindeiru


#6 Jan2go   Crossbones+   -  Reputation: 1462

Like
0Likes
Like

Posted 01 August 2014 - 03:07 AM

If I distribute source, the Tar library that I used is under a BSD license. I guess just include the compiled form of it and the obligatory license file?


What's the problem with distributing the source? As long as you don't remove the license from the code you should be good to go.

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.



#7 jefferytitan   Crossbones+   -  Reputation: 2455

Like
0Likes
Like

Posted 01 August 2014 - 05:01 PM

Okay, looks like not much interest, I'll work on it as a personal project and see where it goes from there.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS