Open crashzk opened 6 years ago
While this isn't implemented, I made a quick bash script to do this if anyone's interested, atleast for linux.
inotify.sh
#!/bin/sh
while true
do
inotifywait -e close_write --exclude=".txt" /path/to/csgo && sleep 1m && /path/to/sftp.sh
done
sftp.sh
#!/bin/bash
sftp username@host << DELIMITER
cd path/to/uploaddir
put /path/to/csgo/*.dem
quit
DELIMITER
rm -rf /path/to/csgo/*.dem
Make the script run on boot by adding to /etc/rc.local
nohup ./path/to/inotify.sh >/dev/null 2>&1 &
Requirements: inotify-tools, sftp server, and SSH public-key authentication setup.
since most csgo server providers dont allow full access to bash scripts, you can use this. This is basically tEasyFtp and tAutoDemoUpload by "Thrawn" with some slight adjustments/fixes (original version dead).
since most csgo server providers dont allow full access to bash scripts, you can use this. This is basically tEasyFtp and tAutoDemoUpload by "Thrawn" with some slight adjustments/fixes (original version dead).
Your version uses this as a base, correct?
https://github.com/thraaawn/tEasyFTP
Your sends to FastDL automatically the demos, would that be?
Yes, this and this, as you can see both are not longer supported and didnt compile when I downloaded them. My version compiles fine and works the same, you have to enter fastdl data in addons/sourcemod/configs/RemoteTargets.cfg. I will add a ReadMe.
Might be worth checking out https://github.com/WardPearce/SQLMatches
I think it would be perfect if you put the option to upload the demos to the internet, just like WarMod:
Configuration of Demos Upload in WarMod: