It is Griefly: Yet Another Space Station Remake.
- Some C++ compiler (it works at least with compiler from Visual Studio 2012 and g++)
- Qt5 (e.g., Desktop Qt 5.4.0 MSVC2012 OpenGL 32bit). Qt Creator is optional, but desired
- Python 3.5
- Golang 1.5+ (https://golang.org/dl/)
- Git
- CMake 3.*
If you have any issues during the build process please report them
It should be possible to build everything without Qt Creator, but the guide assumes that Qt Creator is used.
- All tools and libs from the depencies list should be available on your machine. Tools and libs should be present in
%PATH%
- Open CMakeLists.txt in Qt Creator
Open Project -> Select CMakeLists.txt -> Select build folder - Run CMake with param
-DCMAKE_BUILD_TYPE=Release
for Release verison. - Build the project.
Client executables will appear in theexec
folder, and the server executable will appear in thegriefly-server
folder.
Client executables depend from various dlls, so it is needed to manually place them to theexec
folder.
Note: It's supposed to be built from an active git repository (git describe --tags --abbrev=4
will be called during the process), otherwise it won't compile.
- Install dependencies. Look into
.travis.yml
file for clues. (For Arch Linux only: All dependencies can be installed withsudo pacman -S git qt5-base qt5-multimedia go python mesa gcc
) cd
into installation directory.git clone https://github.com/griefly/griefly.git
cd griefly
./make.sh
. Built project will be placed underexec
directory. Server will be built ingopath/src/griefly-server
directory.
Note: It's supposed to be built from an active git repository (git describe --tags --abbrev=4
will be called during the process), otherwise it won't compile.
Note: gccgo is not supported! The current FindGo.cmake
cannot parse the gccgo version string, so you will obtain an error. Use the official version instead.
Note: There may be some issues with CMake 3.0.2, so try to update your CMake if issues appear.
- Install dependencies using brew.
brew install qt
- Look at the tips in
make.sh
and adjust your enviorment accordingly. ./make.sh
. Build project will be placed underexec
directory Server will be built ingopath/src/griefly-server
directory.
Server available in directory gopath/src/griefly-server
. When hosting server,
consider following adjustments:
- Change password for admin user in db/auth.json. Passwords stored in plain text now.
- When starting server, provide
-server-url
parameter. This parameter is an URL for asset server. It should be either host address (when server exposed to internet directly) or external ip (when running behind NAT). Server will bind on port, extracted from this url and clients will use url to connect to server for map exchange.
Other server options available in help: griefly-server -h
Pass those command line parameters to KVEngine
or KVEngine.exe
:
First (master) client:
mapgen_name=<path_to_mapgen> login=<admin login> password=<admin password>
where login
and password
params values should match values in an auth database (by default griefly-server/db/auth.json
), and path_to_mapgen
should be path to some mapgen file. Some default mapgen files are places in the maps
(e.g. maps/brig_small.gen
).
Other clients:
login=Guest
You can also specify game host by parameter ip=game_host_address
. By default it connects to localhost.
Launcher basically does same things, but in a more convenient for usual users way.
See CODESTYLE.md
file for C++ codestyle. Use default ones for Python and Go (PEP8 and Go Coding Style accordingly).