Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically upload gotv demo files #239

Open
crashzk opened this issue Oct 7, 2018 · 5 comments
Open

Automatically upload gotv demo files #239

crashzk opened this issue Oct 7, 2018 · 5 comments

Comments

@crashzk
Copy link
Contributor

crashzk commented Oct 7, 2018

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:

// FTP Upload stuff
wm_autodemoupload_enable "1", "Automatically upload demos when finished recording."
wm_autodemoupload_bzip2 "9", "Compression level. If set > 0 demos will be compressed before uploading. (Requires bzip2 extension.)"
wm_autodemoupload_delete "0", "Delete the demo (and the bz2) if upload was successful."
wm_autodemoupload_ftptargetdemo "demos", "The ftp target to use for uploads."
wm_autodemoupload_ftptargetlog "logs", "The ftp target to use for uploads."
wm_autodemoupload_completed "1", "Only upload demos when match is completed."
@crashzk crashzk changed the title [Feature Request] Upload de Demos GOTV [Feature Request] Upload Demos GOTV Oct 7, 2018
@splewis splewis changed the title [Feature Request] Upload Demos GOTV Automatically upload gotv demo files Oct 7, 2018
@nameproof
Copy link

nameproof commented Jan 14, 2019

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.

@MoritzLoewenstein
Copy link
Contributor

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).

@crashzk
Copy link
Contributor Author

crashzk commented Apr 11, 2020

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?

@MoritzLoewenstein
Copy link
Contributor

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.

@WardPearce
Copy link

Might be worth checking out https://github.com/WardPearce/SQLMatches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants