Skip to content

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

@FaustBaudelaire

Description

@FaustBaudelaire

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions