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 ?
Host Battle :: tasclient, springlobby, notalobby
Moderators: Moderators, Lobby Developers
- danil_kalina
- Posts: 505
- Joined: 08 Feb 2010, 22:21
Host Battle :: tasclient, springlobby, notalobby
- Attachments
-
- IMG_10122012_142721.png (12.06 KiB) Viewed 2420 times
Re: Host Battle :: tasclient, springlobby, notalobby
You have to use a relay for that to work.
- danil_kalina
- Posts: 505
- Joined: 08 Feb 2010, 22:21
Re: Host Battle :: tasclient, springlobby, notalobby
How autohosts work then ?dansan wrote:You have to use a relay for that to work.
Re: Host Battle :: tasclient, springlobby, notalobby
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)
- danil_kalina
- Posts: 505
- Joined: 08 Feb 2010, 22:21
Re: Host Battle :: tasclient, springlobby, notalobby
Thanks! What is NAT traversal mean for a lobby ?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)
there are three options: None, Hole Punching, Fixed Source ports.