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

[Any] Veterans Only (v1.3, 2020-06-10)


Post New Thread Reply   
 
Thread Tools Display Modes
gulverene
Senior Member
Join Date: Nov 2008
Location: Türkiye
Old 12-09-2018 , 16:03   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #81

Quote:
Originally Posted by arne1288 View Post
If you read above, you will see the response. Not just once, but multiple times.

Just follow Post #54, and it will.
Thanks. Sorry ı not looked. Plugin workin. Plugin some players do not see the playing time. Thanks.
__________________
My SeRVeR
gulverene is offline
Send a message via Skype™ to gulverene
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 01-26-2019 , 10:44   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #82

Quote:
Originally Posted by GoGetSomeSleep View Post
[veterans.smx] VeteransOnly: Failed to retrieve user's playtime (HTTP status: 504)
i am using https://steamapi.darkserv.download/veterans/
A crashed harddisk was causing issues on the server, so it seems like I have quite some things to do now.

It has been moved to another server now, and should be working again.

That other server is however experiencing some high latency with the Steam network, that may be providing further hiccups. I'll do some further maintenance very soon (expect it done within the next few hours), and ensure that it will be 100% normal again ASAP.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].

Last edited by DarkDeviL; 01-26-2019 at 10:53.
DarkDeviL is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 01-26-2019 , 14:45   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #83

Quote:
Originally Posted by GoGetSomeSleep View Post
players with a hidden profile, seems to have played for 0 minutes.

"sm_veterans_kickprivate", "0",
on .sp, cfg, server config and console but script

still being kicked out hidden profile players of the server

"kickprivate 0" does not stop blocking hidden accounts. The playing time of hidden accounts appears to be zero and they are discarded because they are below this limit. Is there a way to solve this problem by writing a command line so that the ones that appear to be zero will be ignored? Someone who can help and update the script?

  1. Profile is private, FINAL ACTION = PRIVATE.
  2. Profile is public, but game details is private. Since Veterans does actually need game details, FINAL ACTION = PRIVATE.
  3. Profile is public, and game details is public, but the total game time is private. FINAL ACTION = 0 minutes playtime on profile.
  4. Profile is public, game details public, total game time is public, FINAL ACTION = comparing settings with game time on Steam.

Whether 3 or 4 takes then depends on your server's settings, e.g. sm_veterans_mintotal and sm_veterans_mintotalminuslastweek.

With a minimum of 1 minute or more on your server settings, 3 will obviously throw the player away.

That's how it works, at least when using the steamapi.darkserv.download endpoint. I won't be able to provide any assistance when you're using any other end points than that one.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
gulverene
Senior Member
Join Date: Nov 2008
Location: Türkiye
Old 03-10-2019 , 14:07   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #84

Quote:
Originally Posted by arne1288 View Post
A crashed harddisk was causing issues on the server, so it seems like I have quite some things to do now.

It has been moved to another server now, and should be working again.

That other server is however experiencing some high latency with the Steam network, that may be providing further hiccups. I'll do some further maintenance very soon (expect it done within the next few hours), and ensure that it will be 100% normal again ASAP.
Is there improvement?
__________________
My SeRVeR
gulverene is offline
Send a message via Skype™ to gulverene
mkvegas
Junior Member
Join Date: Apr 2019
Old 04-21-2019 , 17:00   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #85

Hello. I was hoping you someone could help me...
I want to know if I can change some convar so as to make this plugin allow clients with public profile and required hours, who had private profile before getting kicked out of the server. I tried changing the convar sm_veterans_cachetime to 1 but I don't quite understand this cvar. My current settings are:

// This file was auto-generated by SourceMod (v1.9.0.6276)
// ConVars for plugin "veterans.smx"


// Should me ban the player instead of kicking and if we should, for how long (in minutes)?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "31536000.000000"
sm_veterans_bantime "0"

// Amount of time in seconds that we should not send a delicate request for the same query.
// -
// Default: "86400"
// Minimum: "0.000000"
// Maximum: "31536000.000000"
sm_veterans_cachetime "1"

// Is VeteransOnly plugin enable?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_veterans_enable "1"

// Steam's Store id of the game you want us to check against?
// -
// Default: "730"
// Minimum: "0.000000"
// Maximum: "100000000.000000"
sm_veterans_gameid "730"

// Should we kick the player when something bad happens such as failing to retrieve the user's info?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_veterans_kickfailure "0"

// Should we kick the player when he/she has a private or friend only profile?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_veterans_kickprivate "1"

// Minimum total playtime amount that player needs to have (in minutes)?
// -
// Default: "6000"
// Minimum: "0.000000"
// Maximum: "600000.000000"
sm_veterans_mintotal "15000"

// Minimum total playtime amount (excluding last 2 weeks) that player needs to have (in minutes)?
// -
// Default: "3000"
// Minimum: "0.000000"
// Maximum: "600000.000000"
sm_veterans_mintotalminuslastweeks "0"

// Maximum number of seconds till we consider the requesting connection timed out?
// -
// Default: "10"
// Minimum: "0.000000"
// Maximum: "300.000000"
sm_veterans_timeout "300"

// Address of the PHP file responsible for getting user played time.
// -
// Default: "http://falahati.net/steamapi/queryPlaytime.php"
sm_veterans_url "http://falahati.net/steamapi/queryPlaytime.php"
mkvegas is offline
DarkSoroush
Member
Join Date: Jan 2015
Old 04-26-2019 , 14:44   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #86

Please guys, if you have a problem with the plugin, go to the project's page in GitHub and create a new issue. Otherwise, it takes me like 2 years to check this page again. Github, however, sends an email to me and also allows me to keep track of changes and issues.

https://github.com/falahati/veterans

I have noted the problem with new privacy settings and will try to solve them as soon as I can find some spare time.

EDIT: Source code of `queryPlaytime.php` is also available as part of the project in GitHub.

Last edited by DarkSoroush; 04-26-2019 at 14:48.
DarkSoroush is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 12-31-2019 , 10:39   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #87

can someone update it to make it work again?
asdfxD is offline
SnowHP
Senior Member
Join Date: Sep 2016
Location: Porto, Portugal
Old 04-24-2020 , 09:13   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #88

Its possible to add verification for only non prime users on csgo? For examplo , non prime need to have 100 hours?
__________________
SnowHP is offline
SnowHP
Senior Member
Join Date: Sep 2016
Location: Porto, Portugal
Old 04-29-2020 , 11:55   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #89

Is it working with non primes? Like they dont show the game on the profile
__________________
SnowHP is offline
DarkSoroush
Member
Join Date: Jan 2015
Old 06-09-2020 , 20:47   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #90

Hey guys,

I just released an update that includes new cvars for excluding privileged players and players with a reserved slot. I also added two commands to add and remove players from an exclusion list. I also change the logic of the backend to not cache users that have zero playtime. These changes are available here:
https://github.com/falahati/veterans/releases

However, I didn't test this version since I don't have a server anymore, so it would be great if someone could tell me if it works correctly. I am not a sourcepawn developer and this was one of my only projects. In fact I had to read the documentation again to make these simple changes since it was a while since I touched sourcepawn last time. So I am very sorry if the code is not very good; I just want you to know that I am aware of that. However, the project is open source and you guys are always welcome to modify it or to suggest changes.

By the way, the backend code is not very aware of the possible private/public situations with steam profiles now. When I first wrote it, the user's profile could only be private or public, but it seems that it is now possible to have a public profile with no playtime reported. Can someone tell me how steam profiles work now? I am confused.
DarkSoroush 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:12.


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