Raised This Month: $32 Target: $400
 8% 

Save Scores (1.3.4)


Post New Thread Reply   
 
Thread Tools Display Modes
WebNoob
Senior Member
Join Date: Jul 2008
Old 05-02-2009 , 17:23   Re: Save Scores v1.2.2
Reply With Quote #101

Quote:
Originally Posted by DontWannaName View Post
Basically just play a full round till it ends and have some points. Say you have 32 points or something. Next go to console and type retry, as you connect you'll see a saved score loaded notification in the lower left. Play the current round to the end and build upon your 32 points. Lets say you end with 57 points, if no one else has exceeded that amount you will rank number one MVP with 57 points instead of the 25 you actually got that round.

On top of this if you have not played a better life than 32 points with your current class, your first death will result in a notification that you "played your best life yet with a total of 32 points!" or however that goes.
I've also seen this problem when testing this on one of our servers. I wish I could suggest a solution, but this has me scratching my head as well. I've had to remove it for the moment, as so many of our players are fixated on their stats, and it was throwing them way out of wack.
WebNoob is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 05-14-2009 , 14:22   Re: Save Scores v1.2.2
Reply With Quote #102

Good news for TF admins. After some hard investigation I found a few good methods of how to keep ingame stats working correctly. Methods are very tricky and require tests but it should work well.
I am plannig to funish new version this weekend.
__________________
For admins: My plugins

For developers: Colors library

Last edited by exvel; 05-14-2009 at 14:26.
exvel is offline
Send a message via ICQ to exvel
Dirton
BANNED
Join Date: Oct 2008
Old 05-14-2009 , 17:07   Re: Save Scores v1.2.2
Reply With Quote #103

Огромное спасибо за плугин, но с сорсмод 1.2 не скомпилился, эррор какой-то. Пришлось ставить на честном слове. Все же лучше чем specmoney с его бесконечными invalid timer handel.

Last edited by Dirton; 05-14-2009 at 17:12.
Dirton is offline
puopjik
Junior Member
Join Date: Mar 2009
Old 05-14-2009 , 20:29   Re: Save Scores v1.2.2
Reply With Quote #104

Hi there, I'm a DoD:S admin and an Sourcemod Plugin Developper as well.


I just mod this plugin to make it work with DoD:S, and it was really simple!
Since it works exactly like CSS.

So please, exvel, remove DoD from the unsupported game, and treat it as you do with CSS.


This works also in DoD:S
Code:
// Get player's score
public GetScore(client)
{
    return GetEntProp(client, Prop_Data, "m_iFrags");
}

// Get player's death count
public GetDeaths(client)
{
    return GetEntProp(client, Prop_Data, "m_iDeaths");        
}

// Set player's score
public SetScore(client, score)
{
    SetEntProp(client, Prop_Data, "m_iFrags", score);
}

public SetDeaths(client, deaths)
{
    SetEntProp(client, Prop_Data, "m_iDeaths", deaths);
}
Thanks for it ;)
puopjik is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 05-15-2009 , 00:23   Re: Save Scores v1.2.2
Reply With Quote #105

Quote:
Originally Posted by puopjik View Post
Hi there, I'm a DoD:S admin and an Sourcemod Plugin Developper as well.


I just mod this plugin to make it work with DoD:S, and it was really simple!
Since it works exactly like CSS.

So please, exvel, remove DoD from the unsupported game, and treat it as you do with CSS.


This works also in DoD:S
Code:
// Get player's score
public GetScore(client)
{
    return GetEntProp(client, Prop_Data, "m_iFrags");
}

// Get player's death count
public GetDeaths(client)
{
    return GetEntProp(client, Prop_Data, "m_iDeaths");        
}

// Set player's score
public SetScore(client, score)
{
    SetEntProp(client, Prop_Data, "m_iFrags", score);
}

public SetDeaths(client, deaths)
{
    SetEntProp(client, Prop_Data, "m_iDeaths", deaths);
}
Thanks for it ;)
Wow, this didn't worked for me when I created the first version of this plugin. Maybe something chaged since that time with upates. Anyway, thank you for advice. I will try to reproduce it on my local server.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 05-15-2009 , 00:26   Re: Save Scores v1.2.2
Reply With Quote #106

Quote:
Originally Posted by Dirton View Post
Огромное спасибо за плугин, но с сорсмод 1.2 не скомпилился, эррор какой-то. Пришлось ставить на честном слове. Все же лучше чем specmoney с его бесконечными invalid timer handel.
If you want to compile it by yourself you also need a CalcPlayerScore extension.
Если хочешь скомпилировать самостоятельно, то не забудь это сделать вместе с расширением CalcPlayerScore, даже, если компилишь не для TF.
__________________
For admins: My plugins

For developers: Colors library

Last edited by exvel; 05-15-2009 at 00:28.
exvel is offline
Send a message via ICQ to exvel
WebNoob
Senior Member
Join Date: Jul 2008
Old 05-15-2009 , 13:12   Re: Save Scores v1.2.2
Reply With Quote #107

Quote:
Originally Posted by exvel View Post
Good news for TF admins. After some hard investigation I found a few good methods of how to keep ingame stats working correctly. Methods are very tricky and require tests but it should work well.
I am plannig to funish new version this weekend.
That's great news - I'm looking forward to it!

Any chance you could let us know what your plan is to conquer the problem?
WebNoob is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 05-15-2009 , 17:38   Re: Save Scores v1.2.2
Reply With Quote #108

Quote:
Originally Posted by WebNoob View Post
Any chance you could let us know what your plan is to conquer the problem?
There are 3 situations when stats is uploaded to the client and 1 situation when win panel is showed. I just detected all this situations by using events, timers and commnds and so when stats ready to upload to the client plugin changes player's score to not modified value and after stats uploaded return score back to restored value.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 05-24-2009 , 10:18   Re: Save Scores v1.3.0
Reply With Quote #109

Update: v1.3.0 (beta)
  • Fixed incorrect stats working in Team Fortress 2
  • Added partial Day of Defeat: Source support
  • Optimization of save scores forever mode
  • Added auto-update functionality
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
WebNoob
Senior Member
Join Date: Jul 2008
Old 05-26-2009 , 11:32   Re: Save Scores v1.3.0
Reply With Quote #110

Quote:
Originally Posted by exvel View Post
Update: v1.3.0 (beta)
  • Fixed incorrect stats working in Team Fortress 2
  • Added partial Day of Defeat: Source support
  • Optimization of save scores forever mode
  • Added auto-update functionality
Has this been tested on TF2 to overcome the issue with incorrect stats reporting to steam?
WebNoob 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 06:07.


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