lewisclark / glua-steal

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

Linux issues. #4

Closed ghost closed 5 years ago

ghost commented 5 years ago

While compiling for linux, i had errors about the filesystem lib not being found. i had to replace all #include <filesystem> with #include <experimental/filesystem> and all std::filesystem:: with std::experimental::filesystem::

This may be the reason why im getting this error along with gmod crashing: [13-04-19 - 17:05:33.544] [info] Initializing gluasteal v1.4 [13-04-19 - 17:05:33.544] [critical] Failed to initialize: failed to grab handle for library engine

Any ideas on how to fix this?

lewisclark commented 5 years ago

The compilation issue with the filesystem header should be resolved if you compile using gcc 8. I presume you're using gcc 7.

What method are you using to inject?

ghost commented 5 years ago

Editing hl2.sh to include it. It does not crash on gmod starting up, it crashes once the server starts loading lua.

lewisclark commented 5 years ago

What's the output of the log file at ~/gluasteal/log.txt?

ghost commented 5 years ago

[13-04-19 - 17:05:33.544] [info] Initializing gluasteal v1.4 [13-04-19 - 17:05:33.544] [critical] Failed to initialize: failed to grab handle for library engine

lewisclark commented 5 years ago

Apologies, hadn't realized you already the log contents in the original post. Try the fix I just pushed.

ghost commented 5 years ago

Thanks, I'm currently having issues with steam and gmod for other reasons so when i fix those I'll be able to test that fix.

ghost commented 5 years ago

Great, that fixed the error thanks.