Closed dasd46785 closed 1 year ago
gluasteal-v%.%-%bit.dll
folders in Documents/gluasteal/servers/
will be named as IP:PORT
i can't do video, so i hope i wrote this pretty good
What about for Linux @shockpast ?
What about for Linux @shockpast ?
idk
hello i am new and i need a tut on yt because i dont get it
Be specific? What don't you get? Have you looked at the readme?
What about for Linux @shockpast ?
There are instructions on how to build and use glua-steal on Linux in the readme.
The instructions
Recommended: [gdb](https://github.com/AimTuxOfficial/AimTux/blob/master/load)
[linux-inject](https://github.com/gaffe23/linux-inject)
using [LD_PRELOAD](https://man7.org/linux/man-pages/man8/ld.so.8.html), e.g. by modifying the Garry's Mod launch script (hl2.sh)
Im not too sure how to inject it tbh, I have tried linux inject and gdb but none of those seems to work
The instructions
Recommended: [gdb](https://github.com/AimTuxOfficial/AimTux/blob/master/load) [linux-inject](https://github.com/gaffe23/linux-inject) using [LD_PRELOAD](https://man7.org/linux/man-pages/man8/ld.so.8.html), e.g. by modifying the Garry's Mod launch script (hl2.sh)
Im not too sure how to inject it tbh, I have tried linux inject and gdb but none of those seems to work
gdb injection works great for me and others - here's a script you can use: https://github.com/lewisclark/glua-steal/issues/21#issuecomment-876401038
here's a script you can use: #21 (comment)
I think I used it correctly,
top
command and looked at gmod.exe
(pid from top) (.so file)
either I built the .so wrong, or my glua steal folder is fucked or somethign
Are you matching the build instructions with the version of the game you are running (32 bit or 64 bit)? You also must specify the full path to the library file, not a relative one.
Ooh maybe thats why, I was using the relative path!
When do you inject it and how do you check the pid and version (32 or 64) of the executable? I'm not sure which version it is (should be Chromium 64, but there is a way to start it in 32) ?
Other than that, do you recon I'm doing something wrong from my instructions?
Inject at the main menu when you first launch the game. By default, Garry's Mod is installed as a 32-bit program. You can change it to 64-bit in Steam by going to the 'Betas' section under Garry's Mod. You 100% must use an absolute path when using that script, so hopefully that is your issue.
Thank you very much! I will try when I come home from work then and let you know :)
For some reason my Gmod was in the "normal" mode but a server asked for the Chromium x64 binaries
version so I switched to it but now whenever I try to join a server on any version but Chromium my game crash so I must be in Chromium x64 binaries
~/Github/gmod ❯ ./gdb_inject.sh 25429 /home/maplepy/Github/gmod/binaries/libgluasteal-32.so
No symbol table is loaded. Use the "file" command.
Invalid data type for function to be called.
I get this output when I try, also no folder is being created in my home when i start it
So you know, I used your script with the full path, tried with both 32bits and 64bits version and none of those worked
Just tried with linux-inject and got this
./inject -p $(pgrep hl2) /home/maplepy/Github/gmod/gluasteal.so
targeting process with pid 58251
ptrace(PTRACE_POKETEXT) failed
this is the version i'm running
please answers those so I know what's wrong:
or maybe try to send me your .so file so I can check if my build is wrong? thank you very much
Strange. I've just tested both 32-bit and 64-bit with no issues. Native only - I wouldn't recommend using Proton.
did you compile in 64 or 32?
You must compile to match the architecture of Garry's Mod. 64-bit -> 64-bit and 32-bit -> 32-bit.
You can download precompiled from the bottom of this page.
Well I might be missing something because even with those it seems like it does not work
~/Github/gmod ❯ ./gdb_inject.sh 56047 /home/maplepy/Github/gmod/binaries/gluasteal-ubuntu-20.04-gcc9-gcc-32bit-Release.so
warning: Could not load shared library symbols for bin/launcher.so.
Do you need "set solib-search-path" or "set sysroot"?
Successfully injected!
~/Github/gmod ❯ ./gdb_inject.sh 56047 /home/maplepy/Github/gmod/binaries/gluasteal-ubuntu-22.04-gcc11-gcc-32bit-Release.so
warning: Could not load shared library symbols for bin/launcher.so.
Do you need "set solib-search-path" or "set sysroot"?
Successfully injected!
Note: I tried with the 32 bit version but when i pgrep hl2 i have 3 pids, tried with the 3 but none of those work
I just managed to fix it !! Thank you so much for the help and for trying for so long to help me bro!
The fix: basically I tried with both the gcc9 and gcc11 and tried every 3 of those pid, eventually one worked and it seems like it created the gluasteal folder and every file associated with it
I'm just note sure how to run my .lua files now? Should they be in the config.toml or in the gluasteal.lua or somewhere else?
Great! The default file is gluasteal.lua
but can be changed in the config file.
What would be the best way to run a menu when i spawned in the server? because as of now it doesnt seem to load when im connected
Something like this should execute your file once the base Lua files have loaded:
gluasteal.lua
if gluasteal.SCRIPT == "includes/extensions/client/render.lua" then
gluasteal.include("loaded.lua")
end
loaded.lua
-- your code here
would that load it when it connects to the server or once i joined ? because i had issues with it maybe it initialized too early
i guess it would since if I understand correctly, it will load right after the render.lua
loads right?
Yes, it would load loaded.lua
once, just before render.lua
is loaded.
To delay it further you could do something like this inside the if statement:
timer.Simple(0, function() gluasteal.include("loaded.lua") end)
hello i am new and i need a tut on yt because i dont get it