Catch engine and lua logs and pushes them back on the Lua stack with a hook.
hook.Add("EngineSpew", "logs", function(logType, logMsg, logGroup, logLevel, red, green, blue)
local color = Color(red, green, blue)
local out = ("[%s|%d] >> %s \n"):format(logGroup, logLevel, logMsg)
MsgC(color, out)
end)- Get premake add it to your
PATH - Get garrysmod_common (with
git clone https://github.com/danielga/garrysmod_common --recursive --branch=x86-64-support-sourcesdk) and set an env var calledGARRYSMOD_COMMONto the path of the local repo - Run
premake5 gmakein your local copy of this repo - Navigate to the makefile directory (
cd /projects/linux/gmakeorcd /projects/macosx/gmake) - Run
make config=releasewithsymbols_x86_64
- Get premake add it to your
PATH - Get garrysmod_common (with
git clone https://github.com/danielga/garrysmod_common --recursive --branch=x86-64-support-sourcesdk) and set an env var calledGARRYSMOD_COMMONto the path of the local repo - Run
premake5 vs2019in your local copy of this repo - Navigate to the project directory
cd /projects/windows/vs2019 - Open the .sln in Visual Studio 2019+
- Select Release, and either x64 or x86
- Build
- Get premake add it to your
PATH - Get garrysmod_common (with
git clone https://github.com/danielga/garrysmod_common --recursive) and set an env var calledGARRYSMOD_COMMONto the path of the local repo - Edit premake5.lua and change
PROJECT_GENERATOR_VERSIONto2 - Run
premake5 gmakein your local copy of this repo - Navigate to the makefile directory (
cd /projects/linux/gmakeorcd /projects/macosx/gmake) - Run
make
- Get premake add it to your
PATH - Get garrysmod_common (with
git clone https://github.com/danielga/garrysmod_common --recursive) and set an env var calledGARRYSMOD_COMMONto the path of the local repo - Run
premake5 vs2019in your local copy of this repo - Edit premake5.lua and change
PROJECT_GENERATOR_VERSIONto2 - Navigate to the project directory
cd /projects/windows/vs2019 - Open the .sln in Visual Studio 2019+
- Select Release, and either x64 or x86
- Build