GithubHelp home page GithubHelp logo

zcubed3 / asset_migrator Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 41 KB

A tool to assist in the process of porting Unity scenes and prefabs from one project to another!

License: BSD 3-Clause "New" or "Revised" License

Shell 1.14% Rust 98.86%
unity unity3d unity3d-mod unity3d-modding

asset_migrator's Introduction

Hi, I'm Liam Reese (aka zCubed3) ๐Ÿ‘‹

ko-fi

Projects

  • project-archive - An archive of all my previously public projects
  • GPU-Grass - A stylized grass system for Unity, not used in but developed for, Strayed VR by Crustacean Interactive
  • schism - A research project to create a basic bytecode assembler and interpreter that functions similar to GPU hardware
  • rt-everywhere - A toy raytracer written in C99, ported to some normal platforms and some odd ones!
  • zealot-q2 - A fork of id Software's original Quake II source release, partially rewritten in C++, with some modern features added in
  • asset-migrator - A basic utility written in Rust to more easily port mods between unrelated, decompiled unity projects

asset_migrator's People

Contributors

zcubed3 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

asset_migrator's Issues

Conversion Stage immediately exits & Non-BONELAB game question

I'm attempting to run asset_migrator.exe in Windows (10) Terminal in a D: drive, passing in my ripped project's Assets folder as the first argument and the destination Assets folder as the second. My final command looks like this:
.\asset_migrator.exe "D:\SteamLibrary\steamapps\common\<game>\<game>_Data\Ripped\<game>\ExportedProject\Assets" "D:\Dev Stuff\Projects\VS Community\Unity\My project\Assets"

The collection stage only lasts a couple seconds and the program exits silently immediately after the conversion stage.

image_2023-10-30_162500825

Also possibly related, is there any BONELAB/IL2CPP-specific code in this? I'm asking because I'm ripping a game with a Mono backend.

Thread 'main' panicked at main.rs:162:72

Now I get an error, after using the correct syntax.
I set up a PowerShell script to help me with multiple scene files:

foreach ($file in Get-ChildItem "D:\SteamLibrary\steamapps\common\<game>\<game>_Data\Ripped\<game>\ExportedProject\Assets" -Recurse -Include "*.unity") {
    echo $file
    Start-Process -Wait -FilePath 'D:\Dev Stuff\Programs\PrefabConverter\asset_migrator.exe' -ArgumentList "`"D:\SteamLibrary\steamapps\common\<game>\<game>_Data\Ripped\<game>\ExportedProject\Assets`" `"D:\Dev Stuff\Projects\VS Community\Unity\My project\Assets`" `"($file)`"" -NoNewWindow
}

All it does is run the program for every .unity file in the ripped project directory. I've tried running the program by itself, and i get the same error as when i run it using the script:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: StripPrefixError(())', src\main.rs:162:72
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

All I can gather from this error method, having very little knowledge in Rust, is that it can't get the .unity file's path because it somehow ends up as type 'Err'.

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.