Raised This Month: $12 Target: $400
 3% 

[ANY] tAutoDemoUpload v0.0.4 (2012-01-08)


Post New Thread Reply   
 
Thread Tools Display Modes
Fearts
ferts of daeth
Join Date: Oct 2008
Old 01-10-2012 , 13:58   Re: [ANY] tAutoDemoUpload v0.0.4 (2012-01-08)
Reply With Quote #21

1. Added bzip2.inc and tEasyFTP.inc to sourcemod/scripting/include/

2. Added RemoteTargets.cfg to sourcemod/configs/

Code:
"RemoteTargets"
{
    "demos"
    {
        "host"        "Myhost"
        "port"        "21"
        "user"        "Myuser"
        "password"    "Mypassword"
        "path"        "/"
        "ssl"        "try"
        
        "CreateMissingDirs"    "1"        
    }
}
3. Added cURL to sourcemod/extensions/

4. Added tEasyFTP.smx and tAutoDemoUpload.smx to sourcemod/plugins/

5. Added autorecorder.smx to sourcemod/plugins/ with these configs:

Code:
sm_autorecord_enable "1"

sm_autorecord_finishmap "1"

sm_autorecord_minplayers "4"

sm_autorecord_path "demos/"

sm_autorecord_timestart "13"

sm_autorecord_timestop "1"
6. Added demos folder to cstrike/

7. I go into server and start and stop a demo and it puts the demo in cstrike/demos/ but does not upload anything to my webserver FTP.

I think this is because I don't have the paths set correctly in both:

Code:
RemoteTargets.cfg

        "path"        "/"
and

Code:
tAutoDemoUpload.sp


sm_tautodemoupload_ftptarget "demos"
What I want is:

Demos recorded to (Game Server) - cstrike/demos/

End up (Web Server) - public/cstrike/demos/

If you could please advise me on this it would be most helpful.
__________________

Last edited by Fearts; 01-10-2012 at 14:05.
Fearts is offline
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 01-10-2012 , 14:07   Re: [ANY] tAutoDemoUpload v0.0.4 (2012-01-08)
Reply With Quote #22

type this into your server console or rcon and paste the output.
sm version
sm exts list
sm plugins list
tv_record test.dem
say testtesttest
tv_stoprecord

wait a bit, then copy + paste

also: this.
__________________
einmal mit profis arbeiten. einmal.

Last edited by Thrawn2; 01-10-2012 at 14:10.
Thrawn2 is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 01-10-2012 , 14:11   Re: [ANY] tAutoDemoUpload v0.0.4 (2012-01-08)
Reply With Quote #23

I see this:

cURL Extension (1.2.0.0): cURL Extension
[17] <FAILED> file "smbz2.ext.dll": The specified module could not be found.

^I don't see any ext for bzip2 anywhere could you compile it here for me?

EDIT:

Wait I see it one sec testing...
__________________

Last edited by Fearts; 01-10-2012 at 14:13.
Fearts is offline
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 01-10-2012 , 14:14   Re: [ANY] tAutoDemoUpload v0.0.4 (2012-01-08)
Reply With Quote #24

Quote:
Originally Posted by Fearts View Post
[17] <FAILED> file "smbz2.ext.dll": The specified module could not be found.
that's weird. it should be optional.
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 01-10-2012 , 14:21   Re: [ANY] tAutoDemoUpload v0.0.4 (2012-01-08)
Reply With Quote #25

I have added the smbz2.ext.dll to the server and it has loaded correctly. I now see in demos folder both the original file and the .bz2 version.

However, I am getting this error in my logs:

Code:
L 01/10/2012 - 14:17:35: [tEasyFTP.smx] Failed uploading demos//01-10-12@1416-ba_jail_electric_razor_v6.dem.bz2 (Peer certificate cannot be authenticated with known CA certificates).
EDIT:

Could this ext be blocking the upload?

http://forums.alliedmods.net/showthread.php?t=142249

EDIT #2:

I googled the error and it seems to have something to do with cURL. Still I ma not sure if the serversercure ext could be blocking upload?
__________________

Last edited by Fearts; 01-10-2012 at 14:25.
Fearts is offline
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 01-10-2012 , 17:21   Re: [ANY] tAutoDemoUpload v0.0.4 (2012-01-08)
Reply With Quote #26

try setting ssl to none.
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 01-10-2012 , 18:00   Re: [ANY] tAutoDemoUpload v0.0.4 (2012-01-08)
Reply With Quote #27

Code:
"RemoteTargets"
{
    "demos"
    {
        "host"        "Myhost"
        "port"        "21"
        "user"        "Myuser"
        "password"    "Mypassword"
        "path"        "/public/cstrike/demos/"
        "ssl"        "none"
        
        "CreateMissingDirs"    "1"        
    }
}
Works perfectly now thanks so much for this plugin!

__________________

Last edited by Fearts; 01-10-2012 at 18:01.
Fearts is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 01-21-2012 , 17:58   Re: [ANY] tAutoDemoUpload v0.0.4 (2012-01-08)
Reply With Quote #28

Hey, this is giving my server a good amount of lag every time the map changes. Would it be possible to set a time for all demos in the demo folder to compress and be uploaded? Or maybe do it when no one is on the server?
__________________
Fearts is offline
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 01-22-2012 , 07:28   Re: [ANY] tAutoDemoUpload v0.0.4 (2012-01-08)
Reply With Quote #29

I'll add a cvar to tEasyFTP which will allow you to limit the upload rate (per target only though).
That should fix your problem.
I'll also think about adding some pause option for the queue processing.
__________________
einmal mit profis arbeiten. einmal.

Last edited by Thrawn2; 01-22-2012 at 07:32.
Thrawn2 is offline
namine
SourceMod Donor
Join Date: Jul 2010
Old 01-31-2012 , 16:40   Re: [ANY] tAutoDemoUpload v0.0.4 (2012-01-08)
Reply With Quote #30

How can I integrate this: http://forums.alliedmods.net/showthread.php?p=888612 so I can have my demos organized nicely?

Thanks!
__________________
namine is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode