Help wanted / HowTo: Dedicated hosting - Page 3

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

Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

bibim wrote:Is there a way to make the dedicated server record demos ?
Only possible by hacking the code, but it has low priority atm so I won't do it for now.
bibim wrote:edit: btw, it seems the dedicated server no longer compiles (CGameServer constructor signature changed, but main.cpp hasn't been updated)
Corrected
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

Auswaschbar wrote:
bibim wrote:Is there a way to make the dedicated server record demos ?
Only possible by hacking the code, but it has low priority atm so I won't do it for now.
Ok, it would be a nice feature to add later.
Auswaschbar wrote:
bibim wrote:edit: btw, it seems the dedicated server no longer compiles (CGameServer constructor signature changed, but main.cpp hasn't been updated)
Corrected
Yeah, it seems to work.
Auswaschbar wrote:It would be great if someone could set up a dedicated server in for buildbot.no-ip.org.
Is this still needed ? My autohost is still under development, but I could set up an instance of it with current implemented features on the main lobby server if needed.

edit: I forgot to say, during my LAN tests with your first versions of the dedicated server, I used to have a ping of about 50-150 at start. But now I have 300+ pings, and I have to do the speed trick to fix pings at start...
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

I can run dedicated server svn springie if you want.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Help wanted / HowTo: Dedicated hosting

Post by REVENGE »

So Licho, will Springie be bundled with the dedicated server when it's ready in the next release? [Along with the next Spring release of course]
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Bundled? What you mean?
It can already work with dedicated server, just spring isnt ready and it spams chat message error.
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

I think the real question is: will the dedicated server be tested enough to have a stable state for next Spring release ?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Help wanted / HowTo: Dedicated hosting

Post by imbaczek »

there isn't much to test in this dedicated server, it's basically a repeater with multiple outputs (or a hub, if you like.)
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

Yeah I know. But this doesn't prevent bugs, as you can see in the previous posts of this thread. And it's so easy to change something in Spring and forget to report the change in the dedicated server for example...
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

I modified my autohost to handle the "/<command>" syntax, however the forcestart command seems to be missing... So when I try the dedicated server in "Choose start pos" mode, I can't start the game because the dedicated server doesn't autostart, and the forcestart command doesn't work.

Btw, when we enter an invalid command, the command appears normally, without any warning saying it's an invalid command. Maybe it should be changed ?

edit: actually, even in Fixed start pos mode the dedicated server doesn't seem to autostart :/
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

bibim wrote:I modified my autohost to handle the "/<command>" syntax, however the forcestart command seems to be missing... So when I try the dedicated server in "Choose start pos" mode, I can't start the game because the dedicated server doesn't autostart, and the forcestart command doesn't work.
Please try agein, it should work now.
bibim wrote:Btw, when we enter an invalid command, the command appears normally, without any warning saying it's an invalid command. Maybe it should be changed ?
I once enabled a warning for invalid commands, but I disabled it again because there were far too much warnings.
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

Well it still doesn't seem to work.

Btw, is it normal that even locally, when I hit in the console "/f" then <tab> for completion, I don't see the "forcestart" command ?
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

I've linked my autohost to BuildServ, so if you want you can test by yourself.

Entering "!rebuild linux" in #buildserv channel will rebuild my local Spring linux binaries from SVN repository, including the dedicated server.

Spads is the AutoHost running this dedicated server on main lobby server (password is "aaa"). The start pos mode can be changed by entering "!bset startPosType <n>" (n=0, 1, or 2) in the battle lobby. "!start" can be used to start a game, and "!say <command>" to send something on the autohost interface while in game.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

Could you give me the right to "!say" and "!forceStart" something?


edit1:
can't reproduce, for me its starting fine with the startscripts a lobby would generate (I have attached them)

edit2:
are other commands working (try e.g. "/cheat" or "/nopause")
Attachments
script_kai_dedicated.txt
script for server
(810 Bytes) Downloaded 41 times
script_kai_client.txt
for client
(770 Bytes) Downloaded 28 times
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

Oups sorry, indeed I forgot to lower the "!say" command requirements.
However, the !forceStart command should have worked.

I'm gonna check the startscripts...
Concerning other commands, I tried the kick command and it didn't work neither.
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

Hum, the autohost can't be set as a spectator in the startscript maybe ? It's the only big difference I see with my startscripts...
edit: I fixed the !say rights
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

Here is the server side startscript (Spads is set as a spectator because it's an autohost, so there is only one team):
Attachments
startscript.txt
(821 Bytes) Downloaded 39 times
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

<edit> commands got repaired
Last edited by Auswaschbar on 26 Apr 2008, 00:04, edited 1 time in total.
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

Indeed, but now the server chat messages no longer work :lol:
Something changed in the way to send chat messages on the autohost interface ?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

Now both commands and chat is working. It also autostarts when in choose-startpos-mode.
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

OK nice. There just remains the autostart for "fixed" and "random" startpos modes then.

edit: actually autostart works for all start pos modes, it was just a bug in my autohost :oops:
Post Reply

Return to “Engine”