Hard Light Productions Forums

General FreeSpace => Multiplayer => Topic started by: Spicious on July 04, 2009, 09:15:19 am

Title: Looking for standalone testers
Post by: Spicious on July 04, 2009, 09:15:19 am
I've recently ported the standalone server thingo to use wxWidgets and it needs some testing so if you're planning on using the standalone to host some games on any of the following OSs (and don't mind too much if it all suddenly dies for no apparent reason) please give it a go: Windows (http://www.cse.unsw.edu.au/~samm/fs2_open_3_6_11d.7z) Linux x64 (http://www.cse.unsw.edu.au/~samm/fs2_open_d.7z).

Don't forget to post any problems/comments you may have!
Title: Re: Looking for standalone testers
Post by: captain-custard on July 04, 2009, 11:28:43 am
this is a 3.6.11 build i see , will this have compatability probllems with other builds etc , will it work with RC3 builds or will everyone need to be running 3.6.11 builds
Title: Re: Looking for standalone testers
Post by: The E on July 04, 2009, 11:29:57 am
It should (and I stress the SHOULD part) work with RC3.
Title: Re: Looking for standalone testers
Post by: captain-custard on July 04, 2009, 11:33:04 am
guess there is only one way to find out
Title: Re: Looking for standalone testers
Post by: karajorma on July 04, 2009, 01:17:15 pm
I don't recall adding anything that breaks compatibility with RC3. That said there is a lot of difference in the code between the two, 4-5 months worth of code in fact.
Title: Re: Looking for standalone testers
Post by: FUBAR-BDHR on July 04, 2009, 03:12:03 pm
I stuck one up for testing. 

I can tell you that running that exe immediately froze my system at the splash screen without the standalone flag.   Now I did forget to disable a mod so that may be part of it.   
Title: Re: Looking for standalone testers
Post by: Spicious on July 06, 2009, 02:36:40 am
I tried a quick and nasty backport to RC3 but that resulted in exiting only working with a debugger attached.

Edit: A rather less nasty backport produced useful results: Windows (http://www.cse.unsw.edu.au/~samm/fs2_open_3_6_10d.7z) Linux x64 (http://www.cse.unsw.edu.au/~samm/fs2_open_3_6_10_rc3_r.7z).
Title: Re: Looking for standalone testers
Post by: chief1983 on July 06, 2009, 03:04:58 am
Using the first one, I was able to start up the standalone with retail or MediaVPs, or just run the game, with no crashes.
Title: Re: Looking for standalone testers
Post by: FUBAR-BDHR on July 07, 2009, 01:43:50 pm
Well I left it up but it had crashed.  For some reason it isn't writing to the fs2_open.log file so I have no idea why. 
Title: Re: Looking for standalone testers
Post by: Spicious on July 07, 2009, 09:09:17 pm
The builds in the first post should write fs2_open.log properly now.
Title: Re: Looking for standalone testers
Post by: Spicious on July 15, 2009, 08:23:38 pm
Based on the lack of other reports of problems I assume this works perfectly for everyone since the last update.
Title: Re: Looking for standalone testers
Post by: FUBAR-BDHR on July 15, 2009, 08:38:55 pm
Well we've been busy testing the 3.6.10 RC3 fixes so this kind of got put on the back burner for now.
Title: Re: Looking for standalone testers
Post by: portej05 on July 15, 2009, 09:17:10 pm
Is there code available for this? (or a diff)
I'd love to see how this one is done!
Title: Re: Looking for standalone testers
Post by: Spicious on July 15, 2009, 11:01:24 pm
Enjoy!

[attachment deleted by MSC
Title: Re: Looking for standalone testers
Post by: portej05 on July 17, 2009, 06:05:29 am
You sure that's the right diff?

This doesn't compile:
Code: [Select]
+int std_connect_set_connect_count() {
+ int idx,count;
+
+ // determine how many players are actually connected
+ count = 0;
+ for(idx=0;idx<MAX_PLAYERS;idx++){
+ if(MULTI_CONNECTED(Net_players[idx]) && (Net_player != &Net_players[idx])){
+ count++;
+ }
+ }
+
+
+ // set the text itself
+ frame->lbl_connections->SetLabel(wxString::format(wxT("%s%d"), wxString(str, wxConvUTF8).c_str(), count));
+
+ // return the num of players found
+ return count;
+}

It's wxString::Format, and str isn't defined anywhere.
Title: Re: Looking for standalone testers
Post by: Spicious on July 17, 2009, 07:36:14 am
And that's what happens when you get distracted half way through changing something and forget about it.

[attachment deleted by MSC
Title: Re: Looking for standalone testers
Post by: portej05 on July 17, 2009, 07:37:50 am
We're also having trouble with linking
Which edition of wxWidgets are you using, what do we need to define in code,Freespace to use (other than WX_STANDALONE), and did you use the prebuilts or compile your own?
Title: Re: Looking for standalone testers
Post by: Spicious on July 17, 2009, 07:52:16 am
It should just require whatever the specific platform needs. On linux wx-config --cxxflags should list them and wx-config --libs for linker flags. I'm using 2.8; prebuilt on linux, compiled on windows; unicode on linux, ANSI on windows.
Title: Re: Looking for standalone testers
Post by: portej05 on July 17, 2009, 12:39:51 pm
Can you share whatever you're using to build wx under windows - I'm getting linker errors related to the strings classes, and I'm not entirely sure what I'm doing wrong!
Title: Re: Looking for standalone testers
Post by: Spicious on July 17, 2009, 06:23:45 pm
I added ";WINVER=0x0400;__WXMSW__;wxUSE_GUI=1;__WXDEBUG__;_CRT_NONSTDC_NO_DEPRECATE" to the defines, ;&quot;$(WXWIN)\include&quot;;&quot;$(WXWIN)\include\msvc&quot; to the include path, ;&quot;$(WXWIN)\lib\vc_lib&quot; to the linker path and wxmsw28d_core.lib wxbase28d.lib rpcrt4.lib to the input files. I also had to change the runtime library in code generation from multithreaded (debug) to multithreaded (debug) dll.
Title: Re: Looking for standalone testers
Post by: Spicious on August 14, 2009, 04:03:36 am
:bump:
Title: Re: Looking for standalone testers
Post by: chief1983 on January 08, 2010, 02:16:50 pm
Maybe you could help this guy (http://www.hard-light.net/forums/index.php?topic=67385.0) with an up to date build based on latest trunk, and post a new diff while you're at it?  :)