Host Battle :: tasclient, springlobby, notalobby

Host Battle :: tasclient, springlobby, notalobby

Moderators: Moderators, Lobby Developers

Post Reply
User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Host Battle :: tasclient, springlobby, notalobby

Post 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
Attachments
IMG_10122012_142721.png
IMG_10122012_142721.png (12.06 KiB) Viewed 2420 times
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: Host Battle :: tasclient, springlobby, notalobby

Post by dansan »

You have to use a relay for that to work.
User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: Host Battle :: tasclient, springlobby, notalobby

Post by danil_kalina »

dansan wrote:You have to use a relay for that to work.
How autohosts work then ?
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Host Battle :: tasclient, springlobby, notalobby

Post 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)
User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: Host Battle :: tasclient, springlobby, notalobby

Post 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.
Post Reply

Return to “SpringLobby Client”