I have put together a few mods previously without issue, but I put together a simple infrastructure mod and when I try to build it I get an error saying: "Invalid data when building asset bundle".
The full error in the console says this:
DirectoryNotFoundException: Could not find a part of the path "C:\Users\Owner\Documents\Humankind\Community\Baka's Infrastructure Balancing\Assets\AssetBundles\StandaloneWindows64\Baka's Infrastructure Balancing.a2927df8aa9c48b5a35313d3e3c83358.0.1\baka's infrastructure balancing.a2927df8aa9c48b5a35313d3e3c83358.0.1.assetbundle.txt"
If you can get your mod tool kit to this screen you should be able to reimport the files successfully, after you Update the Bundle. Follow the instructions in the 'alert' and use the drop down menu for \/ Amplitude Assets -> Asset Bundles -> Configuration and then for Asset Bundle Manifest select the projects file.
I dont know much about nothing, but i can suggeat you change the path of the project (cut it feom you mod proj folder and place it in something like G:/modshknd/ to shorten the path. After that open the peoject from unity hub at the new path and see if it works. I got thos error because of the very long path the mod creates when built, extending over the 254 character limit on unity.
Here are some steps you can take to troubleshoot and potentially resolve this issue:
Check File Paths and Names:
Ensure that all file paths and asset names in your mod project are correctly spelled and match the actual file names and paths in your project directory.
Pay attention to capitalization, as file systems in Windows are case-insensitive, while some other platforms are case-sensitive.
Verify AssetBundle Configuration:
Double-check the configuration settings for your AssetBundles in Unity. Make sure that the AssetBundles are set up correctly with the appropriate names and dependencies.
Ensure that all assets referenced by the AssetBundle are present in the project and correctly linked.
Check Mod Build Process:
Review the b2b data building process for your mod. Ensure that any scripts or tools you use to build the mod are correctly configured and generate the expected output.
Check if there are any custom build scripts or build-related code that might be causing issues.
ContraryPoke
Inspired Enthusiast
CP
ContraryPoke
Inspired Enthusiast
5 400g2g ptsReport comment
Why do you report ContraryPoke?
Are you sure you want to block ContraryPoke ?
BlockCancelAre you sure you want to unblock ContraryPoke ?
UnblockCancelNingauble
Inspired Sentient
Boats aren't real.
Ningauble
Inspired Sentient
37 300g2g ptsReport comment
Why do you report Ningauble?
Are you sure you want to block Ningauble ?
BlockCancelAre you sure you want to unblock Ningauble ?
UnblockCancelNingauble
Inspired Sentient
Boats aren't real.
Ningauble
Inspired Sentient
37 300g2g ptsReport comment
Why do you report Ningauble?
Are you sure you want to block Ningauble ?
BlockCancelAre you sure you want to unblock Ningauble ?
UnblockCancelContraryPoke
Inspired Enthusiast
CP
ContraryPoke
Inspired Enthusiast
5 400g2g ptsReport comment
Why do you report ContraryPoke?
Are you sure you want to block ContraryPoke ?
BlockCancelAre you sure you want to unblock ContraryPoke ?
UnblockCancelmonoolho
Newcomer
monoolho
Newcomer
12 000g2g ptsReport comment
Why do you report monoolho?
Are you sure you want to block monoolho ?
BlockCancelAre you sure you want to unblock monoolho ?
UnblockCancelisabelmartins
Newcomer
isabelmartins
Newcomer
100g2g ptsReport comment
Why do you report isabelmartins?
Are you sure you want to block isabelmartins ?
BlockCancelAre you sure you want to unblock isabelmartins ?
UnblockCancel