iamgreaser / iceball

Open-source rewrite of the VOXLAP version of Ace of Spades.
http://iceball.build
GNU General Public License v3.0
114 stars 32 forks source link

Remote control system #101

Open rakiru opened 9 years ago

rakiru commented 9 years ago

Related to #87, but this is a possible alternative, at least for now. Whether it be IRC, an RCON server, or something else, some form of remote control of the server should be implemented. Something other than IRC may be easier, as a full IRC client in Lua doesn't seem to exist (or at least, didn't when we last looked), and I can always write an Ultros plugin to hook it up to IRC anyway. ;)

iamgreaser commented 9 years ago

I recall writing a Lua IRC bot once... there was a thin C layer but the bulk of it was Lua. It was called CallBot and was used to sneakily transfer people from one IRC network to another because the network we were on was run by nenolod and he decided "no you are not allowed to move".

I may have lost it entirely, though - this was back around 2008 or something.

It's doable and I think I might start on it.

...and I left this comment lying around and now we have an IRC bot in the works. You can't send commands to it yet, but you can keep an eye on things.

dany-on-demand commented 9 years ago

A web panel interface would be even better. Maybe add a layer of abstraction, expose remote control functions, and then plug the irc bot/later web panel interface there?

rakiru commented 9 years ago

Hell no to a web panel, at least not as the base layer. As for the "remote control functions", that's what this ticket is for. I only mentioned IRC since that's something that server owners would probably want anyway. I guess the basic bot we have now works as a stop-gap at least.

rakiru commented 9 years ago

Deja vu didn't kick in: #88

rakiru commented 9 years ago

87 was closed pointing to this one, so I'll close #88 and do the same.

dany-on-demand commented 9 years ago

OK so I said web panel because people who offer ready-made game servers use them. Being noob friendly to possible server admins is good.

There's also other pros to web panels, but I'm not saying it's a particularly important matter. But yeah a server control API is the best.

rakiru commented 9 years ago

No need to repeat yourself. We've already had this discussion in the other ticket. Hardcoding a web panel is really inflexible, and fucking pointless if we're going to implement some sort of control API anyway.

dany-on-demand commented 9 years ago

Sorry I don't understand what you mean, but fine. Server admins can probably just do it themselves if they really wanted to. If they have a remote control api of course.

rakiru commented 9 years ago

Wtf are you talking about? I didn't say we couldn't write a web panel. I'm saying it's fucking pointless to write an entire webserver inside the game, then a web panel in that, when we're going to have a remote control API anyway, that an external web panel could use, like any other sensible game/web panel does.

dany-on-demand commented 9 years ago

oooh yeah but that's exactly what I had in mind :)

iamgreaser commented 9 years ago

IRC bot now accepts commands. Really tempted to close this one right now - I know it doesn't check if the person dishing out the commands is an oper, but I'm pretty sure it doesn't accept shit from PMs.