General > Off-Topic

Fun with lua_socket

(1/4) > >>

MrPresident:
So.. I discovered this awesome addon on facepunch last night called luasocket. It's winsock for lua.

Also.. just so happened that Id had lots of experience with sockets from VB.

So, I started a new project that I dub... GMSW (Garrysmod Server Watch)
HLSW is great.. but one thing that always bothered me about it was that (since it was not designed for gmod specifically) certain things that I would like to have access to were not sent to the log it retrieves. things such as prop spawning and such.

I already have a server program I made in VB that listens for connections from GMod lua_socket and I wrote a few hooks (prop spawning, chatting, disconnecting and connecting) and it sends this information to all people who have GMSW connected to the garrysmod server. Doesn't look as pretty as HLSW and I still havn't figured out how to quite receive data the OTHER WAY... so all it can do right now is receive data from the game and display it on the clients screens.

Work in progress.. if anyone is interested, I can post some source code or whatnot... keep in mind, however, this wouldn't run OOB.. you'd need lua_socket installed and working on your server.


Also.. planned features..
-Ability for users on the server to do a console/chat command to send a message to all users connected to the GMSW program. used as like.. a report/contact tool. (ex. !report Hey Pres, I need you to check out the server, someone is spamming) and then that would make the program on my computer play an alarm(or something most likely configurable) and do a popup window with the message. I realize the potential for abuse.. but I'll probably include some sort of safeguard.. such as a warning to all players who use it warning then that abuse will result in a ban or something.. and also probably restrict them to 1 report an hour or something along those lines.

JamminR:
Yeah, with lua_socket, the bounds are pretty limitless.
SpBogie offered some editing of the code to get some of it's http, ftp and other modules working I think.
At least I think he contributed.

Have you seen the 3d IRC client in FP releases that uses lua_socket?
I've not downloaded or played with it any, but the screen shots looked great.

Chironex:
Nice MrPresident. If you want testers, count me in :D. I was making something like that, but it was using ShellPipes and didn't worked very good..so i dropped the project.

Megiddo:
Ohhh neato

MrPresident:
One of the highlights...

Dual server monitoring... so far I only have the chat fully functional. Notice how it is also color coded. This gets the colors directly from UTeam! =)

Navigation

[0] Message Index

[#] Next page

Go to full version