danielga / gmsv_serversecure

A module for Garry's Mod that mitigates exploits on the Source engine.
https://github.com/danielga/gmsv_serversecure
Other
127 stars 31 forks source link

Crash when require module #92

Closed Zekirax closed 2 years ago

Zekirax commented 2 years ago

When i require the module require("serversecure.core") my gmod shutdown. I was in a private game in multiplayer. Before that is was trying to create a gmod module. And I took as an example this project. I noticed my game crashed when I called a function from IServer* even if IServer isn't a nullptr and in a try catch.

Zekirax commented 2 years ago

my premake code

local gmcommon local path

(define path here with condition if I'm in windows or in my wsl)

include(gmcommon)

CreateWorkspace({name = "microphone", path = path, abi_compatible = true}) CreateProject({serverside = true, manual_files = false}) IncludeLuaShared() IncludeHelpersExtended() IncludeSDKCommon() IncludeSDKTier0() IncludeSDKTier1() IncludeSteamAPI() IncludeDetouring() IncludeScanning()

    files({
        path.."*.cpp",
        path.."*.hpp"
    })
danielga commented 2 years ago

What operating system are you using? What beta of Garry's Mod (none or x86-64) and what architecture (32 bits or 64 bits) are you playing on?

Zekirax commented 2 years ago

Beta x86-64 chromium and play in x86. I'll test without chromium beta

danielga commented 2 years ago

Yeah, these builds aren't for the x86-64 beta, they're for the main branch.

Zekirax commented 2 years ago

It was the problem thanks.