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

[TF2] Player Ranks


Post New Thread Reply   
 
Thread Tools Display Modes
krispx
Senior Member
Join Date: Jul 2010
Old 10-13-2013 , 07:21   Re: [TF2] Player Ranks
Reply With Quote #11

Another errors logs:

Code:
L 10/13/2013 - 13:19:41: [SM] Plugin encountered error 25: Call was aborted
L 10/13/2013 - 13:19:41: [SM] Native "SetFailState" reported: Could not create a new user record for player <STEAM_0:1:26325131> with name -FgS- Magist', left with 0.00 points.
L 10/13/2013 - 13:19:41: [SM] Displaying call stack trace for plugin "playerranks.smx":
L 10/13/2013 - 13:19:41: [SM]   [0]  Line 917, /home/groups/alliedmodders/forums/files/1/5/7/8/4/5/126748.attach::SaveScore()
L 10/13/2013 - 13:19:41: [SM]   [1]  Line 809, /home/groups/alliedmodders/forums/files/1/5/7/8/4/5/126748.attach::Updater()
Code:
L 10/13/2013 - 14:07:58: [SM] Displaying call stack trace for plugin "playerranks.smx":
L 10/13/2013 - 14:07:58: [SM]   [0]  Line 543, /home/groups/alliedmodders/forums/files/1/5/7/8/4/5/126748.attach::OnPlayerDisconnect()
L 10/13/2013 - 14:07:58: [SM] Native "IsClientAuthorized" reported: Client index 0 is invalid


And now server freez at 2min interval
.

Last edited by krispx; 10-13-2013 at 08:58. Reason: added logs + more infos
krispx is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 10-13-2013 , 08:57   Re: [TF2] Player Ranks
Reply With Quote #12

Dont know whether you give points for destroying minisentries but you should give different amount of points for every lvl/type of sentry because they are not the same.

Suggestion:
minisentry/lvl 1 sentry - 1.00
lvl 2 sentry - 2.00
lvl 3 sentry - 3.00

Also would like to know whether you give points for different map objectives...

I tried the last version on my server with a few people and it became really laggy dude. With only 6/24 on server.
__________________

Last edited by luki1412; 10-13-2013 at 10:06.
luki1412 is offline
Aderic
Senior Member
Join Date: Oct 2011
Old 10-13-2013 , 18:06   Re: [TF2] Player Ranks
Reply With Quote #13

Quote:
Originally Posted by krispx View Post
Another errors logs:

Code:
L 10/13/2013 - 13:19:41: [SM] Plugin encountered error 25: Call was aborted
L 10/13/2013 - 13:19:41: [SM] Native "SetFailState" reported: Could not create a new user record for player <STEAM_0:1:26325131> with name -FgS- Magist', left with 0.00 points.
L 10/13/2013 - 13:19:41: [SM] Displaying call stack trace for plugin "playerranks.smx":
L 10/13/2013 - 13:19:41: [SM]   [0]  Line 917, /home/groups/alliedmodders/forums/files/1/5/7/8/4/5/126748.attach::SaveScore()
L 10/13/2013 - 13:19:41: [SM]   [1]  Line 809, /home/groups/alliedmodders/forums/files/1/5/7/8/4/5/126748.attach::Updater()
Code:
L 10/13/2013 - 14:07:58: [SM] Displaying call stack trace for plugin "playerranks.smx":
L 10/13/2013 - 14:07:58: [SM]   [0]  Line 543, /home/groups/alliedmodders/forums/files/1/5/7/8/4/5/126748.attach::OnPlayerDisconnect()
L 10/13/2013 - 14:07:58: [SM] Native "IsClientAuthorized" reported: Client index 0 is invalid


And now server freez at 2min interval
.
Thank you very much for the info. Both issues resolved, had no idea client index 0 could "disconnect". The other error dealt with string escaping, this guy had a single quote in his name. Fixed.

Do you mean the plugin's update interval was set to 2 minutes or every 2 minutes the server just freezes?

I've never had this to happen on previous versions, but I haven't been able to fully test these newer versions either. VPS down for the last 4 days. I'll take a look at what I can with bots on the home network and see if I can replicate this issue.

Quote:
Originally Posted by luki1412 View Post
Dont know whether you give points for destroying minisentries but you should give different amount of points for every lvl/type of sentry because they are not the same.

Suggestion:
minisentry/lvl 1 sentry - 1.00
lvl 2 sentry - 2.00
lvl 3 sentry - 3.00

Also would like to know whether you give points for different map objectives...

I tried the last version on my server with a few people and it became really laggy dude. With only 6/24 on server.
I'll look into basing points off of sentry level, never even thought of that, good suggestion

This plugin should NEVER create any sort of lag. I'll take a look at the plugin, are you absolutely positively sure this plugin was the sole cause?

Update: Plugin is now capable of what you have suggested.
__________________

Last edited by Aderic; 10-13-2013 at 20:41. Reason: Updated
Aderic is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 10-14-2013 , 13:49   Re: [TF2] Player Ranks
Reply With Quote #14

Yes, I am sure. I enabled it on my server and I could really feel that it became laggy... I also asked other people and they have said that it is so. After I disabled it using commands, it stopped ... Server I tried it on is running the Hidden mod(tf2).
__________________

