Ulysses

General => Developers Corner => Topic started by: XxLMM13xX on January 22, 2015, 05:20:18 PM

Title: [non ULX] Lua server problem?
Post by: XxLMM13xX on January 22, 2015, 05:20:18 PM
Ok so there is like no error but whenever i save a job the server post a message saying sv_allowclua 1 and i dont know why!!! its annoying so please help!

Thanks
Title: Re: [non ULX] Lua server problem?
Post by: Bite That Apple on January 24, 2015, 03:15:03 PM
Ok so there is like no error but whenever i save a job the server post a message saying sv_allowclua 1 and i dont know why!!! its annoying so please help!

Thanks

ummm, okay well to receive better help, what gamemode, what are you "Actually trying to do"? Lastly, as I have done what any expert would do, I did this: http://bit.ly/1tbGWAF (http://bit.ly/1tbGWAF)

It appears that you're trying to cheat as from what I see, you either are playing with some program that allows you to cheat on servers (apparently something called Cheat Engine). As I do not support hackers/cheaters, I will not supply any more information about this.
Title: Re: [non ULX] Lua server problem?
Post by: XxLMM13xX on January 24, 2015, 07:28:15 PM
ummm, okay well to receive better help, what gamemode, what are you "Actually trying to do"? Lastly, as I have done what any expert would do, I did this: http://bit.ly/1tbGWAF (http://bit.ly/1tbGWAF)

It appears that you're trying to cheat as from what I see, you either are playing with some program that allows you to cheat on servers (apparently something called Cheat Engine). As I do not support hackers/cheaters, I will not supply any more information about this.

Im using darkrp and when i edit a job file it turns on clua and i dont know why... im not cheating at all!

let me explain...

I goto FTP/filezilla and open job.lua on darkrp mod and i make a job ( nothing wrong with it ) and then i do ctrl+s to save it a click yes on the filezilla thing ( adding the file to the server ) after that i go into gmod and see the lag ( normal ) then it comes back and BAM sv_allowclua 1 idk why but it does it. I dont know why you would think im cheating but ok! thanks!
Title: Re: [non ULX] Lua server problem?
Post by: JamminR on January 24, 2015, 07:37:05 PM
To begin with, don't edit files live.
Shut the server down first.

And, DarkRP pretty much explains why the console command.
https://github.com/FPtje/DarkRP/blob/2bd4b70cfb359da545cea3919137f8df431f9687/gamemode/modules/base/sv_gamemode_functions.lua#L855
See line 855+. not going to post it here. too graphic.
Title: Re: [non ULX] Lua server problem?
Post by: Bite That Apple on January 24, 2015, 08:04:22 PM
As JamminR said above, when it comes to editing files, make sure you restart the server, because chances are, something may go wrong, or edit it on a local server on your PC. Even though garry's mod supports live lua updates, sometimes it may bug out when using FTP, it's easier to just do it on a local server anyways.
Title: Re: [non ULX] Lua server problem?
Post by: MrPresident on January 24, 2015, 11:04:07 PM
Oh my..

I can't believe there is code in DarkRP that enables sv_allowcslua.
That's got to be the shadiest thing I've seen in a while.
Title: Re: [non ULX] Lua server problem?
Post by: Bite That Apple on January 25, 2015, 12:38:23 AM
Oh my..

I can't believe there is code in DarkRP that enables sv_allowcslua.
That's got to be the shadiest thing I've seen in a while.

I'm not entirely sure what that actually is, from what I saw it had to do with client side scripts. Can you elaborate if you get a chance?
Title: Re: [non ULX] Lua server problem?
Post by: XxLMM13xX on January 25, 2015, 08:37:32 AM
Ok i will try saving the file then restarting! Thanks!
Title: Re: [non ULX] Lua server problem?
Post by: MrPresident on January 25, 2015, 10:42:11 AM
sv_allowcslua (if set to 1) allows clients to execute their own clientside lua scripts or functions from console.
This doesn't affect the server so much, but there are a LOT of things you can do on the clientside that some servers might not like.

ESP scripts, or aim bots, some level of autonomous botting can be done with clientside scripting.
For some gamemodes like Sandbox it's fine, but in any gamemode where combat is an element, I don't think most server owners would want this enabled and for the gamemode to turn it on is just a little sketchy in my opinion.
Title: Re: [non ULX] Lua server problem?
Post by: JamminR on January 25, 2015, 01:27:08 PM
If my memory serves me correctly, there have been some scripted client entities in the past that would/could cause crashes on the server somehow.
Been 5+ years since I've heard/seen any of them, but, just one example.

Some forms of ULX punishment might be avoided (or at least, slowed down) by allowing client side scripting.
Though ULX is more robust now thanks to Gmod updates and networked vars, not so long ago, with clientside scripting, one could easily avoid gag.
Title: Re: [non ULX] Lua server problem?
Post by: MrPresident on January 25, 2015, 04:06:37 PM
I think gag is handled using the serverside PlayerCanHearPlayersVoice (http://wiki.garrysmod.com/page/GM/PlayerCanHearPlayersVoice) hook so clients couldn't really get around this with clientside lua (unless you know a way I don't).
Title: Re: [non ULX] Lua server problem?
Post by: JamminR on January 25, 2015, 07:10:32 PM
It is now, yes, but, that hook only came about in Gmod13.
Hence my "more robust now since Gmod updates" quip. :)

We used to use a umsg to the client, setting a variable that when enabled, ran a .03 timer that would set mic input off (-voicerecord, i think?)
"hackers" (script kiddies) would brag about disabling gag and getting around it by re-setting the variable client side.

Title: Re: [non ULX] Lua server problem?
Post by: XxLMM13xX on January 26, 2015, 12:49:54 PM
Quick question... Dosent sv_allowclua 1 allow hackers to like get into your rcon using lua scripts...
Title: Re: [non ULX] Lua server problem?
Post by: Bite That Apple on January 26, 2015, 09:20:51 PM
Quick question... Dosent sv_allowclua 1 allow hackers to like get into your rcon using lua scripts...

As I'm not an expert with this command, I'd personally say no, because as far as I know my way around Garry's Mod, there is nothing that can do that except one issue; humans. Though, what disguy is saying, might get you a better answer.

sv_allowcslua (if set to 1) allows clients to execute their own clientside lua scripts or functions from console.
This doesn't affect the server so much, but there are a LOT of things you can do on the clientside that some servers might not like.