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

[TF2] LogUpload (v0.1.5, 7/4/2013)


Post New Thread Reply   
 
Thread Tools Display Modes
mycologist
SourceMod Donor
Join Date: Sep 2008
Location: Sep 2008
Old 05-15-2013 , 15:33   Re: [TF2] LogUpload (v0.1.1, 4/14/2013)
Reply With Quote #11

Sounds great, look forward to what you come up with.
__________________

mycologist is offline
Nikkii
Member
Join Date: Feb 2012
Old 05-16-2013 , 15:35   Re: [TF2] LogUpload (v0.1.1, 4/14/2013)
Reply With Quote #12

Quote:
Originally Posted by mycologist View Post
Sounds great, look forward to what you come up with.
Try this out for a couple rounds if you can, then post the 'eventdebug.log' file which will be in the main tf folder, it'll contain basic game events like round starting, status, map starting/ending, tf_game_over and teamplay_game_over, and hopefully allow me to see if it's the event being stopped by something or another problem without having the game log files truncated by both plugins
Attached Files
File Type: sp Get Plugin or Get Source (eventdebug.sp - 312 views - 1.6 KB)
__________________
Owner of ProbablyAServer, a server without game changing mods and donation benefits

RCON Helper | [TF2] LogUpload | CCC Donator Tags | PHP Steam API Wrapper
Nikkii is offline
mycologist
SourceMod Donor
Join Date: Sep 2008
Location: Sep 2008
Old 05-16-2013 , 16:06   Re: [TF2] LogUpload (v0.1.1, 4/14/2013)
Reply With Quote #13