Last edited by luki1412; 10-14-2013 at 14:02.
luki1412 is offline
Aderic
Senior Member
Join Date: Oct 2011
Old 10-14-2013 , 14:04   Re: [TF2] Player Ranks
Reply With Quote #15

Quote:
Originally Posted by luki1412 View Post
Yes, I am sure. I enabled it on my server and I could really feel that it became laggy... I also asked other people and they have said that it is so. After I disabled it using commands, it stopped ... Server I tried it on is running the Hidden mod(tf2).
Hmmm. I don't know if any sort of clashes it could be having. Last night I ran it for 4 hours straight with 2 players and... 11 bots. so 13/24

It was fine. I'll look into any handles that may not be closing.. if that doesn't solve it I'm at a loss. This plugin should create absolutely no lag.

On a side-note though, version 1.3.1 has threaded the save queries. Probably wouldn't notice any performance increase but it just seems right.

Edit: There are no performance issues, luki1412 contacted me on Steam and said the issue was resolved.

Updated to 1.5
...
Updated to 1.6!
__________________

Last edited by Aderic; 10-18-2013 at 08:21. Reason: Update
Aderic is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 10-18-2013 , 14:41   Re: [TF2] Player Ranks
Reply With Quote #16

Yes no longer getting lags. I have tested your plugin on one of my servers and it seems to be stable right now.

Suggestion:
sm_rankingrewardassist - Point reward multiplier for assisting a bot/player kill. At 0.75, this would give 75% of the reward to the assister. Default: 0.75
sm_rankingrewardheadshot -
Point reward multiplier for killing a bot/player via a headshot. Default: 1.33
sm_rankingrewardbackstab -
Point reward multiplier for backstabbing a bot/player. Default: 1.33
These 3should not be merged together with bots, because bots are much easier targets or they are set for something different on some servers, so they dont move or something ... People should be able to set them for themselves.Btw good job on this plugin ;)
__________________
luki1412 is offline
krispx
Senior Member
Join Date: Jul 2010
Old 10-18-2013 , 15:04   Re: [TF2] Player Ranks
Reply With Quote #17

Code:
L 10/18/2013 - 21:03:44: [SM] Native "IsFakeClient" reported: Client index 0 is invalid
L 10/18/2013 - 21:03:44: [SM] Displaying call stack trace for plugin "playerranks.smx":
L 10/18/2013 - 21:03:44: [SM]   [0]  Line 664, E:\HLDS\steamapps\common\Team Fortress 2 Dedicated Server\tf\addons\sourcemod\scripting\playerranks.sp::OnPlayerTeam()
krispx is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 10-18-2013 , 20:04   Re: [TF2] Player Ranks
Reply With Quote #18

I got these

PHP Code:
L 10/19/2013 02:00:42: [SMNative "SQL_TQuery" reportedInvalid database Handle 0 (error4)
L 10/19/2013 02:00:42: [SMDisplaying call stack trace for plugin "playerranks_source.smx":
L 10/19/2013 02:00:42: [SM]   [0]  Line 1104playerranks_source.sp::RunCleanup()
L 10/19/2013 02:00:42: [SM]   [1]  Line 534playerranks_source.sp::OnMapStart() 
PHP Code:
L 10/18/2013 23:50:56: [SMNative "IsFakeClient" reportedClient index 0 is invalid
L 10
/18/2013 23:50:56: [SMDisplaying call stack trace for plugin "playerranks_source.smx":
L 10/18/2013 23:50:56: [SM]   [0]  Line 664playerranks_source.sp::OnPlayerTeam() 
__________________

Last edited by luki1412; 10-18-2013 at 20:05.
luki1412 is offline
Aderic
Senior Member
Join Date: Oct 2011
Old 10-18-2013 , 22:41   Re: [TF2] Player Ranks
Reply With Quote #19

Quote:
Originally Posted by luki1412 View Post
Yes no longer getting lags. I have tested your plugin on one of my servers and it seems to be stable right now.

Suggestion:
sm_rankingrewardassist - Point reward multiplier for assisting a bot/player kill. At 0.75, this would give 75% of the reward to the assister. Default: 0.75
sm_rankingrewardheadshot -
Point reward multiplier for killing a bot/player via a headshot. Default: 1.33
sm_rankingrewardbackstab -
Point reward multiplier for backstabbing a bot/player. Default: 1.33
These 3should not be merged together with bots, because bots are much easier targets or they are set for something different on some servers, so they dont move or something ... People should be able to set them for themselves.Btw good job on this plugin ;)
For balancing though, in the event that a bot is killed, the CVAR for the bot is taken into consideration and multiplied by these numbers. If you combine map configs with this plugin you can scale (or set) the bot point reward CVAR to 0 if said map has no nav file.

These issues you guys have posted should now be resolved. Updated to 1.6.2.
I'm still in a spot where I can't really test this plugin with multiple people because my VPS has been giving me problems as of late, so I apologize for the inconvenience this plugin may give you, I am working on it 100%.

Thanks for the feedback.

Updated to 1.7
__________________

Last edited by Aderic; 10-25-2013 at 12:00.
Aderic is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 10-27-2013 , 19:12   Re: [TF2] Player Ranks
Reply With Quote #20

Just to check. This works with multiple servers reading/writing from the same ranks with mysql right?
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!

Last edited by jpwanabe; 10-27-2013 at 19:12.
jpwanabe 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 14:25.


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