Jump to content

  • Log In with Google      Sign In   
  • Create Account

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   Crossbones+   -  Reputation: 2507

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

 



#2   Moderators   -  Reputation: 40190

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   Crossbones+   -  Reputation: 2507

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   Crossbones+   -  Reputation: 2507

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   Crossbones+   -  Reputation: 3950

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   Crossbones+   -  Reputation: 1836

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   Crossbones+   -  Reputation: 2507

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