IllusionMods / BepisPlugins

A collection of essential BepInEx plugins for games made by Illusion.
GNU General Public License v3.0
385 stars 82 forks source link

Some sideloader bugs #40

Closed DeathWeasel1337 closed 6 years ago

DeathWeasel1337 commented 6 years ago

Some item categories do not save with proper sideloader information. Saving a character with these and loading the character shows no UAR resolving, adding or removing any mod from the mods folder causes them to load incorrectly. These are all the ones that do not save correctly:

DeathWeasel1337 commented 6 years ago

Fixed as of r5

Update: This appears to be related to .unity3d files having a non-standard CAB-string. The shoesHM mod for example uses CAB-104a9045hmshoes as the CAB-string and changing it to CAB-1fee337fc8206560208aa02cab7bb361 which is the one used by mt_body_paint_00.unity3d causes it to work correctly.

[Error] System.NullReferenceException: Object reference not set to an instance o f an object at Sideloader.BundleManager.TryGetObjectFromName (System.String name, System.S tring assetBundle, System.Type type, UnityEngine.Object& obj) [0x00000] in <file name unknown>:0 at Sideloader.Sideloader.RedirectHook (System.String assetBundleName, System.S tring assetName, System.Type type, System.String manifestAssetBundleName, .Asset BundleLoadAssetOperation& result) [0x00000] in :0 at ResourceRedirector.ResourceRedirector.HandleAsset (System.String assetBundl eName, System.String assetName, System.Type type, System.String manifestAssetBun dleName, .AssetBundleLoadAssetOperation& result) [0x00000] in <filename unknow n>:0 [Error] System.NullReferenceException: Object reference not set to an instance o f an object at Sideloader.BundleManager.TryGetObjectFromName (System.String name, System.S tring assetBundle, System.Type type, UnityEngine.Object& obj) [0x00000] in <file name unknown>:0 at Sideloader.Sideloader.RedirectHook (System.String assetBundleName, System.S tring assetName, System.Type type, System.String manifestAssetBundleName, .Asset BundleLoadAssetOperation& result) [0x00000] in :0 at ResourceRedirector.ResourceRedirector.HandleAsset (System.String assetBundl eName, System.String assetName, System.Type type, System.String manifestAssetBun dleName, .AssetBundleLoadAssetOperation& result) [0x00000] in <filename unknow n>:0

DeathWeasel1337 commented 6 years ago

[Info] [UAR] Resolving com.roy12.SexySchoolgirlPackA:outfit0.accessory0.ChaFileA ccessory.PartsInfo.id from slot 80 to slot 100000623

Saving both the Earring and Bracelet and loading the character shows two apparently identical attempts to resolve the ID:

[Info] [UAR] Resolving com.roy12.SexySchoolgirlPackA:outfit0.accessory0.ChaFileA ccessory.PartsInfo.id from slot 80 to slot 100000623 [Info] [UAR] Resolving com.roy12.SexySchoolgirlPackA:outfit0.accessory1.ChaFileA ccessory.PartsInfo.id from slot 80 to slot 100000623

DeathWeasel1337 commented 6 years ago

8e57daa24ee9f204112c819cac7703b4a20ee1c3

DeathWeasel1337 commented 6 years ago

Fixed as of r5

DeathWeasel1337 commented 6 years ago
DeathWeasel1337 commented 6 years ago
DeathWeasel1337 commented 6 years ago
ezdiy commented 6 years ago
DeathWeasel1337 commented 6 years ago
ManlyMarco commented 6 years ago

I added checkboxes for all of the issues, please check everything that's fixed.

ManlyMarco commented 6 years ago

Everything is fixed with the latest PR, good work.