• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Inheriting from EAIBase causes build crash

Thirlan

New member
My build crashes when I try and load this PatchScripts. The issue is specifically EAIBase.

public class EAITest : EAIBase

{

public EAITest()

{

}

public override bool CanExecute()

{

return false

}

}

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)

at System.Reflection.Assembly.GetTypes()

at SevenDaysToDiePlugin.BuildAndRunPatchModsTask.GetTypesWithInterface(Assembly asm, Type interfaceType)

at SevenDaysToDiePlugin.BuildAndRunPatchModsTask.Execute()

at SevenDaysToDiePlugin.Plugin.RunTasks(List`1 tasks, CompilerConfig config)

at SevenDaysToDiePlugin.Plugin.RunAction(String action, CompilerConfig config)

at SDX7DTD.frmMain.btnBuild_Click(Object sender, EventArgs e)

at System.Windows.Forms.Control.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ButtonBase.WndProc(Message& m)

at System.Windows.Forms.Button.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

What would be needed to resolve the problem? I want to be able to add my own EAIBase actions pretty badly. I'm willing to work on source code changes for SDX if that is necessary.

 
That's not a patch script. Patch scripts are for linking the base DLL with the mod DLL. What are you trying to achieve?

You're also missing a semi-colon on the return false. Other than that SDX compiles the class ok.

 
...

Thanks Hal. I wasn't able to come to the forums for a while, but I noticed that was the issue after looking at the Neon project.

 
Back
Top