Setting up a server

From AAGRINDER wiki
Revision as of 18:34, 5 October 2019 by imported>Maze (→‎Running server without MySQL)
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. More about insecure mode

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