I've asked similar questions several time with no luck, but it's a weird topic, and I know Facepunch is a delicate community that doesn't exactly accept stupid questions with open arms. Now believe me, I've literally searched for months on a solution for this, but I have little knowledge of the actual Source SDK, which someone who does might be able to answer my question. I am a developer, just not with anything remotely related to Source or GMod LUA.
To avoid making this over-complicated:
[I]Is it possible to output text from the in-game chat into any sort of log?[/I]
Yes, I am aware of selecting it, copying and pasting, but it's for automation purposes, and that's one hell of a macro to make in C#.
Based on my many late-nights browsing Google, these forums and the Steam forums, I've tried a few different things with no luck:
- Using the -condebug launch option (which I utilize for everything else except chat, but chat isn't actually outputted)
- Using the 'condump' command (much to my dismay, the command was removed in GMod 13, and my feeble appeals through twitter to get Garry to add it back have failed)
- Using log "on" (I don't really get what it outputs, but it doesn't work)
- Using con_log (obviously hasn't existed in GMod for a while, but apparently works in some Source games)
Perhaps if there was a command that would print chat into the developer console as well? Because while the chat shows up in console, the developer console in the corner reveals it doesn't actually show up, just like entered commands. So in the console.log with condebug, all the times where there was a chat message simply shows up as a blank line. Wording that question into a Google query is really awkward and specific, so I've had no luck with that either.
Just to clarify, this is all as a client, not a server. I don't run a server, and I definitely don't know how. If you're still reading, and wondering what I would possibly want with getting this question solved, here's my irrelevant background story: I'm an admin on Noobonic. For the last year I've been developing a project designed at logging all events on the server and making statistics. Prior to GMod 13, this could be done easily with a condump file. Right now I have a dedicated machine and a dedicated account with a little bot coded in C# to interact with the game and upload the console.log a webserver where PHP goes to town and logs everything with MySQL. With everything except chat, it works marvelously. Unfortunately the server owners is notorious for being proprietary with his code and not wanting to work with anyone. So he's happy to have me have a bot waste a slot on the server to log things, but not give access to anything else. But he's a character. Anyways, if anyone has any idea how to do this, I will- I don't know. Be immensely happy, thank you profusely and mail you a thank you card with a picture of me.
Anyways, I know 95% of people who read this will have no idea what any of this is about, and it doesn't exactly fit into other categories (if it does, I'm truly sorry). But thank you very, very much in advance.
EDIT: Okay, well to contradict the part where I said a macro isn't feasible- I lied. I've integrated a macro into the program to copy the chat text and do whatever in under .25 seconds, so it'll do.
Sorry, you need to Log In to post a reply to this thread.