Coder Social home page Coder Social logo

gamert / assetbundleparser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dpull/assetbundleparser

0.0 2.0 0.0 20.08 MB

C version of disunity

Home Page: http://www.dpull.com/blog/2015-01-23-hero_assetbundle

License: MIT License

C 89.81% C++ 8.64% Makefile 1.21% Shell 0.33%

assetbundleparser's Introduction

License:

Released under MIT license.

C version of disunity.

It's forbidden to sell Unity AssetStore plugins based on this source. Because I'll write a plugin to sell. :)

AssetBundleParser

AssetBundleParser is a tool to compare and merge Unity assetbundle.

AssetBundleParser isn't robust. If it's used to load a file of wrong format, it'll crash. There are two reasons:

  1. The format of assetbundle is private. The code is kept simple, so that if it fails to parse a file of right format and crashes, it'll be ease to compare the source code with disunity to find locate the bug.
  2. It's easy to verify if a file is of right format by using md5, it's unnecessary to add too much error-check and recovery code which only complicates the source.

At current only uncompressed assetbundle is supported. This is because Lzma compression speed is very slow. So when create a bundle, options like BuildOptions.UncompressedAssetBundle or BuildAssetBundleOptions.UncompressedAssetBundle shall be used.

Compatibility

Unity 				| Support
---  				| --- 		
4.6 				| √ 
5.0 				| ×		

Usage

  1. Call assetbundle_diff to generate a diff file.
  2. Call assetbundle_merge to merge diff file.

The diff file isn't compressed. Compress it before sending to network if needed.

Interface

assetbundle_load Description: Parse assetbundle file Param: assetbundle: File path Return: A pointer to assetbundle

assetbundle_check Description: Check if an assetbundle is supported. It's used only when comparing difference. It may use much memory. Return: true: The assetbundle is in good status.

assetbundle_diff Description: Generate diff file Return: 0: Success; None-zero: error code.

assetbundle_merge Description: Merge diff files. Return: 0: Success; None-zero: error code

assetbundleparser's People

Contributors

dpull avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.