Setting up a server

From AAGRINDER wiki
Revision as of 14:12, 30 September 2019 by imported>Maze (Created page with " You'll need these things installed: * git * g++ (or another c++ compiler) * [https://nodejs.org/en/ Node.js] * [https://www.npmjs.com/get-npm npm] * [https://www.mysql.com/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

You'll need these things installed:

If you're going to use MySQL, set up your database. It is needed for storing account data. Helpful commands:

$ mysql -u root -p
> create database aagrinder;
> create user 'maze'@'localhost' identified by 'some_password';
> grant all privileges on aagrinder.* to 'maze'@'localhost';
> flush privileges;
> quit


Then run the following commands:

$ git clone https://gitlab.com/MRAAGH/aagrinder.git
$ cd aagrinder
$ npm install
$ git clone https://gitlab.com/MRAAGH/aagrinder-terrain.git
$ cd aagrinder-terrain
$ make
$ cd ..
$ npm start

A server.properties file will be created. In that file, you set the database name, host, user and password. Then restart the server.

Now, anyone who can access your computer via internet can easily connect to your aagrinder server.

Running server without MySQL

WARNING: if you run a server without a database, players will not be able to protect their accounts with passwords. If you are going to play alone or only on the local network, this could be totally fine.

Open your server.properties file. Change "insecure_mode":false to "insecure_mode":true. Then restart the server.