Help wanted / HowTo: Dedicated hosting
Moderator: Moderators
Re: Help wanted / HowTo: Dedicated hosting
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).
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Help wanted / HowTo: Dedicated hosting
The server will now autostart and ignore the nonexistent spectator.
Please note updated OP
Please note updated OP
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Help wanted / HowTo: Dedicated hosting
wrong button...
Re: Help wanted / HowTo: Dedicated hosting
Can someone please provide compiled binary for windows? I don't have stuff setup for spring compiling now..
Re: Help wanted / HowTo: Dedicated hosting
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.
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
Re: Help wanted / HowTo: Dedicated hosting
Great, many thanks :)
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Help wanted / HowTo: Dedicated hosting
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.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.
Re: Help wanted / HowTo: Dedicated hosting
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");
file.GetDef(autohostport, "0", "GAME\\AutohostPort");
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Help wanted / HowTo: Dedicated hosting
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
Updated windows binary is here:
http://people.freenet.de/auswaschbar/Dedicated.7z
Re: Help wanted / HowTo: Dedicated hosting
Is there any place to get base files for spring 76b2 too?
I can get svn spring executable but dedicated.exe still crashes
I can get svn spring executable but dedicated.exe still crashes
Re: Help wanted / HowTo: Dedicated hosting
What do you mean base files? To my knowledge the files in /base have not changed.
Re: Help wanted / HowTo: Dedicated hosting
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
Here are springcontent.sdz and bitmaps.sdz files of current Spring 76b1+ (R5523) if it can help:
http://planetspring.free.fr/springBaseR5523.tar
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Help wanted / HowTo: Dedicated hosting
What do you mean by crashes? Please give details...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
And be aware that dedicated server won't run with 0.76b1
Re: Help wanted / HowTo: Dedicated hosting
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.
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.
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Help wanted / HowTo: Dedicated hosting
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
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
Re: Help wanted / HowTo: Dedicated hosting
Ok thx, this one works :) It was socket binding error.
Re: Help wanted / HowTo: Dedicated hosting
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.
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.
Re: Help wanted / HowTo: Dedicated hosting
It doesn't seem to work when in "Choose start pos" mode.Auswaschbar wrote:The server will now autostart and ignore the nonexistent spectator.
Re: Help wanted / HowTo: Dedicated hosting
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.
dedicated: /usr/include/boost/scoped_ptr.hpp:94: T* boost::scoped_ptr<T>::operator->() const [with T = GameParticipant]: Assertion `ptr != 0' failed.
Re: Help wanted / HowTo: Dedicated hosting
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)
edit: btw, it seems the dedicated server no longer compiles (CGameServer constructor signature changed, but main.cpp hasn't been updated)