Skip to content

Commit 3df0d99

Browse files
committed
Fixed Documentation
1 parent 3e0630a commit 3df0d99

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ Before you can use/run the image, you need to perform a one-time configuration,
88

99
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`.
1010

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
1212
- 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.
1514
- Make sure to complete the entire setup wizard, including the upload of the image packs.
1615
- 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.
1817
- 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`.
2019
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:
21+
`ln /opt/cod2/main/games_mp.log /opt/statsgen/games_mp.log`
22+
Mounting the logfile as a volume Docker container does not work for some reason (I tried).
2123

2224
# Run
2325
Use the included docker-compose.yml to start the container.
@@ -26,7 +28,7 @@ Use the included docker-compose.yml to start the container.
2628
If you need to change anything to your statsgen2.ini configuration file, make sure to stop the Docker container first before doing so.
2729

2830
# 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`.
3032
This will cause statsgen to start, perform a stats run, then exit and thus the container will stop.
3133
Make sure to remove `restart: always` from the compose file as well, else it will keep restarting infitenly.
3234

docker-compose.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ services:
55
container_name: statsgen
66
restart: always
77
volumes:
8-
- /path/to/statsgen:/root/statsgen/drive_c/statsgen
9-
#Uncomment below if running on the same machine as the gameserver
10-
#- /path/to/gameserver/games_mp.log:/root/statsgen/drive_c/statsgen/games_mp.log:ro
8+
- /opt/statsgen:/root/statsgen/drive_c/statsgen
9+
- /etc/localtime:/etc/localtime:ro

0 commit comments

Comments
 (0)