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

[many games] AdsQL Advertisements System - v1.7.8 - Last Updated 2011-04-02


Post New Thread Reply   
 
Thread Tools Display Modes
SauceHelmet07
Junior Member
Join Date: Apr 2006
Old 03-06-2011 , 06:33   Re: [many games] AdsQL Advertisements System - v1.7.5 - Last Updated 2011-03-04
Reply With Quote #81

Quote:
Originally Posted by PharaohsPaw View Post
what i mean about database configuration not correct -- make sure you have specified the correct info in the "admintools" section of databases.cfg. correct username and password, correct db name, correct hostname, etc. Are you successfully using any other sourcemod plugins on your server(s) that utilize a mysql database?
The info in the databases.cfg matches what's put in the config.php for the web panel (which is working wonderfully btw), except for localhost which was changed to my domain and the game servers IP was granted access to the mysql db.

And yes, my game servers are utilizing several other plugins that require a mysql db (such as sourcebans), thus I'm pretty perplexed as to why this isn't working.

Databases.cfg examples:

"sourcebans"
{
"driver" "mysql"
"host" "mysite.com"
"database" "sourcebans"
"user" "sourcebans"
"pass" "********"
//"timeout" "0"
"port" "3306"
}

"adsql"
{
"driver" "mysql"
"host" "mysite.com"
"database" "adsql"
"user" "adsql"
"pass" "********"
//"timeout" "0"
"port" "3306"
}

Any ideas?
SauceHelmet07 is offline
PharaohsPaw
Senior Member
Join Date: Dec 2008
Old 03-06-2011 , 06:41   Re: [many games] AdsQL Advertisements System - v1.7.5 - Last Updated 2011-03-04
Reply With Quote #82

looks like you have the wrong name for the database config section. The instructions tell you it needs to be named admintools, not adsql.
PharaohsPaw is offline
PharaohsPaw
Senior Member
Join Date: Dec 2008
Old 03-06-2011 , 06:43   Re: [many games] AdsQL Advertisements System - v1.7.5 - Last Updated 2011-03-04
Reply With Quote #83

i would have rather named it adsql, trust me, but I wanted to make it easy for existing users of the old broken plugin to switch to mine.
PharaohsPaw is offline
PharaohsPaw
Senior Member
Join Date: Dec 2008
Old 03-06-2011 , 06:44   Re: [many games] AdsQL Advertisements System - v1.7.5 - Last Updated 2011-03-04
Reply With Quote #84

Quote:
Originally Posted by SauceHelmet07 View Post
Databases.cfg examples:

"adsql" <------------------------- SHOULD BE "admintools"
{
"driver" "mysql"
"host" "mysite.com"
"database" "adsql"
"user" "adsql"
"pass" "********"
//"timeout" "0"
"port" "3306"
}

Any ideas?
PharaohsPaw is offline
PharaohsPaw
Senior Member
Join Date: Dec 2008
Old 03-06-2011 , 06:46   Re: [many games] AdsQL Advertisements System - v1.7.5 - Last Updated 2011-03-04
Reply With Quote #85

code snip from the plugin source code:
Code:
        // The databases.cfg section we read our config from --
        // I could change this but we want to make it easy for
        // existing users of the sm_adsmysql plugin to switch:

        SQL_TConnect(DBConnect, "admintools")

}
PharaohsPaw is offline
PharaohsPaw
Senior Member
Join Date: Dec 2008
Old 03-06-2011 , 06:48   Re: [many games] AdsQL Advertisements System - v1.7.5 - Last Updated 2011-03-04
Reply With Quote #86

will add a section to the FAQ/troubleshooting post about database errors and configuration problems
PharaohsPaw is offline
SauceHelmet07
Junior Member
Join Date: Apr 2006
Old 03-06-2011 , 06:49   Re: [many games] AdsQL Advertisements System - v1.7.5 - Last Updated 2011-03-04
Reply With Quote #87

doh! That did the trick, no more errors. Do I have to type sm_reloadads every time I make changes to the ads or will they update on map change? Thanks for the help.
SauceHelmet07 is offline
PharaohsPaw
Senior Member
Join Date: Dec 2008
Old 03-06-2011 , 07:02   Re: [many games] AdsQL Advertisements System - v1.7.5 - Last Updated 2011-03-04
Reply With Quote #88

good, glad to hear it. Ads will be reloaded on every map change. If you want to reload them sooner use one of the reloadads facilities (menu, command, etc.)
PharaohsPaw is offline
SauceHelmet07
Junior Member
Join Date: Apr 2006
Old 03-06-2011 , 07:08   Re: [many games] AdsQL Advertisements System - v1.7.5 - Last Updated 2011-03-04
Reply With Quote #89

hmm, for some reason the ads won't appear in-game.

The plugin is loaded:
"AdsQL Advertisements System" (1.7.2) by PharaohsPaw, <eVa>Dog & DJ Tsunami

I have a few ads set for testing that go to the server ID: http://i.imgur.com/RrV3d.png

I also added another that went to All.

I defined
adsql_interval 30
in the sourcemod.cfg

No idea what the issue could be... what am I overlooking?
SauceHelmet07 is offline
PharaohsPaw
Senior Member
Join Date: Dec 2008
Old 03-06-2011 , 08:09   Re: [many games] AdsQL Advertisements System - v1.7.5 - Last Updated 2011-03-04
Reply With Quote #90

give me a few minutes I am going to check that I did not 'break' something in the ads display timers when a non-default adsql_interval is set.

based on that ad definition you gave the image of, the ad *SHOULD* work on any counterstrike source server using a server id of "bob".

PharaohsPaw
PharaohsPaw 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 03:26.


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