fgms 0.11.8
FlightGear MultiPlayer Server
file: README.tracker
This code is to establish a 'tracking' server
for fgms to connect to, and pass LOCAL pilot
It requires PostgreSQL to be installed, configured
and running. See -
If you want to use create_fgt.sql to do the setup,
you need to create a user called 'fgtracker', and
a database 'fgtracker', with password 'fgtracker'.
Or amend the file to suit your own requirements.
It expects the postgresql libraries to be in -
Either ensure you install version 8.4, or later,
say 9.1, but this path must be amended before
'importing' this sql script.
A second example, create_db.sql is also available
using a path of -
and a completely different set of users, and
database and user names. Just as a second example.
This is part of the CMakeLists.txt supplied to build
fgt_server and fgt_client binaries, and once postgresql
is installed you should be able to build these
by adding an OPTION to the cmake generation
Included in the build is a simple 'testdb' app
to check your connection to the database... the
default values are -
#define DEF_IP_ADDRESS ""
#ifndef DEF_PORT
#define DEF_PORT "5432"
#define DEF_DATABASE "fgtracker"
#define DEF_USER_LOGIN "fgtracker"
#ifndef DEF_USER_PWD
#define DEF_USER_PWD "fgtracker"
Adjust these, or define new values during the
compile, but these values can also be given on
the command line when running fgt_server and
testdb... use -? to show the help.
1. Start fgt_server
2. Start fgms, with 'tracker' set true
3. Connect a fgfs flights to fgms...
Multiplayer packets from fgfs -> fgms should
be forwarded onto fgt_server, which stores the
information in the postgresql 'fgtracker' database,
for subsequent display in say a web page.
# eof