Skip to content

[BUG]: a 50/50 chance of the game crashing when having the SDK with 1 script. And ZMenu IV + Chaos mod #60

@ftk789

Description

@ftk789

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions