Help wanted / HowTo: Dedicated hosting - Page 2

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 »

Thats not a problem imo.. in fact I have test code already prepared in springie (it will force anyway once status is "determined" for each player - either left or readied).
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

The server will now autostart and ignore the nonexistent spectator.

Please note updated OP
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

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

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Can someone please provide compiled binary for windows? I don't have stuff setup for spring compiling now..
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Help wanted / HowTo: Dedicated hosting

Post by imbaczek »

it was surprisingly hard to compile it, had to change all libraries to static or there would be insane linker errors. patch (requires cleanup) attached, also includes required library renames. SDL didn't work out at all, had to copy libSDL.dll.a to libSDL.a.

uploaded executable and modified files to http://imbaczek.neoteric.pl/spring/dedicated - didn't even test if it runs.
Attachments
dedicated_compile_mingw_native.diff.txt
(4.19 KiB) Downloaded 135 times
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Great, many thanks :)
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

imbaczek wrote:it was surprisingly hard to compile it, had to change all libraries to static or there would be insane linker errors. patch (requires cleanup) attached, also includes required library renames. SDL didn't work out at all, had to copy libSDL.dll.a to libSDL.a.
Congrats, I tried it yesterday and don't get past the linker errors. I will try to modify the CMakeList in trunk to get it compile on both win and linux.
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

I believe you forgot to update the dedicated server for the AutohostPort parameter in start script. I had to add the following line in the GameSetup.cpp file of the dedicated server to have a functional AutoHost interface:

file.GetDef(autohostport, "0", "GAME\\AutohostPort");
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

I'm sorry, I have forgotten to update it, however it should now work.

Updated windows binary is here:
http://people.freenet.de/auswaschbar/Dedicated.7z
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Is there any place to get base files for spring 76b2 too?
I can get svn spring executable but dedicated.exe still crashes
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Re: Help wanted / HowTo: Dedicated hosting

Post by LordMatt »

What do you mean base files? To my knowledge the files in /base have not changed.
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

Yeah what do you mean by "base files for spring 76b2" ?

Here are springcontent.sdz and bitmaps.sdz files of current Spring 76b1+ (R5523) if it can help:
http://planetspring.free.fr/springBaseR5523.tar
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

Licho wrote:Is there any place to get base files for spring 76b2 too?
I can get svn spring executable but dedicated.exe still crashes
What do you mean by crashes? Please give details...

And be aware that dedicated server won't run with 0.76b1
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Well what I need to run this dedicated.exe under windows? I tried simply putting it to spring directory and getting spring.exe from svn, but it keeps crashing.

I thought it might be missing some files..

It keeps crashing for me even now ..
Has anyone succeeded starting dedicated under win32?

"Crash" message is:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Help wanted / HowTo: Dedicated hosting

Post by Auswaschbar »

It <edit>doesn't</edit> works for me in Windows XP SP2 and in Wine.
If you didn't do this already, try to run it from the console and see if there is any output.

Edit2:
This crashes were caused by unhandled exceptions. I hacked in a catch-block which now prints the error message.

Updated binaries (in self-extracting archive) are here: http://people.freenet.de/auswaschbar/server.exe
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Ok thx, this one works :) It was socket binding error.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Help wanted / HowTo: Dedicated hosting

Post by Licho »

Ok finally got chance to get this tested .. works fine with springie :)
Finally I can do stuff like autoforce if people are ready or disconnected and reliable chat between lobby and game!

Once next spring is released I will also make gui-less springie for linux or windows boxes with no gfx card.
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

Auswaschbar wrote:The server will now autostart and ignore the nonexistent spectator.
It doesn't seem to work when in "Choose start pos" mode.
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

At game start, when a client connects to dedicated server then disconnects just after, dedicated server crashes and produces following error:

dedicated: /usr/include/boost/scoped_ptr.hpp:94: T* boost::scoped_ptr<T>::operator->() const [with T = GameParticipant]: Assertion `ptr != 0' failed.
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Help wanted / HowTo: Dedicated hosting

Post by bibim »

Is there a way to make the dedicated server record demos ?

edit: btw, it seems the dedicated server no longer compiles (CGameServer constructor signature changed, but main.cpp hasn't been updated)
Post Reply

Return to “Engine”