forked from Dniel97/artemis
4.0 KiB
4.0 KiB
ARTEMiS - Windows 10/11 Guide
This step-by-step guide assumes that you are using a fresh install of Windows 10/11 without MySQL installed, some of the steps can be skipped if you already have an installation with MySQL 8.0 or even some of the modules already present on your environment
Setup
Install Python Python 3.9 (recommended) or 3.10
- Download Python 3.9 : Link
- Install python-3.9.13-amd64.exe
- Select Customize installation
- Make sure that pip, tcl/tk, and the for all users are checked and hit Next
- Make sure that you enable "Create shortcuts for installed applications" and "Add Python to environment variables" and hit Install
Install MySQL 8.0
- Download MySQL 8.0 Server : Link
- Install mysql-installer-web-community-8.0.31.0.msi
- Click on "Add ..." on the side
- Click on the "+" next to MySQL Servers
- Make sure MySQL Server 8.0.29 - X64 is under the products to be installed.
- Hit Next and Next once installed
- Select the configuration type "Development Computer"
- Hit Next
- Select "Use Legacy Authentication Method (Retain MySQL 5.x compatibility)" and hit Next
- Enter a root password and then hit Next >
- Leave everything under Windows Service as default and hit Next >
- Click on Execute and for it to finish and hit Next> and then Finish
- Open MySQL 8.0 Command Line Client and login as your root user
- Type those commands to create your user and the database
CREATE USER 'aime'@'localhost' IDENTIFIED BY 'MyStrongPass.';
CREATE DATABASE aime;
GRANT Alter,Create,Delete,Drop,Insert,References,Select,Update ON aime.* TO 'aime'@'localhost';
FLUSH PRIVILEGES;
exit;
Install Python modules
- Change your work path to the artemis-master folder using 'cd' and install the requirements:
pip install -r requirements_win.txt
Copy/Rename the folder example_config to config
Adjust /config/core.yaml
- Make sure to change the server listen_address to be set to your local machine IP (ex.: 192.168.1.xxx)
- In case you want to run this only locally, set the following values:
server:
listen_address: 0.0.0.0
title:
hostname: localhost
- Adjust the proper MySQL information you created earlier
- Add the AimeDB key at the bottom of the file
- If the webui is needed, change the flag from False to True
Create the database tables for ARTEMiS
python dbutils.py create
Firewall Adjustements
Make sure the following ports are open both on your router and local Windows firewall in case you want to use this for public use (NOT recommended):
Port 80 (TCP), 443 (TCP), 8443 (TCP), 22345 (TCP), 8090 (TCP) **webui, 8444 (TCP) **mucha, 9000 (TCP)
Running the ARTEMiS instance
python index.py
Troubleshooting
Game does not connect to ARTEMiS Allnet server
- Double-check your core.yaml, the listen_address is most likely either not binded to the proper IP or the port is not opened
Game does not connect to Title Server
- Verify that your core.yaml is setup properly for both the server listen_address and title hostname
- Boot your game and verify that an AllNet response does show and if it does, attempt to open the URI that is shown under a browser such as Edge, Chrome & Firefox.
- If a page is shown, the server is working properly and if it doesn't, double check your port forwarding and also that you have entered the proper local IP under the Title hostname in core.yaml.
Unhandled command under AimeDB
- Double check your AimeDB key under core.yaml, it is incorrect.
AttributeError: module 'collections' has no attribute 'Hashable'
- This means the pyYAML module is obsolete, simply make sure to update pip and then reinstall the requirements
- Change your work path to the artemis-master (or artemis-develop) folder using 'cd' and run the following commands:
python -m pip install --upgrade pip
pip install -r requirements_win.txt