HOWTO: Setup and configure vegaserver.
Posted: Sun Nov 13, 2011 10:36 pm
I think the one thing that has turned people away from setting up the vegaserver has been first and foremost the lack of any documentation on how to setup vegaserver to run as an mmo. Deathmatch is the default setting in the vegastrike.config file (which I have found is what vegaserver reads as well). So, if all you want is a dogfight with friends you should be (nearly) good to go. I have not done enough initial testing for deathmatch to make sure 100% that it works out of the box the way it should, but i'm confident it will.
There are two main files to edit to get the mmo aspect working: vegastrike.config and settings.py. These two files control everything you need to get up and running (without crashing when a client tries to connect.
First we will look at my working settings.py which can be found in /cgi-accountserver as well as a few other files.
Simple enough, yes?
Now, 2 sections to change in vegastrike.config I think this is the heart of the evil. Without changing this you cannot login using accountserver. The client will sit for a bit and then crash. This only has to be set for vegaserver, not vegastrike. The next section is the opposite.
The first line is what assigns the address for the accountserver
Second line is the server IP/URL (ie vega-strike.org or 127.0.0.1)
Fifth line must be set to true if your going mmo, same as the config for vegaserver.
That should cover the basics for now. Any questions? As I find more information on setting I will post it here.
There are two main files to edit to get the mmo aspect working: vegastrike.config and settings.py. These two files control everything you need to get up and running (without crashing when a client tries to connect.
First we will look at my working settings.py which can be found in /cgi-accountserver as well as a few other files.
Code: Select all
# Full path to the directing holding data.
data_path='E:\Games\Vegastrike51' #path to /data, for windows users this is the install directory
mods = {
# Default
'' : {
'path': '', #root directory
'name': 'Vega Strike main',
'servers':{
'': '127.0.0.1:6777', # localhost configuration, default port
}
},
# Test server -- Mod example
'test' : {
'path': 'test',
'name': 'Vega Strike Test Server',
'servers':{
'Sol': '127.0.0.1:6779',
'': '127.0.0.1:6778',
}
},
}
file_dbconfig = {
'type': 'file',
'storage': 'E:\Games\VegaStrike51_b2\data\db',
}
mysql_dbconfig = {
'type': 'mysql',
'host': '127.0.0.1',
'port': '3306',
'passwd': 'somepassword',
'user': 'your_db_user',
'db': 'vegastrike',
'user_table': 'phpbb_users',
'account_table': 'accounts',
'create_user':False,
}
dbconfig = file_dbconfig #Set which to use. File or MySQL. For full mmo play mysql is recommended
password_hash_methode = 'md5' #password can use sha or md5 hash metode
http_port = 8080 # Port number for httpserver.py
Now, 2 sections to change in vegastrike.config
Code: Select all
<!-- Tell if the *SERVER* uses an account server (set to false for deathmatch) -->
<var name="useaccountserver" value="true"/>
Code: Select all
<var name="account_server_url" value="http://127.0.0.1:8080/cgi-bin/accountserver.py"/>
<var name="server_ip" value="127.0.0.1"/>
<var name="server_port" value="6777"/>
<!-- Tells if the *CLIENT* uses an account server to find the server IP -->
<var name="use_account_server" value="true"/>
Second line is the server IP/URL (ie vega-strike.org or 127.0.0.1)
Fifth line must be set to true if your going mmo, same as the config for vegaserver.
That should cover the basics for now. Any questions? As I find more information on setting I will post it here.