Help wanted / HowTo: Dedicated hosting - Page 5

Help wanted / HowTo: Dedicated hosting

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Also /kill - can it be done so that it exits clients instead od displaying stats screen?
It would be very usefull for rehosting early - often people are AFK and rehost fails because people failed to close spring and cant join rehosted game.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

Licho wrote:Also /kill - can it be done so that it exits clients instead od displaying stats screen?
It would be very usefull for rehosting early - often people are AFK and rehost fails because people failed to close spring and cant join rehosted game.
No
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Why does it work without dedicated then?
If host exits game before game starts, clients quit instantly..
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Also it seems that dedicated is sending "ready" to autohost even before people select point and click ready
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

Currently, the dedicated server only sends PLAYER_JOINED messages when players manage to get in the game, not when they really connect on the socket. However, when a player timeouts, the dedicated server sends PLAYER_LEFT message. So if the player timeouts at start, without getting in the game, then the autohost receive a PLAYER_LEFT message with an unknown playerId since the PLAYER_JOINED message hasn't been received.
Licho wrote:Also it seems that dedicated is sending "ready" to autohost even before people select point and click ready
Are you sure ? It seems to work for me: the dedicated server sends "PLAYER_READY,<playerId>,0" to set ready status to 0 when player joins, then it sends "PLAYER_READY,<playerId>,1" when player clicks on ready.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

Licho wrote:Why does it work without dedicated then?
If host exits game before game starts, clients quit instantly..
Didn't remember it does this when hosting normal. Will fix it when I have time.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Licho wrote:Also it seems that dedicated is sending "ready" to autohost even before people select point and click ready
Are you sure ? It seems to work for me: the dedicated server sends "PLAYER_READY,<playerId>,0" to set ready status to 0 when player joins, then it sends "PLAYER_READY,<playerId>,1" when player clicks on ready.
This used to work for me up until recent versions.
Note that I run dedicated server without actual map or mod file.
Mephistos
Posts: 50
Joined: 20 Jun 2008, 06:48

Re: Help wanted / HowTo: Dedicated hosting

Post by Mephistos »

bibim wrote:Spads development went in stand-by mode some time ago, due to various reasons (new Lobby server coming, dedicated server no longer compiling with scons, BuildServ evolutions, less free time etc.). I will go back working on it, but not right now. And I don't think it's really a problem for AutoHost owners, since Springie works with dedicated server too.

I'd like to try an alternative to springie that doesn't involve coding in .NET if I need to make changes. This applies to Mono as well.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Licho wrote:
Licho wrote:Also it seems that dedicated is sending "ready" to autohost even before people select point and click ready
Are you sure ? It seems to work for me: the dedicated server sends "PLAYER_READY,<playerId>,0" to set ready status to 0 when player joins, then it sends "PLAYER_READY,<playerId>,1" when player clicks on ready.
This used to work for me up until recent versions.
Note that I run dedicated server without actual map or mod file.
This works, probably some wrong going experiment with dedicated server.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Help wanted / HowTo: Dedicated hosting

Post by very_bad_soldier »

I tried and failed to compile the dedicated server with Debian. I did a complete checkout of the spring-svn from svn://caspring.org:3691/trunk and ran cmake like stated in the first post.
This is what I get:

Code: Select all

nxxs@stan:~/spring/trunk/tools/DedicatedServer$ cmake . && make
CMake Error at CMakeLists.txt:49 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "springserver".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
What am I doing wrong? Thanks in advance!
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

Code: Select all

cd ~/spring/trunk/
cmake .
make spring-dedicated
andre
Posts: 58
Joined: 21 Jun 2008, 04:52

Re: Help wanted / HowTo: Dedicated hosting

Post by andre »

Can you also add a replay-saving feature to the dedicated server (it could also use a cli-argument to enable it if someone doesn't want replays of the dedicated server)
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Yeah, this would be great.
Better yet as a script options.
andre
Posts: 58
Joined: 21 Jun 2008, 04:52

Re: Help wanted / HowTo: Dedicated hosting

Post by andre »

I want ask again for a replay support of the dedicated server.. so it would be possible to generate some statistics for autohosts out of them.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Andre, if you want ingame statistics, its now possible to send data from spring to springie. Its being used by planetwars.

But you need modside support for this (to send you data)
Post Reply

Return to “Engine”