gmsv_workshop icon indicating copy to clipboard operation
gmsv_workshop copied to clipboard

gmsv_workshop_linux.dll - attempt to index global 'steamworks' (a nil value)

Open MrCorn812 opened this issue 1 year ago • 7 comments

I am running a x32 server and am attempting to use steamworks but am having difficulties with it. I have added it to the correct path and I also went through the troubleshooting steps but have had no luck as of yet.

I was wondering if I was able to get some help with this. I have also sent you an email.

The error.

image

image

MrCorn812 avatar Nov 24 '23 06:11 MrCorn812

  1. Did you put require("workshop") in a serverside file?
  2. Is it being called BEFORE line 144 in sv_workshop.lua?
  3. Did you install the DLL to garrysmod/lua/bin/gmsv_workshop_linux.dll ?
  4. Are there any errors when the DLL is required?

WilliamVenner avatar Nov 24 '23 15:11 WilliamVenner

  1. Yes
  2. Yes
  3. Yesssir
  4. No errors appear when workshop is being required

MrCorn812 avatar Nov 25 '23 09:11 MrCorn812

Any update regarding this?

MrCorn812 avatar Nov 29 '23 10:11 MrCorn812

I've just tested this on my side just in case function signatures or anything like that have changed with the latest Garry's Mod updates, but everything works fine.

  • Are you using a provider for your server? (If yes, which one? If not, what's your operating system?)
  • Could you show the content of your file to check how the module is loaded?
  • Could you write status in the server console and show what it contains?

FlorianLeChat avatar Nov 29 '23 12:11 FlorianLeChat

Yeah its weird how its not working for me not sure why, it worked on another dedi we had.

We are just running the server through pterodactyl (Ubuntu 22.04). .dll location Our server is on version : 2023.06.28/24 9040 secure (I have tried using older versions of the module)

MrCorn812 avatar Nov 29 '23 12:11 MrCorn812

Weird, there's nothing special. My dedicated server is running under Docker with Debian 12 with the same version as yours. There's either an issue with this Lua file (unless an error also occurs if you run the function with lua_run in the server console, lua_run require("workshop") steamworks.<function>()...) or with the module itself, but only Billy will be able to help you further unfortunately.

FlorianLeChat avatar Nov 29 '23 12:11 FlorianLeChat

Yeah, I still get an error when I use lua_run, says the same thing. Hopefully we are able to get it working.

MrCorn812 avatar Nov 29 '23 12:11 MrCorn812