View topic - SPADS AutoHost beta release



All times are UTC + 1 hour


Post new topic Reply to topic  [ 509 posts ]  Go to page Previous  1 ... 14, 15, 16, 17, 18, 19, 20 ... 26  Next
Author Message
PostPosted: 24 May 2011, 17:32 
Lobby Developer

Joined: 06 Dec 2007, 11:12
Pithikos wrote:
I noticed also that there is a file helpSettings.dat in the spads folder. At first I thought it was just a data file but then I opened it and it has all the documentation obviously.
It is a data file, just in a human readable format. This data file is used by SPADS to generate answers to !help commands, and to generate the HTML help if launched with "--doc" parameter (much more readable than the .dat file).

Pithikos wrote:
So just wanted to suggest that you add a README.txt so it's easier for people to know where to look for help 8)

The "official" place for SPADS commands/settings help is indicated in the original post of this thread:
bibim wrote:
all settings are described here


Top
 Offline Profile  
 
PostPosted: 24 May 2011, 19:47 

Joined: 24 May 2011, 05:15
One last question that I know might seem retarded. Do I need to open a UDP port, and if so, how? I'm directly connected to my router.


Top
 Offline Profile  
 
PostPosted: 24 May 2011, 22:49 
Lobby Developer

Joined: 06 Dec 2007, 11:12
Yes, UDP port 8452 (if you didn't change default SPADS configuration).


Top
 Offline Profile  
 
PostPosted: 04 Jun 2011, 22:08 
User avatar

Joined: 26 Dec 2008, 14:26
Location: Sweden
I was wondering about something. Is it possible to host multiple battles at the same time under the same process? So running "spads.pl" would open 2 or more battles instead of one so to speak(with different mods).


Top
 Offline Profile  
 
PostPosted: 07 Jun 2011, 10:29 
Lobby Developer

Joined: 06 Dec 2007, 11:12
Pithikos wrote:
I was wondering about something. Is it possible to host multiple battles at the same time under the same process? So running "spads.pl" would open 2 or more battles instead of one so to speak(with different mods).

No, you can't host multiple battles at the same time with only one SPADS process. However, you can launch SPADS several times from the same installation directory, so you don't need to install it several times just to host multiple battles.


Top
 Offline Profile  
 
PostPosted: 09 Jun 2011, 01:19 

Joined: 30 Jul 2009, 18:33
hi

Code:
$  ./spads.pl /home/spads/spads/etc/spads.conf
NOTICE   - [SPADS] Initializing SPADS
LogOutput initialized.
Spring 0.82.7.1 (Headless Unitsync)
Build date/time: Jun  9 2011 01:13:18
Available log subsystems: VFS-detail, VFS, ArchiveScanner, unitsync
Enabled log subsystems: unitsync
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
  Use "none" to disable the default log subsystems.
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
[unitsync] loaded, 0.82.7.1 (Headless Unitsync)
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
[unitsync] initialized, 0.82.7.1 (Headless Unitsync)
[unitsync] joining
[unitsync] removing all archives
[unitsync] get map info: DeltaSiegeDry
[unitsync]   startpos: 863, 803
[unitsync]   startpos: 9544, 755
[unitsync]   startpos: 455, 4760
[unitsync]   startpos: 9856, 4700
[unitsync]   startpos: 683, 2062
[unitsync]   startpos: 9420, 2074
[unitsync]   startpos: 515, 3441
[unitsync]   startpos: 9850, 3000
[unitsync]   startpos: 2530, 4680
[unitsync]   startpos: 7925, 4512
error = 2, MapOptions.lua, error = 2, maphelper/mapinfo.lua, [string "maphelper/mapinfo.lua"]:69: DeltaSiegeDry: missing file

[unitsync] error: GetMapOptionCount: luaParser.Execute() failed: error = 2, maphelper/mapinfo.lua, [string "maphelper/mapinfo.lua"]:69: DeltaSiegeDry: missing file
[unitsync] removing all archives
[unitsync] deinitialized
WARNING  - [SPADS] The lobby account currently used by SPADS is not tagged as bot. It is recommended to ask a lobby administrator for bot flag on accounts used by SPADS
If you find any errors, report them to mantis or the forums.

LogOutput initialized.
Spring 0.82.7.1 (Headless)
Build date/time: Jun  9 2011 01:38:50
Available log subsystems: VFS-detail, VFS, ArchiveScanner,
Enabled log subsystems:
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
  Use "none" to disable the default log subsystems.
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
Loading script from file: /home/spads/spads/var/startscript.txt
Starting server...
Binding UDP socket to IP (v6) :: Port 8452
[UDPListener] succesfully bound socket on port 8452
Connecting to autohost on port 8454
Server started on port 8452
No clients connected, shutting down server



I have the server and start listening, all the defaults.
I tested without firwall (iptables is clean)
any client can connect to this, why?

french: (original texte)
J'ai bien le serveur d├®marrer et en ├®coute ,toute les valeur par d├®fauts.
j'ai tester sans firwall (iptables is clean)
aucun client n'arrive a ce connecter , pourquoi ?


Top
 Offline Profile  
 
PostPosted: 09 Jun 2011, 01:45 
Spring Developer

Joined: 31 May 2009, 23:08
Quote:
Binding UDP socket to IP (v6) :: Port 8452

disable ipv6 should help... spring-dedicated seems to use ipv6:

viewtopic.php?t=23884&p=450796
viewtopic.php?f=11&t=21223

i'm unsure if already an other solution exists...


Top
 Offline Profile  
 
PostPosted: 09 Jun 2011, 09:04 
Lobby Developer

Joined: 06 Dec 2007, 11:12
abma wrote:
i'm unsure if already an other solution exists...

Not really, unfortunately.

HostIP=xxx.xxx.xxx.xxx; // (optional) which IP to host on. omit or use an empty value to host on any local IP.

// == IP Support ==
// IP properties accept:
// - IP v4 addresses like 127.0.0.1 or 123.123.123.123
// - IP v6 addresses like :: or fe80::1
// - NO host-names

The type of socket is chosen according to "HostIP" startscript setting, but most servers have both LAN and WAN interfaces, and must open sockets on both interfaces so that both Internet and LAN players can connect. So the "HostIP" setting must be omitted, and in this case, it seems Spring chooses to use IPv6 if available.


Top
 Offline Profile  
 
PostPosted: 09 Jun 2011, 11:46 

Joined: 30 Jul 2009, 18:33
abma wrote:
Quote:
Binding UDP socket to IP (v6) :: Port 8452

disable ipv6 should help... spring-dedicated seems to use ipv6:

viewtopic.php?t=23884&p=450796
viewtopic.php?f=11&t=21223

i'm unsure if already an other solution exists...

the server supports IPv6, which will become the norm. Thank you for your answer


Top
 Offline Profile  
 
PostPosted: 09 Jun 2011, 11:49 

Joined: 30 Jul 2009, 18:33
bibim wrote:
abma wrote:
i'm unsure if already an other solution exists...

Not really, unfortunately.

HostIP=xxx.xxx.xxx.xxx; // (optional) which IP to host on. omit or use an empty value to host on any local IP.

// == IP Support ==
// IP properties accept:
// - IP v4 addresses like 127.0.0.1 or 123.123.123.123
// - IP v6 addresses like :: or fe80::1
// - NO host-names

The type of socket is chosen according to "HostIP" startscript setting, but most servers have both LAN and WAN interfaces, and must open sockets on both interfaces so that both Internet and LAN players can connect. So the "HostIP" setting must be omitted, and in this case, it seems Spring chooses to use IPv6 if available.

Thank you for your response, may or must I bring this change (file, syntax), the server is a linux server debian squeez
Thank you in advance


Top
 Offline Profile  
 
PostPosted: 09 Jun 2011, 13:49 
Lobby Developer

Joined: 06 Dec 2007, 11:12
snipe: the "HostIP" setting is defined in the startscript, which is a file generated by the autohost each time a new game starts.

I was just explaining that there is no easy way to force spring-dedicated to use IPv4, because if we provide the "HostIP" setting in the startscript then spring-dedicated won't listen on all interfaces.


Top
 Offline Profile  
 
PostPosted: 09 Jun 2011, 18:42 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
if i am not mistaken, using "0.0.0.0" (INADDR_ANY) should have the desired effect. The equivalent for IPv6 is "::".
These are called the any-address, and allow incoming connections through all available external IPs (of the same IP protocol version).
Please report back if you tested and this does not work.

If it is true, i will include this info in the documentation you pointed too.


Top
 Offline Profile  
 
PostPosted: 09 Jun 2011, 21:18 

Joined: 30 Jul 2009, 18:33
hoijui wrote:
if i am not mistaken, using "0.0.0.0" (INADDR_ANY) should have the desired effect. The equivalent for IPv6 is "::".
These are called the any-address, and allow incoming connections through all available external IPs (of the same IP protocol version).
Please report back if you tested and this does not work.

If it is true, i will include this info in the documentation you pointed too.


I may I want to try your solution.
May I do it how?
In the file spads.conf ?

bibim:
I understood that the problem seems to come from the communication between these two interfaces.


fr:
mai je je veux bien essayer ta solution.
mai je procède comment ?
Dans le fichier spads.conf

bibim
j'ai bien compris que le souci semble venir de là communication entre ces deux interfaces


Top
 Offline Profile  
 
PostPosted: 10 Jun 2011, 09:33 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
:D
yeah of course, just try... nothing will explode if it does not work.


Top
 Offline Profile  
 
PostPosted: 10 Jun 2011, 18:54 

Joined: 30 Jul 2009, 18:33
so

im modifier ,

iptraf, paquet client is received, and after stop server. :
Code:
UDP (71 bytes) from 127.0.0.1:38834 to 127.0.0.1:8454 on lo                                                                                                              Ôöé
Ôöé UDP (29 bytes) from 127.0.0.1:38834 to 127.0.0.1:8454 on lo

netstat
Code:
udp        0      0 127.0.0.1:47983         127.0.0.1:8454          ESTABLISHED 1008       47927       23123/spring-dedica
udp6       0      0 :::8452                 :::*                                1008       47925       23123/spring-dedica


no news info:
Code:
LogOutput initialized.
Spring 0.82.7.1 (Headless Unitsync)
Build date/time: Jun  9 2011 01:13:18
Available log subsystems: VFS-detail, VFS, ArchiveScanner, unitsync
Enabled log subsystems: unitsync
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
  Use "none" to disable the default log subsystems.
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
[unitsync] loaded, 0.82.7.1 (Headless Unitsync)
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
[unitsync] initialized, 0.82.7.1 (Headless Unitsync)
[unitsync] joining
[unitsync] removing all archives
[unitsync] deinitialized
WARNING  - [SPADS] The lobby account currently used by SPADS is not tagged as bot. It is recommended to ask a lobby administrator for bot flag on accounts used by SPADS
If you find any errors, report them to mantis or the forums.

LogOutput initialized.
Spring 0.82.7.1 (Headless)
Build date/time: Jun  9 2011 01:38:50
Available log subsystems: VFS-detail, VFS, ArchiveScanner,
Enabled log subsystems:
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
  Use "none" to disable the default log subsystems.
Using read-write data directory: /home/spads/.spring/
Using read-only data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/spads/.spring/maps
Scanning: /home/spads/.spring/mods
Loading script from file: /home/spads/spads/var/startscript.txt
Starting server...
Binding UDP socket to IP (v6) :: Port 8452
[UDPListener] succesfully bound socket on port 8452
Connecting to autohost on port 8454
Server started on port 8452
No clients connected, shutting down server
If you find any errors, report them to mantis or the forums.

spads.conf
Code:
# Local network configuration
localLanIp:
IP v6 fe80::1
IP v4 127.0.0.1
autoHostPort:8454


or
Code:
# Local network configuration
localLanIp:
127.0.0.1
autoHostPort:8454


no effect ?
tanks for advances


Top
 Offline Profile  
 
PostPosted: 10 Jun 2011, 23:28 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
you should be testing 0.0.0.0


Top
 Offline Profile  
 
PostPosted: 11 Jun 2011, 00:12 

Joined: 30 Jul 2009, 18:33
hoijui wrote:
you should be testing 0.0.0.0


no ,one other idea?


Top
 Offline Profile  
 
PostPosted: 11 Jun 2011, 08:49 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
you want to say, you tested with that, and were not able to connect through any of the interfaces of the machine?


Top
 Offline Profile  
 
PostPosted: 12 Jun 2011, 04:33 

Joined: 30 Jul 2009, 18:33
hoijui wrote:
you want to say, you tested with that, and were not able to connect through any of the interfaces of the machine?


so the result is negative. May I only eth0 and lo?
call of duty word at this ware technically had the player connected.
Nexuiz is not a problem.


we do not see what's going on when it connects sure the interface (server) there is a parameter that could be put in the spads.conf to better see what it does?
(ex: server -verbose) ?


fr
oui le resulta est negatif. mai j'ai seulment eth0 et lo ?
call of duty word at ware peuve les joueur ce connecter.
nexiuz ne pose pas de probleme.

on ne vois pas ce qu'il ce passe quand il ce connecte sure les interface (serveur) il y a un paramètre que l'on pourrait mettre dans le spads.conf pour mieux voir ce qu'il fait ?


Top
 Offline Profile  
 
PostPosted: 12 Jun 2011, 11:16 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
hehe :D
your french seems to be as buggy as your english :D

the connecting parts is purely within spring, not SPADS, and there is no -verbose switch there. even if, it could not log connection attempts at interfaces/IPs it has not a socket opened for at.

so... i guess someone (me) should do tests with spring opened at address 0.0.0.0 then, somewhen. you may follow this:
http://springrts.com/mantis/view.php?id=2468


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 509 posts ]  Go to page Previous  1 ... 14, 15, 16, 17, 18, 19, 20 ... 26  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.