Skip to content

Fallback to existing Il2Cpp assemblies when generation fails#1153

Closed
Sim-hu wants to merge 1 commit into
LavaGang:masterfrom
Sim-hu:fallback-existing-il2cpp-assemblies-on-agf-failure
Closed

Fallback to existing Il2Cpp assemblies when generation fails#1153
Sim-hu wants to merge 1 commit into
LavaGang:masterfrom
Sim-hu:fallback-existing-il2cpp-assemblies-on-agf-failure

Conversation

@Sim-hu
Copy link
Copy Markdown

@Sim-hu Sim-hu commented Apr 26, 2026

Summary

  • allow Il2CppAssemblyGenerator to continue with existing generated Il2Cpp assemblies when Cpp2IL or Il2CppInterop generation fails
  • keep forced regeneration strict: ForceRegeneration still fails instead of falling back
  • warn that the existing assemblies may be incompatible until generation succeeds

Why

Some games can fail regeneration after an update, while previously generated assemblies are still present and good enough for MelonLoader to start. Currently generation failure aborts startup even when those assemblies are available.

Testing

  • dotnet build MelonLoader.sln -c Release
  • Reproduced with Toram Online where Cpp2IL fails to locate registration structs, but existing MelonLoader/Il2CppAssemblies allows startup when generation is skipped.

@Sim-hu
Copy link
Copy Markdown
Author

Sim-hu commented Apr 26, 2026

image image

@HerpDerpinstine
Copy link
Copy Markdown
Member

HerpDerpinstine commented May 9, 2026

When assembly generation fails there is usually a very good reason for it.
Additionally all Pull Requests are required to be made for development branches, not master or main branch.
Also this appears to be for an online game called Toram Online which we do not offer support for.

@LavaGang LavaGang locked as resolved and limited conversation to collaborators May 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants