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

[TF2] tETF2LDivision v0.1.2 (2014-06-01)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Thrawn2
Veteran Member
Join Date: Apr 2009
Plugin ID:
2998
Plugin Version:
0.1.2
Plugin Category:
Statistical
Plugin Game:
Team Fortress 2
Plugin Dependencies:
Servers with this Plugin:
3 
Plugin Description:
Shows a players ETF2L team and division.
Old 06-08-2012 , 08:07   [TF2] tETF2LDivision v0.1.2 (2014-06-01)
Reply With Quote #1

Description:
This plugin shows a players ETF2L team and division in the server chat when she's joining the server.

Requirements:
ConVars:
  • sm_tetf2ldivision_enable Set to 0 to disable the plugin. Default is 1.
  • sm_tetf2ldivision_maxage Update infos about all players every x-th day. Default is 7.
  • sm_tetf2ldivision_teamtype The team type to show (6on6, Highlander, 2on2...). Default is 6on6.
  • sm_tetf2ldivision_seasonsonly Filter competition by category: everything that is not a regular season will be skipped. Default is 1.
  • sm_tetf2ldivision_announce Announce players on connect. Default is 1.
  • sm_tetf2ldivision_announce_adminsonly Announce players on connect to admins only. Default is 0.

Commands:
  • sm_div [<target>]
    Show information about the specified target (or all if omitted).

Notes:
Files will be cached in your configs/etf2lcache/ directory.

Build dependencies:
smlib.
Attached Files
File Type: sp Get Plugin or Get Source (tETF2LDivisions.sp - 491 views - 13.2 KB)
File Type: smx tETF2LDivisions.smx (18.7 KB, 595 views)
__________________
einmal mit profis arbeiten. einmal.

Last edited by Thrawn2; 06-01-2014 at 12:00. Reason: Update and cvar change
Thrawn2 is offline
NameUser
Senior Member
Join Date: Apr 2012
Location: Bay Area, California
Old 06-08-2012 , 13:34   Re: [TF2] tETF2LDivision v0.0.1 (2012-06-08)
Reply With Quote #2

Yay, you released it!
__________________
NameUser is offline
Send a message via Skype™ to NameUser
nTraum
Junior Member
Join Date: Aug 2012
Old 08-22-2012 , 17:49   Re: [TF2] tETF2LDivision v0.0.1 (2012-06-08)
Reply With Quote #3

Using it via curl, works like a charm. Thanks.
nTraum is offline
nTraum
Junior Member
Join Date: Aug 2012
Old 08-24-2012 , 11:13   Re: [TF2] tETF2LDivision v0.0.1 (2012-06-08)
Reply With Quote #4

Get errors when some people connect.

Code:
L 08/24/2012 - 17:06:43: "loukou19<82><STEAM_0:0:54129056><>" connected, address "90.177.115.139:10679"
Client "loukou19" connected (90.177.115.139:10679).
L 08/24/2012 - 17:06:43: [tETF2LDivisions.smx] Updating data for: STEAM_0:0:54129056
L 08/24/2012 - 17:06:43: [SM] Native "GetTrieString" reported: Invalid Handle 0 (error 4)
L 08/24/2012 - 17:06:43: [SM] Displaying call stack trace for plugin "tETF2LDivisions.smx":
L 08/24/2012 - 17:06:43: [SM]   [0]  Line 206, tETF2LDivisions.sp::GetAnnounceString()
L 08/24/2012 - 17:06:43: [SM]   [1]  Line 240, tETF2LDivisions.sp::AnnouncePlayerToAll()
L 08/24/2012 - 17:06:43: [SM]   [2]  Line 190, tETF2LDivisions.sp::OnEtf2lDataReady()
L 08/24/2012 - 17:06:43: "loukou19<82><STEAM_0:0:54129056><>" STEAM USERID validated
L 08/24/2012 - 17:07:12: "Rifat<81><STEAM_0:0:12798309><Red>" disconnected (reason "Disconnect by user.")
Code:
L 08/24/2012 - 17:05:37: "w                           ooF<80><STEAM_0:1:28684618><>" connected, address "80.216.
226.81:27005"
Client "w                           ooF" connected (80.216.226.81:27005).
L 08/24/2012 - 17:05:37: [tETF2LDivisions.smx] Updating data for: STEAM_0:1:28684618
L 08/24/2012 - 17:05:37: [SM] Native "GetTrieString" reported: Invalid Handle 0 (error 4)
L 08/24/2012 - 17:05:37: [SM] Displaying call stack trace for plugin "tETF2LDivisions.smx":
L 08/24/2012 - 17:05:37: [SM]   [0]  Line 206, tETF2LDivisions.sp::GetAnnounceString()
L 08/24/2012 - 17:05:37: [SM]   [1]  Line 240, tETF2LDivisions.sp::AnnouncePlayerToAll()
L 08/24/2012 - 17:05:37: [SM]   [2]  Line 190, tETF2LDivisions.sp::OnEtf2lDataReady()
L 08/24/2012 - 17:05:37: "w                           ooF<80><STEAM_0:1:28684618><>" STEAM USERID validated
Code:
L 08/24/2012 - 17:00:44: "Rifat<77><STEAM_0:0:12798309><>" connected, address "92.32.44.48:27005"
Client "Rifat" connected (92.32.44.48:27005).
L 08/24/2012 - 17:00:44: [tETF2LDivisions.smx] Updating data for: STEAM_0:0:12798309
L 08/24/2012 - 17:00:44: [SM] Native "GetTrieString" reported: Invalid Handle 0 (error 4)
L 08/24/2012 - 17:00:44: [SM] Displaying call stack trace for plugin "tETF2LDivisions.smx":
L 08/24/2012 - 17:00:44: [SM]   [0]  Line 206, tETF2LDivisions.sp::GetAnnounceString()
L 08/24/2012 - 17:00:44: [SM]   [1]  Line 240, tETF2LDivisions.sp::AnnouncePlayerToAll()
L 08/24/2012 - 17:00:44: [SM]   [2]  Line 190, tETF2LDivisions.sp::OnEtf2lDataReady()
Doesn't happen on every connect though.
nTraum is offline
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 08-26-2012 , 13:17   Re: [TF2] tETF2LDivision v0.0.2 (2012-08-26)
Reply With Quote #5

