I want to run my own custom script using this SDK plus ZMenu IV + Chaos mod.
My mod is simple:
using System;
using IVSDKDotNet;
using System.Windows.Forms;
using IVSDKDotNet.Native;
public class AutoSaveKeybinds : Script
{
public AutoSaveKeybinds()
{
Tick += AutoSaveKeybinds_Tick;
}
private void AutoSaveKeybinds_Tick(object? sender, EventArgs e)
{
if (Helper.IsKeyPressedAsync(Keys.F1))
{
Natives.DO_AUTO_SAVE();
ShowSubtitleMessage("FTK Autosave triggered!");
}
else if (Helper.IsKeyPressedAsync(Keys.F3))
{
Natives.ACTIVATE_SAVE_MENU();
ShowSubtitleMessage("FTK Loadsave triggered!");
}
}
}
Yet everytime I load the game. It has a 50/50 chance of crashing. not because of the script. but because of the SDK and both of the mods. There are no logs of crashing on the sdk logs nor the mod menu logs. Just pure crash.
Thank you for actually detailing this SDK. it's pretty nice and clean