Page 1 of 1

Host Battle :: tasclient, springlobby, notalobby

Posted: 10 Dec 2012, 12:51
by danil_kalina
We are making "Host a Game" in notalobby, but meet some difficulties:
users can't rejoin to a game

I host battle in springlobby.
Users join my battle.
Battle started. Everyone connected.
We are playing.
Some new player wants to join our battle, he joins, then tries to connect to Spring and gets a message: your password is not correct.
if someone from our battle had a crash, tries to connect to us again and gets the same message: your password is not correct.

PROTOCOL:
JOINBATTLE battleID [password] [scriptPassword] Source: client
Description
Sent by a client trying to join a battle. The password is an optional parameter.
battleID
password
scriptPassword: A random, client-generated string, wich will be written to script.txt by the host, to avoid account spoofing (= someone is trying to join the battle under a wrong user-name). If set, the password has to be set too, even if it is empty

hmmm, it seems that my problem is in "random, client-generated string". spoofing ??? how could I connect to SpringBattle using wrong user name.

tasclient for that situation has an option:
Enable mid game (re) join.

How is this working ?

Image

Re: Host Battle :: tasclient, springlobby, notalobby

Posted: 10 Dec 2012, 13:09
by dansan
You have to use a relay for that to work.

Re: Host Battle :: tasclient, springlobby, notalobby

Posted: 10 Dec 2012, 14:15
by danil_kalina
dansan wrote:You have to use a relay for that to work.
How autohosts work then ?

Re: Host Battle :: tasclient, springlobby, notalobby

Posted: 11 Dec 2012, 18:18
by Satirik
when a user joins your hosted battle, you need to tell spring the user password, you can communicate with spring through a specified port (check tasclient's hosting script to see what it is) then you can just send messages to spring, and there is a command (can't remember what it is) to notify spring the new user's password (something like /adduser user password)

Re: Host Battle :: tasclient, springlobby, notalobby

Posted: 13 Dec 2012, 18:05
by danil_kalina
Satirik wrote:when a user joins your hosted battle, you need to tell spring the user password, you can communicate with spring through a specified port (check tasclient's hosting script to see what it is) then you can just send messages to spring, and there is a command (can't remember what it is) to notify spring the new user's password (something like /adduser user password)
Thanks! What is NAT traversal mean for a lobby ?
there are three options: None, Hole Punching, Fixed Source ports.

Re: Host Battle :: tasclient, springlobby, notalobby

Posted: 04 Jan 2013, 07:30
by abma