seichejs / sylverant

Automatically exported from code.google.com/p/sylverant
1 stars 1 forks source link

Configuration documentation needs to be updated #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Set up sylverant from scratch
2.  Follow the steps up until starting ship_server

What is the expected output? What do you see instead?

I would expect ship_server to start... but instead I get this sort of output:

[2010:10:10: 03:36:31.788]: Loading Sylverant Ship configuration file... 
[2010:10:10: 03:36:31.788]: Ok
[2010:10:10: 03:36:31.788]: Configured parameters:
[2010:10:10: 03:36:31.788]: Shipgate IP: 192.168.0.4
[2010:10:10: 03:36:31.788]: Shipgate Port: 3455
[2010:10:10: 03:36:31.788]: Number of Ships: 1
[2010:10:10: 03:36:31.788]: Ship Name: MyServer
[2010:10:10: 03:36:31.788]: Ship IP: 192.168.0.4
[2010:10:10: 03:36:31.788]: Base Port: 3460
[2010:10:10: 03:36:31.788]: Blocks: 1
[2010:10:10: 03:36:31.788]: Event: 0
[2010:10:10: 03:36:31.788]: Menu: Main
[2010:10:10: 03:36:31.789]: Starting server for ship MyServer...
[2010:10:10: 03:36:31.789]: MyServer: Loading shipgate key...
[2010:10:10: 03:36:31.789]: MyServer: Connecting to shipgate...
[2010:10:10: 03:36:31.789]: MyServer: Connected to Shipgate Version 0.1.0
[2010:10:10: 03:36:31.790]: MyServer: Starting server for block 1...
[2010:10:10: 03:36:31.790]: MyServer(1): Up and running
[2010:10:10: 03:36:31.790]: MyServer: Select a valid menu code in the config!
[2010:10:10: 03:36:31.790]: MyServer: Lost connection with shipgate
[2010:10:10: 03:36:31.790]: MyServer: Fatal shipgate error, bailing!
[2010:10:10: 03:36:31.790]: MyServer: Shutting down...

(at this point, ship_server hangs and has to be killed with ctrl-c)

Over in the shipgate output, I see this:

[2010:10:10: 03:36:31.789]: Accepted ship connection from 192.168.0.4
[2010:10:10: 03:36:31.790]: Receieved type 0x0010
[2010:10:10: 03:36:31.790]: Invalid menu code for id: 3
[2010:10:10: 03:36:31.790]: Closing connection with

Upon looking briefly into the code, it seems as though the ship server is 
looking for some "menu" configuration in either the database or the XML file.  
I can't find any documentation as to where this should be configured or what 
it's for.

What version of the product are you using? On what operating system?

Latest from SVN, on Ubuntu Linux 8.04.

Original issue reported on code.google.com by minne...@gmail.com on 10 Oct 2010 at 3:54

GoogleCodeExporter commented 9 years ago
Look at r219 comments. You need to execute the following command to have the 
main_menu flag set:

UPDATE ship_data SET main_menu=1;

But as you say, documentation on the XML config file should be updated with 
that new option.

Original comment by indiket on 10 Oct 2010 at 12:54

GoogleCodeExporter commented 9 years ago
As Indiket has said, you need to set the main menu flag on the row that 
represents your ship in the table, or set a menu code in configuration. I 
apologize for not fixing the documentation, but basically I figured it was more 
important to actually work on the server in my limited spare time right now.

I'll attempt to get a chance to fix all the documentation sometime soon.

Also, keep in mind that Issue 1 still stands as of now (as far as I know). 
Linux is not the right OS to be running Sylverant on, but rather one of the 
various BSDs would be more appropriate (I personally use FreeBSD).

Original comment by bluecrab on 11 Oct 2010 at 12:27