GithubHelp home page GithubHelp logo

Command line support about uabe HOT 11 CLOSED

seriouscache avatar seriouscache commented on May 14, 2024 3
Command line support

from uabe.

Comments (11)

chrsmith avatar chrsmith commented on May 14, 2024 3

+1 to this idea. The Unity project I've been trying to extract resources for downloads dozens of compressed asset bundles, each containing dozens of textures. I used to use ata4/disunity, which allowed me to automate things using PowerShell. However, because of this bug ata4/disunity no longer works for my project. UABE works fine though, so nice work!

Since it appears that I can only use UABE to do the resource extraction, and having a command-line interface is critical for dealing with the ~1,000 different resource files, I would really like this feature ๐Ÿ˜„.

I am happy to write the code, with unit tests, and send you a pull request for review. If you are interested in taking me up on this offer, you can find my email address on my GitHub profile page. Thanks!

from uabe.

0x900x90 avatar 0x900x90 commented on May 14, 2024 1

Great idea. Maybe adding new file from commandline as well. Would be nice.

from uabe.

DerPopo avatar DerPopo commented on May 14, 2024 1

It's not possible through command line at the moment but you can select multiple .assets file in the open dialog. Then sort by the type and select all Meshes, press Plugins and so on.

from uabe.

alexbestul avatar alexbestul commented on May 14, 2024 1

Is there any chance of getting command line support for "Export Dump?"

I've got a huge library (thousands upon thousands) of asset bundles that I'd like to extract information from in order to build a database of asset properties. Doing that through the UI simply isn't feasible, even with the ability to multi-select.

Ideally, I'd like to be able to use the command line to do the equivalent of selecting everything in a bundle, clicking 'Export Dump', and writing it all to a specified directly (preferably in JSON format, as is already being discussed in #92).

from uabe.

anddom03 avatar anddom03 commented on May 14, 2024

+1 also to this. It's most important feature now for me.

Dealing with many files manually is really painful and time consuming.

from uabe.

DerPopo avatar DerPopo commented on May 14, 2024

You can export the contents of bundle files (such as .assets and .resource files) with the command line as described in Usage.txt and open multiple .assets at once in the UI.
Edit : Of course, that doesn't work for streamed AudioClips and Textures in U5 because the references look differently for single .assets and bundles.

from uabe.

anddom03 avatar anddom03 commented on May 14, 2024

Hey. Thanks for the quick response!

I was looking at it earlier and it was a bit unclear for me. Lets say we have resource.assets in which there is a texture1 file of type Texture2D.
In order to export this texture I create a batch file first that looks like this:
+FILE path_to_data_files\resources.assets\texture1
Then I use AssetsBundleExtractor batchexport
After modyfing the texture I reimport it with the same batch but with command:
AssetsBundleExtractor batchimport

Is that correct?
I assume that Texture2D will be extracted but not in png format. Is there a way to extract files to desired format and later reimport them to Unity's format?

from uabe.

DerPopo avatar DerPopo commented on May 14, 2024

Command line extraction doesn't work for .assets files. You can only batch export the .assets, .resource and .dll files from bundles (most often .unity3d), editing .assets files themselves isn't supported.

The normal user interface can batch extract from .assets files, just select all files to export using click+shift/ctrl+click (don't mix e.g. Texture2D with Mesh, do one type at a time). It can't batch import though.

from uabe.

Death111 avatar Death111 commented on May 14, 2024

Is it possible to add support for extracting all Meshes as OBJ, all Texture2D as PNG (and more) of a given .assets file by using command line?
Because iny my case I have >20 .assets file in it and I want to extract all meshes and textures from all files into a given folder. Doing this by hand is kind of a slow task to do.

from uabe.

Death111 avatar Death111 commented on May 14, 2024

Oh god. I did not know that I can select multiple -.- I opened them all one by one and exported - took ages. Thanks!

from uabe.

Thuya1980 avatar Thuya1980 commented on May 14, 2024

I want to edit the texture2d format with .png file in command line.
Is it possible?

from uabe.

Related Issues (20)

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.