Closed johnnyhuy closed 3 years ago
Looks like we've got it working with 64-bit with the pre-release artifact. Didn't realise there was were prebuilt artifacts (spent the entire night trying to rebuild the projec tin 64-bit 😅)
This technique is to "launch" the server and then "attach" a debugger to start debugging.
{
"version": "0.2.0",
"configurations": [
{
"type": "gmrdb",
"request": "attach",
"host": "localhost",
"port": 21111,
"name": "Attach to Garry's Mod",
"sourceRoot": "${workspaceFolder}/garrysmod",
"sourceFileMap": {
"${workspaceFolder}": "addons/rdb"
},
"stopOnEntry": true
},
{
"type": "gmrdb",
"request": "launch",
"name": "Launch Garry's Mod",
"program": "${workspaceFolder}/srcds_win64.exe",
"cwd": "${workspaceFolder}",
"args": [
"-console",
"-game",
"garrysmod",
"-ip",
"localhost",
"-port",
"27015",
"+map",
"gm_construct",
"+maxplayers",
"2"
],
"sourceRoot": "${workspaceFolder}/garrysmod",
"port": 21111,
"sourceFileMap": {
"${workspaceFolder}": "addons/rdb"
},
"stopOnEntry": true
}
]
}
64-bit works but the 32-bit error still remains.
[gmrdb] error loading module 'rdb' from file 'gmsv_rdb_win32.dll':
The specified procedure could not be found.
1. error - [C]:-1
2. searcher - addons/gmrdb/lua/includes/modules/require.lua:65
3. require - addons/gmrdb/lua/includes/modules/require.lua:148
4. unknown - addons/gmrdb/lua/autorun/server/gmrdb.lua:3
Hey, this has been the only best method I've seen to debug Lua on Garry's Mod so far.
However, I can't seem to start up the
srcds
from launch settings defined on theREADME.md
.Wrote a small addon hoping it will trigger the remote server based on the
gif
provided.I'm getting this error when loading the addon.
I've placed the following DDL files in:
I'm happy to write out instructions on this repo if we can get this working. Many thanks.
Update
Found out that the library file can only run on 32-bit SRCDS based on releases found here
However, I'm now getting this on 32-bit SRCDS. Here's an output using
gmod_require
.