Sign in to follow this  

Unity Any interest in reverse engineering .unitypackage files?

This topic is 1265 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Similar Content

    • By loyalsheep
      Hey guys!
      Check out the trailer of Airavat. It's a minimalist, space survival game (and hard, very hard) 
      Download on GooglePlay: Airavat
       
    • By anomalystudiospt
      Hey, we are new around here!
      Our team spent the last year developing a prototype game called Rise of The Fey, a game that focuses on a dramatic story with a fast paced gameplay.
      Rise of The Fey is a third-person action-adventure RPG set within a fantasy world called Perrah. In Rise you control Kall, a young spaunian looking for revenge after the death of his beloved.

      We would appreciate if you could take a look at our stuff, tell us what you think and possibly help us out on Indiegogo.
      The prototype is in portuguese, sorry about that!
      Have a good one!
    • By juglar
      Hi guys, we are developing a game called BiteOff! based on Zombies topic. BiteOff! is based on a game strategy mechanics, free to play, where the player has a bunch of zombies and he can distribute them along the map landscape to be able to bite and transform all humans into each level. Humans are controlled by artificial intelligence and they differ each other on capabilities based on different weapons that give them three different levels of aggressiveness to defend against the zombies. The zombies are also presented in three types and they are differentiated by their attack, speed, strength and resistance abilities. Through different achievements, (time to eat all humans, score, among others) the player can access four extra skills that can enhance your attack in real time on next levels as power-ups.
      We are launching a crowdfunding campaign in kickico and we need some helps please visit us on the crowdfunding page https://www.kickico.com/es/campaigns/17824/biteoff-the-videogame 
      Twitter @biteoffthegame
      Facebook
      Clickme!
      Website 
      Clickme!
    • By Lord McMutton
      The world of Ethios is held aloft by massive trees known as the Pillars.
  • Popular Now