Page 1 of 1
Now Playing (tm)
Posted: 14 Mar 2010, 15:51
by Auswaschbar
preliminary note: needs development version of spring to work
On game start, prints a nice message of type
[15:53:06] * Auswaschbar2 is now playing a 1v1 of Balanced Annihilation V7.13 on Severnaya_Industrial_v96
in one (or more) lobby channel(s) of your choice.
terminatory note: you can only be logged in in lobby once, so it will fail if you give your account and are still logged in with the lobby
Re: Now Playing (tm)
Posted: 14 Mar 2010, 16:42
by zwzsg
As if we hadn't enough spam from bots, scripts, and autohosts.
Re: Now Playing (tm)
Posted: 15 Mar 2010, 00:38
by aegis
how does this work at a lower level?
Re: Now Playing (tm)
Posted: 15 Mar 2010, 00:50
by Satirik
Auswaschbar wrote:preliminary note: needs development version of spring to work
On game start, prints a nice message of type
[15:53:06] * Auswaschbar2 is now playing a 1v1 of Balanced Annihilation V7.13 on Severnaya_Industrial_v96
in one (or more) lobby channel(s) of your choice.
terminatory note: you can only be logged in in lobby once, so it will fail if you give your account and are still logged in with the lobby
i guess it is given as an example of what can be done
Re: Now Playing (tm)
Posted: 15 Mar 2010, 01:05
by aegis
oh, checked the source. C++? I wanted luasockets
guess I can use my uberserver stub to fake it anywho :D
Re: Now Playing (tm)
Posted: 15 Mar 2010, 03:48
by JohannesH
Which do you consider more fun, spamming #main with bots or in person?
Re: Now Playing (tm)
Posted: 15 Mar 2010, 03:51
by Tribulex
bots are fun. you can flood epically :D then get banned but make a new bot!
Re: Now Playing (tm)
Posted: 15 Mar 2010, 03:54
by zwzsg
So widgets can now send messages to lobby. But how do they receive messages from lobby channels? Then anyway, while I had to wrote a mini single player skirmish generator, I'm not sure I really want to write a multiplayer lobby.
No #? How will we join battlerooms if channels names are autoprefixed by #?
Re: Now Playing (tm)
Posted: 15 Mar 2010, 04:55
by aegis
channels aren't prefixed by #, the actual protocol to join sy sent by the lobby is "JOIN sy"
and battlerooms are a completely different command, "JOINBATTLE battleNumber"
Re: Now Playing (tm)
Posted: 15 Mar 2010, 09:30
by zwzsg
Ah ok, got confused with bibim IRC bridge, thanks for the clarification.
Re: Now Playing (tm)
Posted: 15 Mar 2010, 11:12
by Auswaschbar
For receiving messages, you first need to join a channel, and have at least one of the following functions implemented:
Code: Select all
function LuaLobby:SaidEx(channel, user, message)
Echo("["..channel.."] "..user.." " .. message);
end
Code: Select all
function LuaLobby:Said(channel, user, message)
Echo("["..channel.."]<"..user..">: " .. message);
end
Code: Select all
function LuaLobby:SaidPrivate(user, message)
Echo("<"..user..">: " .. message);
end
SaidEx is the "/me" style IRC command btw.
Re: Now Playing (tm)
Posted: 15 Mar 2010, 14:31
by Tribulex
cool now we never even need to close spring! We can make a lobby client in lua, and just restart spring for each game!