CAP Pier Wall Liquid Dump Load Error

Won't fix Mod issue
PHEN1CUS [github] · 3 months ago

Issue description

Save game with CAP Pier Wall Liquid Dump will not load.

Reproduction steps

Start Game with CAP Pier Wall Liquid Dump mod enabled

Game version and build number

v0.8.6a b610

Operating system

Windows

Attachments

Google AI is suggesting the following as a fix:

If You Are the Mod DeveloperIf this is your own source code (as indicated by the local directory E:\Programieren... in the stack trace), you need to recompile the mod against the latest game binaries:Update References: Ensure your project references the newest Mafi.Core.dll and related assemblies from your current Captain of Industry game directory.Fix RecipeProtoBuilder.Start: Go to line 44 of PierLiquidDumpData.cs.Adjust Parameters: Change the third argument of .Start() so it matches the new signature. You likely need to change the MachineProto object reference to its corresponding ID string or token type required by the updated API:csharp

**// Old broken way:
RecipeProtoBuilder.Start("RecipeName", recipeId, machineProtoInstance)

// New expected way (or equivalent adjusted signature):
RecipeProtoBuilder.Start("RecipeName", recipeId, machineProtoInstance.Id)**

Use code with caution.Rebuild: Recompile the assembly and deploy the updated .dll to your game's mod folder.

Closed as 🗑️ Won't fix

7 Showing 1–2 of 2