You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+8-6
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,18 @@ Before you can use/run the image, you need to perform a one-time configuration,
8
8
9
9
To do so, you first need to [download Statsgen 2 to your local computer](https://github.com/Freekers/statsgen/releases/download/v1.9.3/statsgen2_v1.9.3.zip). Statsgen2 can be run on Windows (native) or on Linux using Wine. If you're on Linux, you probably need to use `winetricks` to install `vcrun6`.
10
10
11
-
- Unzip the contents of the zipfile to a known location, for example C:\statsgen2
11
+
- Unzip the contents of the zipfile to a known location, for example C:\statsgen
12
12
- Next, open statsgen2.exe and go to Run --> First Time Configuration and follow the onscreen prompts.
13
-
- You can choose to either run the Statsgen2 Docker on the gameserver itself or FTP the logfiles over, if you're planning on running the Statsgen2 Docker on a remote ('homepc') machine.
14
-
Should you run this Docker container on the same machine as the gameserver, uncomment the volume mount pointing to your gameserver's logfile.
13
+
- You can choose to either run the Statsgen Docker on the gameserver itself or FTP the logfiles over, if you're planning on running the Statsgen Docker on a remote ('homepc') machine.
15
14
- Make sure to complete the entire setup wizard, including the upload of the image packs.
16
15
- Once the setup wizard is done, you return to the main application screen. Feel free to change the sttings more to your liking, for example change the run schedule.
17
-
- When you're done, close Statsgen 2.
16
+
- When you're done, close Statsgen.
18
17
- Now open the statsgen2.ini file with a text editor such as Notepad(++) and find/replace all directories with the following location: `Z:\root\statsgen\drive_c\statsgen`
19
-
- Save the file and copy over the **entire**statsgen2 directory, i.e. C:\statsgen2, to your Docker host, for example `/opt/statsgen2`.
18
+
- Save the file and copy over the **entire**statsgen directory, i.e. C:\statsgen, to your Docker host, for example `/opt/statsgen`.
20
19
Make sure to update the path accordingly in the docker-compose.yml.
20
+
-**Optional:** Should you run this Docker container on the same machine as the gameserver, then make sure to create a hardlink to your gameserver's logfile like so:
Mounting the logfile as a volume Docker container does not work for some reason (I tried).
21
23
22
24
# Run
23
25
Use the included docker-compose.yml to start the container.
@@ -26,7 +28,7 @@ Use the included docker-compose.yml to start the container.
26
28
If you need to change anything to your statsgen2.ini configuration file, make sure to stop the Docker container first before doing so.
27
29
28
30
# Advanced Usage using crontab
29
-
If you want, you can use cron to schedule Statsgen2 to run. To do so, add the following line to your docker-compose.yml: `command: -runonce`
31
+
If you want, you can use cron to schedule Statsgen to run. To do so, you'll have to build the Docker image yourself and add `-runonace` at the end of the `ENTRYPOINT`.
30
32
This will cause statsgen to start, perform a stats run, then exit and thus the container will stop.
31
33
Make sure to remove `restart: always` from the compose file as well, else it will keep restarting infitenly.
0 commit comments