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

Game-breaking incompatibility with XUnity_AutoTranslator #9

Open
LadyEbony opened this issue May 16, 2024 · 2 comments
Open

Game-breaking incompatibility with XUnity_AutoTranslator #9

LadyEbony opened this issue May 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@LadyEbony
Copy link

When my mod is used in conjecture with this mod and the auto translator mod, something goes haywire in the asset bundle loading process and it fails my initialization process.

The debug log with just Auto Translator

[Debug :XUnity.AutoTranslator] Loading Asset Bundle: ().
[Debug :XUnity.AutoTranslator] Loaded Asset: 'DunGen.Graph.DungeonFlow', Load Type: 'LoadNamed', Unique Path: (unnamed_assetbundle\sdmlevel).
[Info :ImoutoSama.ScarletMansion] Loading asset SDMLevel
[Debug :XUnity.AutoTranslator] Loaded Asset: 'ScarletMansion.NetworkObjectListScriptableObject', Load Type: 'LoadNamed', Unique Path: (unnamed_assetbundle\sdmlist).
[Info :ImoutoSama.ScarletMansion] Loading asset SDMList
[Debug :XUnity.AutoTranslator] Loaded Asset: 'UnityEngine.AudioClip', Load Type: 'LoadNamed', Unique Path: (unnamed_assetbundle\entrance).
[Info :ImoutoSama.ScarletMansion] Loading asset entrance
[Debug :XUnity.AutoTranslator] Loaded Asset: 'UnityEngine.GameObject', Load Type: 'LoadNamed', Unique Path: (unnamed_assetbundle\net_knightenemy).
[Info :ImoutoSama.ScarletMansion] Loading asset NET_KnightEnemy
[Debug :XUnity.AutoTranslator] Loaded Asset: 'TerminalNode', Load Type: 'LoadNamed', Unique Path: (unnamed_assetbundle\knightnode).
[Info :ImoutoSama.ScarletMansion] Loading asset KnightNode
[Debug :XUnity.AutoTranslator] Loaded Asset: 'TerminalKeyword', Load Type: 'LoadNamed', Unique Path: (unnamed_assetbundle\knightkeyword).
[Info :ImoutoSama.ScarletMansion] Loading asset KnightKeyword

The debug log with just BepInExFasterLoad

[Debug :BepInExFasterLoadAssetBundlesPatcher] Loading uncompressed bundle "cd0d065708e24fd4bc89ff8f338701e3_884213230.assetbundle"
[Info :ImoutoSama.ScarletMansion] Loading asset SDMLevel
[Info :ImoutoSama.ScarletMansion] Loading asset SDMList
[Info :ImoutoSama.ScarletMansion] Loading asset entrance
[Info :ImoutoSama.ScarletMansion] Loading asset NET_KnightEnemy
[Info :ImoutoSama.ScarletMansion] Loading asset KnightNode
[Info :ImoutoSama.ScarletMansion] Loading asset KnightKeyword

The debug log with both

[Debug :BepInExFasterLoadAssetBundlesPatcher] Loading uncompressed bundle "cd0d065708e24fd4bc89ff8f338701e3_884213230.assetbundle"
[Debug :XUnity.AutoTranslator] Loading Asset Bundle: (cache\assetbundles\cd0d065708e24fd4bc89ff8f338701e3_884213230.assetbundle).
[Debug :XUnity.AutoTranslator] Loading Asset Bundle: ().
[Error :ImoutoSama.ScarletMansion] Trying to load in asset but asset bundle is missing
[Error :ImoutoSama.ScarletMansion] Trying to load in asset but asset bundle is missing
[Error :ImoutoSama.ScarletMansion] Trying to load in asset but asset bundle is missing
[Error :ImoutoSama.ScarletMansion] Trying to load in asset but asset bundle is missing
[Error :ImoutoSama.ScarletMansion] Trying to load in asset but asset bundle is missing
[Error :ImoutoSama.ScarletMansion] Trying to load in asset but asset bundle is missing

The Trying to load in asset but asset bundle is missing error is my code exiting early when the assetbundle returned from AssetBundle.LoadFromStream(assetStream) returns null.

Sometimes when I load with both mods, it loads successfully and none of these errors occur. I don't have a log file for those instances but my gut says a possible race condition. I'm not knowledgeable enough about the asset loading process so I'm not sure if I can fix the issue on my end or if the issue needs to fixed on your end or whose end really.

@DiFFoZ
Copy link
Owner

DiFFoZ commented May 18, 2024

Looks like XUnity_AutoTranslator runs after my patch, but it instead loads original bundle which will not work

@DiFFoZ DiFFoZ added the bug Something isn't working label May 18, 2024
@DiFFoZ
Copy link
Owner

DiFFoZ commented May 20, 2024

Steps to repro:

  1. Install XUnity_Translator, BiEFLAB, ScarletDevilMansion
  2. Open AutoTranslatorConfig.ini and under [Debug] add this line
EnableLog=True
  1. Start up the game and see in console/log file: [Error :ImoutoSama.ScarletMansion] Trying to load in asset but asset bundle is missing

This was referenced Jun 17, 2024
Closed
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

Successfully merging a pull request may close this issue.

2 participants