ULX

Author Topic: [non ULX] Lua server problem?  (Read 4350 times)

0 Members and 2 Guests are viewing this topic.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
[non ULX] Lua server problem?
« 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

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: [non ULX] Lua server problem?
« Reply #1 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

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.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: [non ULX] Lua server problem?
« Reply #2 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

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!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: [non ULX] Lua server problem?
« Reply #3 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.
« Last Edit: January 24, 2015, 07:58:58 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: [non ULX] Lua server problem?
« Reply #4 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.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: [non ULX] Lua server problem?
« Reply #5 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.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: [non ULX] Lua server problem?
« Reply #6 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?
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: [non ULX] Lua server problem?
« Reply #7 on: January 25, 2015, 08:37:32 AM »
Ok i will try saving the file then restarting! Thanks!

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: [non ULX] Lua server problem?
« Reply #8 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.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: [non ULX] Lua server problem?
« Reply #9 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: [non ULX] Lua server problem?
« Reply #10 on: January 25, 2015, 04:06:37 PM »
I think gag is handled using the serverside PlayerCanHearPlayersVoice hook so clients couldn't really get around this with clientside lua (unless you know a way I don't).

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: [non ULX] Lua server problem?
« Reply #11 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.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: [non ULX] Lua server problem?
« Reply #12 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...

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: [non ULX] Lua server problem?
« Reply #13 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.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.