• Questions about client side lua being ran
    45 replies, posted
[QUOTE=AnonTakesOver;45364244]What happens if code is running in the menu and you join a server? Does it all get cancelled? [editline]12th July 2014[/editline] Also, I didn't know that there was a third one, I thought it was just serverside and clientside. I was wrong, sorry codingale for misinformation. You learn something new everyday[/QUOTE] Menu-state lua does not stop. You can use it all you want while in game, but the only way to interact with the game via menu-state lua is console commands. So, like I said, the most you can do is make an unblockable chat spammer as I personally do not know what you could do with RCC and the Tick hook in menu-state. Nothing from the client-state is available to you.
[QUOTE=zerothefallen;45368530]Menu-state lua does not stop. You can use it all you want while in game, but the only way to interact with the game via menu-state lua is console commands. So, like I said, the most you can do is make an unblockable chat spammer as I personally do not know what you could do with RCC and the Tick hook in menu-state. Nothing from the client-state is available to you.[/QUOTE] How could one make this into a chat logger, I'd prefer not to be rude. Also off topic I love your avatar. I could log the console but I'd wish to get the chat only as the newest Garry's Mod (for me) is showing tons a messages that are on a debug level or something similar.
[QUOTE=Codingale;45371203]How could one make this into a chat logger, I'd prefer not to be rude. Also off topic I love your avatar. I could log the console but I'd wish to get the chat only as the newest Garry's Mod (for me) is showing tons a messages that are on a debug level or something similar.[/QUOTE] [QUOTE=wh1t3rabbit;45324448]There is a setting on servers called sv_allowcslua. If the server has it set it 1, you as a client can load and run any clientside scripts you want (with the lua_openscript_cl command). If it is set to 0, you cannot use the lua_openscript_cl command, and this would usually mean you cannot run your own lua.[/QUOTE]
I've moved past that, I'm looking for a new thing how could log it, would the menu lua act like CL lua or?
[QUOTE=Codingale;45371985]I've moved past that, I'm looking for a new thing how could log it, would the menu lua act like CL lua or?[/QUOTE] You would have to make a parser that would go through all console text, and look for lines that MIGHT be chat. Honestly, it would be faster just to copy everything into a text file and go through it yourself than to have a really inaccurate logger.
Since HeX's AC is almost done with and I could care less about this method anymore (I used to use this for hacks) There is a function in menu state. It's super "secret" and can run any lua on the clientstate. It's name is RunOnClient. This would render clientside bypassers useless and can be used in combination with IsInGame(). You could technically do anything in clientside state whenever you want. @_Kilburn & @garry & @whoever else works on gmod This is your game. Do what you wish with this. You can patch this if you want, I don't believe it is ever used in default garry's mod. [editline]13th July 2014[/editline] Also, you can use a concommand created in menu state to communicate client -> [didn'tmeanthis]server[/didn'tmeanthis] menu.
[QUOTE=MeepDarknessM;45372074]Since HeX's AC is almost done with and I could care less about this method anymore (I used to use this for hacks) There is a function in menu state. It's super "secret" and can run any lua on the clientstate. It's name is [b]RunOnClient[/b]. This would render clientside bypassers useless and can be used in combination with IsInGame(). You could technically do anything in clientside state whenever you want. @_Kilburn & @garry & @whoever else works on gmod This is your game. Do what you wish with this. You can patch this if you want, I don't believe it is ever used in default garry's mod.[/QUOTE] This has already been removed :v:. Nice try though!
[QUOTE=Willox;45372086]This has already been removed :v:. Nice try though![/QUOTE] lame :rolleyes:
[QUOTE=MeepDarknessM;45372074] Also, you can use a concommand created in menu state to communicate client -> server.[/QUOTE] only with RCC tho
So what would be the best method to log the whole console? I just need anything that can be ran across servers easily. Any help is very, very appreciated. [QUOTE=code_gs;45372042]You would have to make a parser that would go through all console text, and look for lines that MIGHT be chat. Honestly, it would be faster just to copy everything into a text file and go through it yourself than to have a really inaccurate logger.[/QUOTE] So that would be bad I know but I was wondering of there was something else. Thanks.
[QUOTE=Codingale;45381921]So what would be the best method to log the whole console? I just need anything that can be ran across servers easily. Any help is very, very appreciated. So that would be bad I know but I was wondering of there was something else. Thanks.[/QUOTE] How long is the history of console shown? if console keeps all history, just before you quit GMod do Ctrl + A to copy everything, paste it to a text document, you could easily convert that to a chat log, for example, if the chat has a special prefix or something unique to a console log, you could write a program to filter it.
[QUOTE=AnonTakesOver;45381971]How long is the history of console shown? if console keeps all history, just before you quit GMod do Ctrl + A to copy everything, paste it to a text document, you could easily convert that to a chat log, for example, if the chat has a special prefix or something unique to a console log, you could write a program to filter it.[/QUOTE] [QUOTE=developer.valvesoftware.com]Tip: The console only displays 241 lines at a time.[/QUOTE] Link: [url]http://developer.valvesoftware.com/wiki/Developer_Console[/url] So yeah, they don't log everything just the last 241 errors/messages, so me starting playing on some servers with bad code yields at least 200 errors per second.. Ctrl+A in some chat systems doesn't work, I've tried. Not sure about the native chat though.
Bump, I'd like to know if I could hook in and save all of the console now, I need every line that's printed onto it. If anyone could help that'd be very, very nice of you, or if you could point me to something I can try to do it myself.
Pretty sure you can just put -condebug in your startup parameters and it will save a log file.
[QUOTE=code_gs;45396438]Pretty sure you can just put -condebug in your startup parameters and it will save a log file.[/QUOTE] I shall try this but for now I have to move and can't for a while. If I don't reply for a while I'm just moving.
[QUOTE=code_gs;45396438]Pretty sure you can just put -condebug in your startup parameters and it will save a log file.[/QUOTE] I tested that, it doesn't log chat.
Sorry, you need to Log In to post a reply to this thread.