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

Loyalty Plugin 2.1.1 (Updated 10-31-10)


Post New Thread Reply   
 
Thread Tools Display Modes
Nightbox
Senior Member
Join Date: Apr 2008
Old 11-08-2010 , 15:17   Re: Loyalty Plugin 2.1.1 (Updated 10-31-10)
Reply With Quote #41

I suggested you on Steam but i post here also: autobuy.

You pay a price, you get some days and everyday you will lose some points so you will have permanent while you have points.
__________________
Nightbox is offline
tcviper
Veteran Member
Join Date: Oct 2005
Location: Netherlands
Old 11-15-2010 , 04:34   Re: Loyalty Plugin 2.1.1 (Updated 10-31-10)
Reply With Quote #42

This Sourcebans detection sometimes does and sometimes doesnt work, for example now im getting the following with every restart:

First it says it didnt detect Sourcebans, then suddenly it says Loaded Sourcebans.

L 11/15/2010 - 10:23:09: [loyal.smx] Query failed(SQLErrorCheckCallback): Table 'steamfriends_sb.sm_admins' doesn't exist

This table DOES not exist actually because we are using sb_admins (sourcebans).
__________________
tcviper is offline
Send a message via MSN to tcviper
psychonic

BAFFLED
Join Date: May 2008
Old 11-21-2010 , 12:00   Re: Loyalty Plugin 2.1.1 (Updated 10-31-10)
Reply With Quote #43

The SB detection needs to be in OnAllPluginsLoaded.

Also, the following is horrible sanitizing
Code:
ReplaceString(name, sizeof(name), "'", "");

Use SQL_EscapeString. That's what it's there for.

Also, your late load support tries to lookup clients in the database before actually connecting to it.

Last edited by psychonic; 11-21-2010 at 12:28.
psychonic is offline
Fairy
Junior Member
Join Date: May 2010
Old 11-24-2010 , 15:15   Re: Loyalty Plugin 2.1.1 (Updated 10-31-10)
Reply With Quote #44

Hello,

I have a little Problem. I have tried to load your Plugin on my Server but all it does is that it spits out this:

Code:
L 11/24/2010 - 21:08:46: [SM] Native "SQL_ReadDriver" reported: Invalid database Handle 1/0 (error: 4)
L 11/24/2010 - 21:08:46: [SM] Displaying call stack trace for plugin "loyal.smx":
L 11/24/2010 - 21:08:46: [SM]   [0]  Line 137, /home/groups/alliedmodders/forums/files/4/3/1/7/5/76649.attach::OnPluginStart()
This Server is running on a Mod called Dystopia which is using the Orangebox Engine but doesn't support Assists. Just for additional Information.
Fairy is offline
Send a message via ICQ to Fairy
tcviper
Veteran Member
Join Date: Oct 2005
Location: Netherlands
Old 11-29-2010 , 05:45   Re: Loyalty Plugin 2.1.1 (Updated 10-31-10)
Reply With Quote #45

Attached an updated version with the following changes (thx to GameConnect.net and Psychonic!):

This version is for SOURCEBANS users only!!!

- Fixed Sourcebans detection (hardcoded Sourcebans only!)
- Removed loyalty points for admins
- Hardcoded Sourcebans group to 'Subscribers'
- Added !loyal to client !settings menu
- Some other small code fixes and bugs were fixed!

This is being used on the GameConnect.net servers and works flawlessly.
Attached Files
File Type: sp Get Plugin or Get Source (loyal.sp - 240 views - 20.4 KB)
File Type: smx loyal.smx (12.7 KB, 99 views)
__________________
tcviper is offline
Send a message via MSN to tcviper
siangc
Senior Member
Join Date: Mar 2010
Old 11-29-2010 , 13:50   Re: Loyalty Plugin 2.1.1 (Updated 10-31-10)
Reply With Quote #46