Quote:
Originally Posted by Nikkii View Post
post the 'eventdebug.log' file
Here it is. I restarted the server, started a match using matchmod. Played badlands until 3-0 (log file was uploaded), then halftime, then scored two more for 5-0 (no log upload).
Code:
L 05/16/2013 - 12:50:21: Plugin loading
L 05/16/2013 - 12:50:25: Map started: cp_badlands
L 05/16/2013 - 12:52:34: Event was triggered : "teamplay_round_active"
L 05/16/2013 - 12:53:10: Event was triggered : "teamplay_restart_round"
L 05/16/2013 - 12:53:10: Log status was changed to "on"
L 05/16/2013 - 12:53:15: Event was triggered : "teamplay_round_active"
L 05/16/2013 - 12:54:14: Event was triggered : "teamplay_round_win"
L 05/16/2013 - 12:54:24: Event was triggered : "teamplay_round_active"
L 05/16/2013 - 12:55:24: Event was triggered : "teamplay_round_win"
L 05/16/2013 - 12:55:34: Event was triggered : "teamplay_round_active"
L 05/16/2013 - 12:56:44: Event was triggered : "teamplay_round_win"
L 05/16/2013 - 12:56:49: Event was triggered : "tf_game_over"
L 05/16/2013 - 12:56:49: Log status was changed to "on"
L 05/16/2013 - 12:56:49: Event was triggered : "teamplay_round_active"
L 05/16/2013 - 12:57:23: Event was triggered : "teamplay_restart_round"
L 05/16/2013 - 12:57:28: Event was triggered : "teamplay_round_active"
L 05/16/2013 - 12:58:48: Event was triggered : "teamplay_round_win"
L 05/16/2013 - 12:58:58: Event was triggered : "teamplay_round_active"
L 05/16/2013 - 12:59:57: Event was triggered : "teamplay_round_win"
L 05/16/2013 - 12:59:57: Log status was changed to "off"
L 05/16/2013 - 13:00:07: Event was triggered : "teamplay_round_active"
And here are the two log files that were created (maybe it'll be helpful?)

First half
Code:
L 05/16/2013 - 12:53:10: Log file started (file "logs\L0516000.log") (game "C:\servers\dsgls1\tf") (version "5287")
L 05/16/2013 - 12:53:43: Team "Red" triggered "pointcaptured" (cp "2") (cpname "#Badlands_cap_cp3") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Red>") (position1 "-49 -37 303") 
L 05/16/2013 - 12:54:03: Team "Red" triggered "pointcaptured" (cp "1") (cpname "#Badlands_cap_blue_cp2") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Red>") (position1 "-1875 -1643 407") 
L 05/16/2013 - 12:54:14: Team "Red" triggered "pointcaptured" (cp "0") (cpname "#Badlands_cap_blue_cp1") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Red>") (position1 "-735 -4068 0") 
L 05/16/2013 - 12:54:14: World triggered "Round_Win" (winner "Red")
L 05/16/2013 - 12:54:14: World triggered "Round_Length" (seconds "64.60")
L 05/16/2013 - 12:54:14: Team "Red" current score "1" with "1" players
L 05/16/2013 - 12:54:14: Team "Blue" current score "0" with "0" players
L 05/16/2013 - 12:54:19: World triggered "Round_Start"
L 05/16/2013 - 12:54:19: "Mycologist<2><STEAM_0:0:10026749><Red>" spawned as "scout"
L 05/16/2013 - 12:54:53: Team "Red" triggered "pointcaptured" (cp "2") (cpname "#Badlands_cap_cp3") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Red>") (position1 "-194 -146 296") 
L 05/16/2013 - 12:55:12: Team "Red" triggered "pointcaptured" (cp "1") (cpname "#Badlands_cap_blue_cp2") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Red>") (position1 "-1795 -1753 407") 
L 05/16/2013 - 12:55:24: Team "Red" triggered "pointcaptured" (cp "0") (cpname "#Badlands_cap_blue_cp1") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Red>") (position1 "-725 -4066 0") 
L 05/16/2013 - 12:55:24: World triggered "Round_Win" (winner "Red")
L 05/16/2013 - 12:55:24: World triggered "Round_Length" (seconds "64.82")
L 05/16/2013 - 12:55:24: Team "Red" current score "2" with "1" players
L 05/16/2013 - 12:55:24: Team "Blue" current score "0" with "0" players
L 05/16/2013 - 12:55:29: World triggered "Round_Start"
L 05/16/2013 - 12:55:29: "Mycologist<2><STEAM_0:0:10026749><Red>" spawned as "scout"
L 05/16/2013 - 12:56:02: Team "Red" triggered "pointcaptured" (cp "2") (cpname "#Badlands_cap_cp3") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Red>") (position1 "-56 -131 296") 
L 05/16/2013 - 12:56:05: "Mycologist<3><STEAM_0:0:10026749><Red>" picked up item "medkit_medium"
L 05/16/2013 - 12:56:05: "Mycologist<3><STEAM_0:0:10026749><Red>" picked up item "ammopack_small"
L 05/16/2013 - 12:56:32: Team "Red" triggered "pointcaptured" (cp "1") (cpname "#Badlands_cap_blue_cp2") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Red>") (position1 "-1794 -1770 402") 
L 05/16/2013 - 12:56:32: "Mycologist<3><STEAM_0:0:10026749><Red>" picked up item "medkit_small"
L 05/16/2013 - 12:56:38: "Mycologist<3><STEAM_0:0:10026749><Red>" picked up item "ammopack_small"
L 05/16/2013 - 12:56:44: Team "Red" triggered "pointcaptured" (cp "0") (cpname "#Badlands_cap_blue_cp1") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Red>") (position1 "-757 -4142 0") 
L 05/16/2013 - 12:56:44: World triggered "Round_Win" (winner "Red")
L 05/16/2013 - 12:56:44: World triggered "Round_Length" (seconds "75.33")
L 05/16/2013 - 12:56:44: Team "Red" current score "3" with "1" players
L 05/16/2013 - 12:56:44: Team "Blue" current score "0" with "0" players
L 05/16/2013 - 12:56:49: Team "RED" triggered "Intermission_Win_Limit"
L 05/16/2013 - 12:56:49: World triggered "Game_Over" reason "Reached Win Limit"
L 05/16/2013 - 12:56:49: Team "Red" final score "3" with "1" players
L 05/16/2013 - 12:56:49: Team "Blue" final score "0" with "0" players
L 05/16/2013 - 12:56:49: Log closing...
L 05/16/2013 - 12:56:49: Log file closed
Second half
Code:
L 05/16/2013 - 12:56:49: Log file started (file "logs\L0516001.log") (game "C:\servers\dsgls1\tf") (version "5287")
L 05/16/2013 - 12:56:49: "Mycologist<3><STEAM_0:0:10026749><Red>" joined team "Spectator"
L 05/16/2013 - 12:56:49: "Mycologist<3><STEAM_0:0:10026749><Spectator>" joined team "Blue"
L 05/16/2013 - 12:56:49: "Mycologist<2><STEAM_0:0:10026749><Blue>" spawned as "scout"
L 05/16/2013 - 12:57:00: "Mycologist<3><STEAM_0:0:10026749><Blue>" say "!ready"
L 05/16/2013 - 12:57:02: "Mycologist<3><STEAM_0:0:10026749><Blue>" joined team "Red"
L 05/16/2013 - 12:57:02: "Mycologist<3><STEAM_0:0:10026749><Red>" committed suicide with "world" (attacker_position "-472 -4626 192")
L 05/16/2013 - 12:57:07: "Mycologist<3><STEAM_0:0:10026749><Red>" say "!ready"
L 05/16/2013 - 12:57:09: "Mycologist<2><STEAM_0:0:10026749><Red>" spawned as "scout"
L 05/16/2013 - 12:57:18: "Console<0><Console><Console>" say "[DSGL] Match will begin in 5 seconds..."
L 05/16/2013 - 12:57:23: World triggered "Round_Start"
L 05/16/2013 - 12:57:23: "Mycologist<2><STEAM_0:0:10026749><Red>" spawned as "scout"
L 05/16/2013 - 12:57:29: "Mycologist<3><STEAM_0:0:10026749><Red>" joined team "Blue"
L 05/16/2013 - 12:57:29: "Mycologist<3><STEAM_0:0:10026749><Blue>" committed suicide with "world" (attacker_position "608 4512 192")
L 05/16/2013 - 12:57:30: "Mycologist<3><STEAM_0:0:10026749><Blue>" changed role to "soldier"
L 05/16/2013 - 12:57:35: "Mycologist<3><STEAM_0:0:10026749><Blue>" changed role to "scout"
L 05/16/2013 - 12:57:48: "Mycologist<2><STEAM_0:0:10026749><Blue>" spawned as "scout"
L 05/16/2013 - 12:58:16: Team "Blue" triggered "pointcaptured" (cp "2") (cpname "#Badlands_cap_cp3") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Blue>") (position1 "-80 70 303") 
L 05/16/2013 - 12:58:37: Team "Blue" triggered "pointcaptured" (cp "3") (cpname "#Badlands_cap_red_cp2") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Blue>") (position1 "1797 1662 407") 
L 05/16/2013 - 12:58:48: Team "Blue" triggered "pointcaptured" (cp "4") (cpname "#Badlands_cap_red_cp1") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Blue>") (position1 "720 4136 0") 
L 05/16/2013 - 12:58:48: World triggered "Round_Win" (winner "Blue")
L 05/16/2013 - 12:58:48: World triggered "Round_Length" (seconds "84.69")
L 05/16/2013 - 12:58:48: Team "Red" current score "0" with "0" players
L 05/16/2013 - 12:58:48: Team "Blue" current score "1" with "1" players
L 05/16/2013 - 12:58:53: World triggered "Round_Start"
L 05/16/2013 - 12:58:53: "Mycologist<2><STEAM_0:0:10026749><Blue>" spawned as "scout"
L 05/16/2013 - 12:59:26: Team "Blue" triggered "pointcaptured" (cp "2") (cpname "#Badlands_cap_cp3") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Blue>") (position1 "63 112 297") 
L 05/16/2013 - 12:59:46: Team "Blue" triggered "pointcaptured" (cp "3") (cpname "#Badlands_cap_red_cp2") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Blue>") (position1 "1827 1628 407") 
L 05/16/2013 - 12:59:57: Team "Blue" triggered "pointcaptured" (cp "4") (cpname "#Badlands_cap_red_cp1") (numcappers "1") (player1 "Mycologist<3><STEAM_0:0:10026749><Blue>") (position1 "778 4100 0") 
L 05/16/2013 - 12:59:57: World triggered "Round_Win" (winner "Blue")
L 05/16/2013 - 12:59:57: World triggered "Round_Length" (seconds "64.77")
L 05/16/2013 - 12:59:57: Team "Red" current score "0" with "0" players
L 05/16/2013 - 12:59:57: Team "Blue" current score "2" with "1" players
L 05/16/2013 - 12:59:57: Log file closed
__________________

mycologist is offline
Nikkii
Member
Join Date: Feb 2012
Old 05-16-2013 , 18:39   Re: [TF2] LogUpload (v0.1.1, 4/14/2013)
Reply With Quote #14

So from what I see MatchMod calls mp_tournament_restart at the end of the second half there after a win by score which forces the second half to end, so it never ends up having the tf_game_over event called (since MatchMod handles scores). The easiest way to fix it is by modifying MatchMod to either hook into the natives in LogUpload or make it fire a tf_game_over event, I could possibly modify it if you would be willing to test the modifications, if so just add me on steam (I pmed you my profile) and let me know

Edit: Also, since this is really nothing I can fix in LogUpload itself without messing around with systems introduced by MatchMod, I'll likely just have a LogUpload compatible MatchMod and provide it in the thread if the original MatchMod creator is fine with it
__________________
Owner of ProbablyAServer, a server without game changing mods and donation benefits

RCON Helper | [TF2] LogUpload | CCC Donator Tags | PHP Steam API Wrapper

Last edited by Nikkii; 05-16-2013 at 18:47.
Nikkii is offline
Hawkeye-
Senior Member
Join Date: Jan 2009
Old 05-24-2013 , 03:14   Re: [TF2] LogUpload (v0.1.1, 4/14/2013)
Reply With Quote #15

Let me know what changes are made, I can modify the second half to fire an event or anything.. The reason I forcefully kill the match is the way scoring works by the league rules. I can manually fire it if that will help.

Edit: Specifically, if there is something that makes sense and won't cause issues if the log uploader is not there I will integrate it in.

Last edited by Hawkeye-; 05-24-2013 at 03:15.
Hawkeye- is offline
Nikkii
Member
Join Date: Feb 2012
Old 05-26-2013 , 03:00   Re: [TF2] LogUpload (v0.1.1, 4/14/2013)
Reply With Quote #16

Quote:
Originally Posted by Hawkeye- View Post
Let me know what changes are made, I can modify the second half to fire an event or anything.. The reason I forcefully kill the match is the way scoring works by the league rules. I can manually fire it if that will help.

Edit: Specifically, if there is something that makes sense and won't cause issues if the log uploader is not there I will integrate it in.
You could likely just fire the tf_game_over or teamplay_game_over event with the reason being 'winlimit', it'll let the plugin know that the game is over and that it should upload the logs. It shouldn't mess with anything else, but I'm not sure if it'll cause problems with the game itself seeing the event.
__________________
Owner of ProbablyAServer, a server without game changing mods and donation benefits

RCON Helper | [TF2] LogUpload | CCC Donator Tags | PHP Steam API Wrapper
Nikkii is offline
Hawkeye-
Senior Member
Join Date: Jan 2009
Old 06-04-2013 , 17:25   Re: [TF2] LogUpload (v0.1.1, 4/14/2013)
Reply With Quote #17

I'll poke around and see if I can get this to work. There might be a different way to work the two halves to have it natively fire I was working on.
Hawkeye- is offline
Nikkii
Member
Join Date: Feb 2012
Old 06-04-2013 , 17:58   Re: [TF2] LogUpload (v0.1.1, 4/14/2013)
Reply With Quote #18

Quote:
Originally Posted by Hawkeye- View Post
I'll poke around and see if I can get this to work. There might be a different way to work the two halves to have it natively fire I was working on.
The only problem you'll have is probably going to be your plugin also hooking the event, I'm not sure if there's a flag to stop events from going to the current plugin only or if you'll have to simply check a flag set when the event is called from the round end function.

v0.1.3 has been released, including sv_logsdir support, a new native, a sanity check to prevent mass uploading of logs, BLUESCORE and REDSCORE replacements, Log* used instead of PrintToServer, and of course auto updating.
__________________
Owner of ProbablyAServer, a server without game changing mods and donation benefits

RCON Helper | [TF2] LogUpload | CCC Donator Tags | PHP Steam API Wrapper

Last edited by Nikkii; 06-09-2013 at 17:52.
Nikkii is offline
Nikkii
Member
Join Date: Feb 2012
Old 06-24-2013 , 09:33   Re: [TF2] LogUpload (v0.1.3, 6/4/2013)
Reply With Quote #19

I've added a small plugin which emulates Sizzling Stats' in-game trigger but for logs.tf and LogUpload (.ss will bring it up, so will sm_logs, /logs and !logs), download it here:

Source - Plugin
__________________
Owner of ProbablyAServer, a server without game changing mods and donation benefits

RCON Helper | [TF2] LogUpload | CCC Donator Tags | PHP Steam API Wrapper

Last edited by Nikkii; 06-24-2013 at 09:38.
Nikkii is offline
dreckleberg
New Member
Join Date: Jun 2013
Old 06-28-2013 , 20:15   Re: [TF2] LogUpload (v0.1.3, 6/4/2013)
Reply With Quote #20

Nikkii is the best!
dreckleberg is offline
Reply



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 17:50.


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