View Issue Details

IDProjectCategoryView StatusLast Update
0003095FSSCPStandalone (Dedicated Server)public2014-08-20 13:14
ReporterEchelon9 Assigned ToEchelon9  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionwon't fix 
Product Version3.7.2 
Summary0003095: Standalone server should run with clean compile, -standalone and no further content requires
DescriptionAt present to run a standalone server, a small set of content files are required and/or a complex set of command line arguments before a standalone server will launch.

Instead, a clean copy of the code and a compiled binary run with '-standalone' should be all that is sufficient to run a standalone server.
Additional InformationNote: The WebUI at present does require further content files to host the WebUI content whilst being developed. This will be addressed separately.
TagsNo tags attached.

Activities

Echelon9

2014-08-15 14:56

developer  

fix-mantis-3095.patch (2,291 bytes)   
diff --git a/code/freespace2/freespace.cpp b/code/freespace2/freespace.cpp
index bc89b98..8af5e36 100644
--- a/code/freespace2/freespace.cpp
+++ b/code/freespace2/freespace.cpp
@@ -2037,7 +2037,8 @@ void game_init()
        pilot_load_pic_list();  
        pilot_load_squad_pic_list();
 
-       load_animating_pointer(NOX("cursor"), 0, 0);    
+       if(!Is_standalone)
+               load_animating_pointer(NOX("cursor"), 0, 0);    
 
        if(!Cmdline_reparse_mainhall)
        {
diff --git a/code/gamehelp/contexthelp.cpp b/code/gamehelp/contexthelp.cpp
index 783518d..daa7e6c 100644
--- a/code/gamehelp/contexthelp.cpp
+++ b/code/gamehelp/contexthelp.cpp
@@ -299,12 +299,14 @@ void help_overlay_init()
        // load right_bracket bitmap
        help_right_bracket_bitmap = bm_load("right_bracket");
        // we failed to load the bitmap - this is very bad
-       Assertion( help_right_bracket_bitmap >= 0, "Failed to load bitmap right_bracket for help overlay\n");
+       if (!Is_standalone)
+               Assertion( help_right_bracket_bitmap >= 0, "Failed to load bitmap right_bracket for help overlay\n");
 
        // load left_bracket bitmap
        help_left_bracket_bitmap = bm_load("left_bracket");
        // we failed to load the bitmap - this is very bad
-       Assertion( help_left_bracket_bitmap >= 0, "Failed to load bitmap left_bracket for help overlay\n");
+       if (!Is_standalone)
+               Assertion( help_left_bracket_bitmap >= 0, "Failed to load bitmap left_bracket for help overlay\n");
 
        atexit(close_help);
 
diff --git a/code/graphics/2d.cpp b/code/graphics/2d.cpp
index 29edc91..9e7fe14 100644
--- a/code/graphics/2d.cpp
+++ b/code/graphics/2d.cpp
@@ -877,7 +877,7 @@ bool gr_init(int d_mode, int d_width, int d_height, int d_depth)
        }
 
        // load the web pointer cursor bitmap
-       if (Web_cursor_bitmap < 0) {
+       if ( (Web_cursor_bitmap < 0) && !Is_standalone) {
                //if it still hasn't loaded then this usually means that the executable isn't in the same directory as the main fs2 install
                if ( (Web_cursor_bitmap = bm_load_animation("cursorweb")) < 0 ) {
                        Error(LOCATION, "\nWeb cursor bitmap not found.  This is most likely due to one of three reasons:\n"
fix-mantis-3095.patch (2,291 bytes)   

Echelon9

2014-08-15 14:58

developer   ~0016219

Ready for code review.

Can be tested on a clean checkout. For example, on Linux:

$ ./autogen.sh
$ make
$ cd code
$ ./fs2_open_3.7.1_DEBUG -standalone
$ cat ~/.fs2_open/data/fs2_standalone.log

niffiwan

2014-08-17 09:27

developer   ~0016232

Looks like it crashed as soon as I tried to join: http://pastebin.com/h9tTPC5D

I'm not sure that the no-assets concept will work. While it doesn't render anything, I thought the standalone needed access to at least all the tables, and the models since IIRC it does collision detection on the server?

Echelon9

2014-08-20 13:14

developer   ~0016243

Fair enough.

Issue History

Date Modified Username Field Change
2014-08-15 14:53 Echelon9 New Issue
2014-08-15 14:53 Echelon9 Status new => assigned
2014-08-15 14:53 Echelon9 Assigned To => Echelon9
2014-08-15 14:56 Echelon9 File Added: fix-mantis-3095.patch
2014-08-15 14:58 Echelon9 Note Added: 0016219
2014-08-15 14:58 Echelon9 Assigned To Echelon9 => niffiwan
2014-08-15 14:58 Echelon9 Status assigned => code review
2014-08-17 09:27 niffiwan Note Added: 0016232
2014-08-17 09:27 niffiwan Assigned To niffiwan => Echelon9
2014-08-17 09:27 niffiwan Status code review => assigned
2014-08-20 13:14 Echelon9 Note Added: 0016243
2014-08-20 13:14 Echelon9 Status assigned => closed
2014-08-20 13:14 Echelon9 Resolution open => won't fix