Source is on github now.

Updated to 0.0.2
  • Fixed above bug, thanks for reporting.
  • Also included an (untested and experimental) new command: sm_divdetail <player>
    Should open up your MOTD screen with the ETF2L profile of the player.
    Only if HTML MOTD screens are enabled though.
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline
memcpy
Junior Member
Join Date: Aug 2012
Old 08-27-2012 , 02:01   Re: [TF2] tETF2LDivision v0.0.2 (2012-08-26)
Reply With Quote #6

Code:
L 08/27/2012 - 01:40:34: -------- Mapchange to cp_badlands --------
L 08/27/2012 - 01:40:34: [SM] Unable to load plugin "tETF2LDivisions.smx": Native "FindStringTable" was not found
L 08/27/2012 - 01:40:34: [tDownloadCache.smx] Using Curl
[SM] Listing 10 plugins:
01 "Admin Menu" (1.4.5-dev) by AlliedModders LLC
02 "Supplemental Stats" (1.3.6) by Jean-Denis Caron
03 "Admin Help" (1.4.5-dev) by AlliedModders LLC
04 "Basic Votes" (1.4.5-dev) by AlliedModders LLC
05 "Basic Commands" (1.4.5-dev) by AlliedModders LLC
06 <Failed> "tETF2LDivision" (0.0.2) by Thrawn
07 "Match Recorder" (0.4) by carbon
08 "Basic Ban Commands" (1.4.5-dev) by AlliedModders LLC
09 "tDownloadCache" (0.0.2) by Thrawn
10 "Admin File Reader" (1.4.5-dev) by AlliedModders LLC

+ latest curl.ext and tinyxml.ext
memcpy is offline
userid_ivan
Junior Member
Join Date: May 2011
Old 08-29-2012 , 03:05   Re: [TF2] tETF2LDivision v0.0.2 (2012-08-26)
Reply With Quote #7

Hey!
There is a problem with creation of etf2lcache directory on linux systems. I have installed it on Ubuntu and it created etf2lcache directory with a strange permission like d-wxr----t and I couldn't access it.
I think the problem is on row 57 "CreateDirectory(sPath, 755);". The number should be converted in decimal value 493 (Check this topic: http://forums.alliedmods.net/showthread.php?t=91632)

Thanks for this nice plugin! ;)
userid_ivan is offline
nTraum
Junior Member
Join Date: Aug 2012
Old 08-30-2012 , 07:26   Re: [TF2] tETF2LDivision v0.0.2 (2012-08-26)
Reply With Quote #8

Quote:
Originally Posted by memcpy View Post
Code:
L 08/27/2012 - 01:40:34: -------- Mapchange to cp_badlands --------
L 08/27/2012 - 01:40:34: [SM] Unable to load plugin "tETF2LDivisions.smx": Native "FindStringTable" was not found
L 08/27/2012 - 01:40:34: [tDownloadCache.smx] Using Curl
[SM] Listing 10 plugins:
01 "Admin Menu" (1.4.5-dev) by AlliedModders LLC
02 "Supplemental Stats" (1.3.6) by Jean-Denis Caron
03 "Admin Help" (1.4.5-dev) by AlliedModders LLC
04 "Basic Votes" (1.4.5-dev) by AlliedModders LLC
05 "Basic Commands" (1.4.5-dev) by AlliedModders LLC
06 <Failed> "tETF2LDivision" (0.0.2) by Thrawn
07 "Match Recorder" (0.4) by carbon
08 "Basic Ban Commands" (1.4.5-dev) by AlliedModders LLC
09 "tDownloadCache" (0.0.2) by Thrawn
10 "Admin File Reader" (1.4.5-dev) by AlliedModders LLC

+ latest curl.ext and tinyxml.ext
I've heard people not having latest sourcemod dev + metamod dev snapshot get this error.
nTraum is offline
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 08-30-2012 , 08:24   Re: [TF2] tETF2LDivision v0.0.2 (2012-08-26)
Reply With Quote #9

Quote:
Originally Posted by userid_ivan View Post
There is a problem with creation of etf2lcache directory on linux systems.
Nice catch, thanks. Will be fixed in the next update.

Quote:
Originally Posted by nTraum View Post
I've heard people not having latest sourcemod dev + metamod dev snapshot get this error.
This.
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline
Mariano
Member
Join Date: May 2009
Location: Poland / Silesia
Old 08-30-2012 , 14:56   Re: [TF2] tETF2LDivision v0.0.2 (2012-08-26)
Reply With Quote #10

I got some error in logs:

Code:
L 08/30/2012 - 20:52:07: [SM] Unable to load extension "tinyxml.ext": /home/srcds/tf2/WAR/orangebox/tf/addons/sourcemod/extensions/tinyxml.ext.so: invalid ELF header
L 08/30/2012 - 20:52:08: [SM] Unable to load plugin "tETF2LDivisions.smx": Required extension "TinyXml" file("tinyxml.ext") not running
__________________
TryhardBrigade.com

European Team Fortress 2 Training Center

"We Are Hip-Hop"
KRS-One
Mariano 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 18:05.


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