Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Program crashes when attempting to import moddified assets back into the bundle file #35

Open
FaustBaudelaire opened this issue Nov 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@FaustBaudelaire
Copy link

Description

A null reference exception error causing the process of importing modified assets back into a bundle to crash and abort.

Steps to Reproduce

  1. _Run 'UnityAssetReplacer' with options '-t -b "/path/to/decompressed/bundle" -i "/path/to/folder/of/moddified/assets/" -o "/path/to/output/new/bundle/file" '
  2. See the error.

Expected Behavior

I expect to have a new .bundle file with my moddified assets in it.

Output

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at AssetsTools.NET.Extra.BundleFileInstance..ctor(FileStream stream, String root, Boolean unpackIfPacked)
at AssetsTools.NET.Extra.AssetsManager.LoadBundleFile(FileStream stream, Boolean unpackIfPacked)
at AssetsTools.NET.Extra.AssetsManager.LoadBundleFile(String path, Boolean unpackIfPacked)
at UnityAssetReplacer.Asset..ctor(String& inputAssetBundlePath)
at UnityAssetReplacer.TextureAsset..ctor(String& inputAssetBundlePath)
at UnityAssetReplacer.Program.Main(String[] args)
Aborted (core dumped)

Platform

  • Operating System: Linux (Arch)
  • Architecture: x64
  • Program Version: v3.0.1

Extra information

I know having the modified assets being in the exact same order as in the original file is a requirement, and I have made sure that they're in fact in the same order.

@FaustBaudelaire FaustBaudelaire added the bug Something isn't working label Nov 18, 2024
@FaustBaudelaire FaustBaudelaire changed the title [BUG] [BUG] Program crashes when attempting to import moddified assets back into the bundle file Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@Skyluker4 @FaustBaudelaire and others