A plugin for Hell Let Loose (HLL) CRCON (see : https://github.com/MarechJ/hll_rcon_tool) that displays statistic data about the player asking for them in chat (!me
) ;
Note
The shell commands given below assume your CRCON is installed in /root/hll_rcon_tool
.
You may have installed your CRCON in a different folder.
Some Ubuntu Linux distributions disable the root
user and /root
folder by default.
In these, your default user is ubuntu
, using the /home/ubuntu
folder.
You should then find your CRCON in /home/ubuntu/hll_rcon_tool
.
If so, you'll have to adapt the commands below accordingly.
-
Log into your CRCON host machine using SSH and enter these commands (one line at at time) :
First part
If you already have installed any other "custom tools" from ElGuillermo, you can skip this part.
(though it's always a good idea to redownload the files, as they could have been updated)cd /root/hll_rcon_tool wget https://raw.githubusercontent.com/ElGuillermo/HLL_CRCON_restart/refs/heads/main/restart.sh mkdir custom_tools
Second part
cd /root/hll_rcon_tool/custom_tools wget https://raw.githubusercontent.com/ElGuillermo/HLL_CRCON_All_time_stats/refs/heads/main/hll_rcon_tool/custom_tools/all_time_stats.py
-
Edit
/root/hll_rcon_tool/rcon/hooks.py
and add these lines:- (in the import part, on top of the file)
import custom_tools.all_time_stats as all_time_stats
- (at the very end of the file)
@on_chat def alltimestats(rcon: Rcon, struct_log: StructuredLogLineWithMetaData): all_time_stats.all_time_stats(rcon, struct_log)
- (in the import part, on top of the file)
- Edit
/root/hll_rcon_tool/custom_tools/all_time_stats.py
and set the parameters to fit your needs. - Restart CRCON :
cd /root/hll_rcon_tool sh ./restart.sh
restart.sh
script) to be taken in account :
/root/hll_rcon_tool/custom_tools/all_time_stats.py
/root/hll_rcon_tool/rcon/hooks.py
/root/hll_rcon_tool/rcon/hooks.py
file, which originates from the official CRCON depot.
If any CRCON upgrade implies updating this file, the usual upgrade procedure, as given in official CRCON instructions, will FAIL.
To successfully upgrade your CRCON, you'll have to revert the changes back, then reinstall this plugin.
To revert to the original file :
cd /root/hll_rcon_tool
git restore rcon/hooks.py