Difference between revisions of "Setting up a server"
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/...") |
imported>Maze |
||
Line 44: | Line 44: | ||
WARNING: if you run a server without a database, players will not be able to protect their accounts with passwords. | 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. | + | If you are going to play alone or only on the local network, this could be totally fine. [[Running in insecure mode|More about insecure mode]] |
Open your server.properties file. | Open your server.properties file. | ||
Change "insecure_mode":false to "insecure_mode":true. | Change "insecure_mode":false to "insecure_mode":true. | ||
Then restart the server. | Then restart the server. |
Revision as of 16:34, 5 October 2019
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.