lewisclark / glua-steal

Retrieves client-sided Lua files from Garry's Mod game servers
GNU General Public License v3.0
151 stars 15 forks source link

*Possibly* not injecting scripts after the January 2023 update #54

Closed synesthesium closed 1 year ago

synesthesium commented 1 year ago

Describe the bug Scripts possibly (???) either not executing after the January 2023 update, or I severely misunderstand how this works.

Expected behavior The script included in my gluasteal.lua to run (which works on Windows under autorun-rs, so I don't think it's the script)

Actual behavior Lua files are properly dumped, no errors in the log, but the script is not run

Additional details (please complete the following information):

Additional context I've tried two different gluasteal.lua files, one providing the absolute path to a script I know exists on the server (thanks to your Lua dumper!), and the other trying to match for any script with a keyword in that path. Absolute:

if gluasteal.SCRIPT == "autorun/client/cl_this_has_a_scriptkeyword.lua" then
    gluasteal.include("coolscript.lua")
end

My current gluasteal.lua looks like the following:

if (gluasteal.SCRIPT:match("scriptkeyword")) then
    gluasteal.include("coolscript.lua")
end

However, in neither case did the script execute. I included a handful of print statements for good luck in coolscript.lua, but neither were outputted to the log or the GMOD console (which I expect it to? might be wrong)