Thirlan Posted August 8, 2018 Share Posted August 8, 2018 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. Link to comment Share on other sites More sharing options...
HAL9000 Posted August 9, 2018 Share Posted August 9, 2018 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. Link to comment Share on other sites More sharing options...
Thirlan Posted August 17, 2018 Author Share Posted August 17, 2018 ... 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.