Quote:
Originally Posted by tcviper View Post
Attached an updated version with the following changes (thx to GameConnect.net and Psychonic!):

This version is for SOURCEBANS users only!!!

- Fixed Sourcebans detection (hardcoded Sourcebans only!)
- Removed loyalty points for admins
- Hardcoded Sourcebans group to 'Subscribers'
- Added !loyal to client !settings menu
- Some other small code fixes and bugs were fixed!

This is being used on the GameConnect.net servers and works flawlessly.
I cant find 'Subscribers' anywhere in the source code you posted
__________________
siangc is offline
tcviper
Veteran Member
Join Date: Oct 2005
Location: Netherlands
Old 12-01-2010 , 07:18   Re: Loyalty Plugin 2.1.1 (Updated 10-31-10)
Reply With Quote #47

Yeah my bad, you can ofcourse still define that with the sm_loyal_server_group thingy but the VIP group in Sourcebans will be excluded (for paid subscribers or VIP's).
__________________
tcviper is offline
Send a message via MSN to tcviper
Xsinthis
Senior Member
Join Date: Oct 2008
Location: Canadia, eh?
Old 12-01-2010 , 12:53   Re: Loyalty Plugin 2.1.1 (Updated 10-31-10)
Reply With Quote #48

Quote:
Originally Posted by Fairy View Post
Hello,

I have a little Problem. I have tried to load your Plugin on my Server but all it does is that it spits out this:

Code:
L 11/24/2010 - 21:08:46: [SM] Native "SQL_ReadDriver" reported: Invalid database Handle 1/0 (error: 4)
L 11/24/2010 - 21:08:46: [SM] Displaying call stack trace for plugin "loyal.smx":
L 11/24/2010 - 21:08:46: [SM]   [0]  Line 137, /home/groups/alliedmodders/forums/files/4/3/1/7/5/76649.attach::OnPluginStart()
This Server is running on a Mod called Dystopia which is using the Orangebox Engine but doesn't support Assists. Just for additional Information.
There seems to be a SQL problem, probably not related to Dystopia. Double check that your database config is properly setup and I shall see if i can find anything that may be improperly causing this error.

As for the rest I've had a new version cooking and i'm just gonna go through my error logs one last time to make sure its ready for releases

Edit: Fairy i think i see the problem. My code always tries to read an admin database driver even if it flags as a flatfile. I apologize and will add this to my next release
__________________

Last edited by Xsinthis; 12-01-2010 at 13:12.
Xsinthis is offline
arm5ky
Member
Join Date: Dec 2007
Old 01-17-2011 , 04:28   Re: Loyalty Plugin 2.1.1 (Updated 10-31-10)
Reply With Quote #49

I only want to award these points to clients who are helping getting the server populated.

Any way to set a max_client setting to stop giving points when a certain number are on the server.
arm5ky is offline
Izum
Junior Member
Join Date: Jun 2009
Location: Russia, Stalingrad
Old 01-29-2011 , 08:49   Re: Loyalty Plugin 2.1.1 (Updated 10-31-10)
Reply With Quote #50

Quote:
Originally Posted by tcviper View Post
Attached an updated version with the following changes (thx to GameConnect.net and Psychonic!):

This version is for SOURCEBANS users only!!!

- Fixed Sourcebans detection (hardcoded Sourcebans only!)
- Removed loyalty points for admins
- Hardcoded Sourcebans group to 'Subscribers'
- Added !loyal to client !settings menu
- Some other small code fixes and bugs were fixed!

This is being used on the GameConnect.net servers and works flawlessly.
In this version doesn't work loyal.cfg. The file is created successfully, but if to change parameters - changes nothing.
The group 'Loyal Members' (but no 'Subscribers' ??) in SourceBans is created and users in group is created, but the rights to group of servers aren't defined.

Excuse for my English.

Last edited by Izum; 01-29-2011 at 08:53.
Izum is offline
Send a message via ICQ to Izum
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 20:53.


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