Raised This Month: $ Target: $400
 0% 

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
turner
New Member
Join Date: Sep 2011
Old 09-18-2011 , 18:49   Re: Advertisements 0.5.5
Reply With Quote #1191

i perhaps someone can shed some light on the matter?

recently i purchased a server and started configuring myself, majority of which is how i want it however there appears to be a problem.

im trying to use adverts, of which seems to work, until someone joins a team and the server changes the max bot count, as soon as that happens the adverts stop functioning, however there is no error being stored in any log files so i cant pinpoint whats causing it.

This is what I have for the adverts in config:

//Adverts CVARS
sm_advertisements_enabled 1
sm_advertisements_file "advertisements.txt"
sm_advertisements_interval 15

and for the bots:

//Bots
mp_allowNPCs 1
tf_bot_quota_mode "fill"
tf_bot_quota 10
tf_bot_auto_vacate 1
tf_bot_difficulty 3
tf_bot_keep_class_after_death 0
tf_bot_join_after_player 0

Not sure if anyone is able to shed some light though all help is appreciated.

Thanks
turner is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-19-2011 , 13:25   Re: Advertisements 0.5.5
Reply With Quote #1192

Quote:
Originally Posted by Bloodlvst View Post
Could anyone modify this to use per map settings? That would be SICK.
It already supports map specific configs, see How to make map specific config files.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Bloodlvst
Senior Member
Join Date: Jul 2007
Old 09-19-2011 , 23:48   Re: Advertisements 0.5.5
Reply With Quote #1193

So I just make one of those and I'm guessing set the following?:

sm_advertisements_file "dust2_adverts.txt"

I'm guessing the file just needs to be related to the cstrike/addons/sourcemod/configs folder just the default advertisements.txt?

And if I don't make a config for a map will your plugin automatically revert to use the default file I compiled it with, or do I set config file for each map to choose the "Default" advertisements?

Sorry for all the questions, I just wanna make sure I have it right.
__________________
Quote:
skywalker: I have cs source client 5 how to upgrade to client 7
BAILOPAN: oh
Bloodlvst is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-20-2011 , 09:33   Re: Advertisements 0.5.5
Reply With Quote #1194

cstrike/cfg/server.cfg:
Code:
sm_advertisements_file "advertisements.txt"
cstrike/cfg/de_dust2.cfg:
Code:
sm_advertisements_file "dust2_adverts.txt"
server.cfg will reset it to advertisements.txt on each map, and de_dust2.cfg will set it to dust2_adverts.txt on de_dust2.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Bloodlvst
Senior Member
Join Date: Jul 2007
Old 09-20-2011 , 11:02   Re: Advertisements 0.5.5
Reply With Quote #1195

Quote:
Originally Posted by DJ Tsunami View Post
cstrike/cfg/server.cfg:
Code:
sm_advertisements_file "advertisements.txt"
cstrike/cfg/de_dust2.cfg:
Code:
sm_advertisements_file "dust2_adverts.txt"
server.cfg will reset it to advertisements.txt on each map, and de_dust2.cfg will set it to dust2_adverts.txt on de_dust2.
Ah okay, sweet. Thanks for clearing that up.
__________________
Quote:
skywalker: I have cs source client 5 how to upgrade to client 7
BAILOPAN: oh
Bloodlvst is offline
ScorpFire
Member
Join Date: Sep 2011
Old 09-24-2011 , 02:49   Re: Advertisements 0.5.5
Reply With Quote #1196

I have a server variable (created by other plugins) called myvar. I want it to be displayed in advertisments. How to edit the source file such that my server variable "myvar" is displayed
ScorpFire is offline
blue zebra
BANNED
Join Date: Jun 2010
Old 09-25-2011 , 03:27   Re: Advertisements 0.5.5
Reply With Quote #1197

A fast question.
Game: CSS
Can i do 6x characters long adverts on the top-left area (hint message)?
I was see one video on the youtube and on that server i see long (min. 60 character long) Top-left messages. The server unfortunatelly offline now (from long time). But the video are right.
I see this top-left messages on the server:

"Session recrutement ouverte : www.prodigy.fr.cr" - 47 characters
"[FR] The Prodigy_# Scout - Unscope Only HeadShot : 81.93.251.55:"... 64 characters? Wtf? How?
The server full ip was: 81.93.251.55:27015

Last edited by blue zebra; 09-26-2011 at 02:44.
blue zebra is offline
Bloodlvst
Senior Member
Join Date: Jul 2007
Old 09-26-2011 , 21:28   Re: Advertisements 0.5.5
Reply With Quote #1198

Quote:
Originally Posted by DJ Tsunami View Post
cstrike/cfg/server.cfg:
Code:
sm_advertisements_file "advertisements.txt"
cstrike/cfg/de_dust2.cfg:
Code:
sm_advertisements_file "dust2_adverts.txt"
server.cfg will reset it to advertisements.txt on each map, and de_dust2.cfg will set it to dust2_adverts.txt on de_dust2.
So I did this, but it only loads my "default"
__________________
Quote:
skywalker: I have cs source client 5 how to upgrade to client 7
BAILOPAN: oh
Bloodlvst is offline
DejanCG
New Member
Join Date: Aug 2011
Old 09-29-2011 , 03:00   Re: Advertisements 0.5.5
Reply With Quote #1199

Hello, I am getting the following message upon installing advertisements.smx and executing "sm plugins refresh":

L 09/29/2011 - 08:56:20: [SM] Plugin encountered error 25: Call was aborted
L 09/29/2011 - 08:56:20: [SM] Native "SetFailState" reported: File Not Found: addons\sourcemod\configs\advertisements.txt
L 09/29/2011 - 08:56:20: [SM] Displaying call stack trace for plugin "advertisements.smx":
L 09/29/2011 - 08:56:20: [SM] [0] Line 331, /home/groups/alliedmodders/forums/files/3/4/6/6/8/24253.attach:arseAds()
L 09/29/2011 - 08:56:20: [SM] [1] Line 44, /home/groups/alliedmodders/forums/files/3/4/6/6/8/24253.attach::OnMapStart()

I haven't restarted the server. Do I have to restart the server or this is something else? advertisements.txt file is in addons\sourcemod\configs and in valid format.

EDIT: Restarted the server and having the same issue.

EDIT2: Here is the console output for these commands:
> sm_advertisements_enabled
"sm_advertisements_enabled" = "1"
- Enable/disable displaying advertisements.
> sm_advertisements_file
"sm_advertisements_file" = "advertisements.txt"
- File to read the advertisements from.
> sm_advertisements_interval 
"sm_advertisements_interval" = "30"
- Amount of seconds between advertisements.
> sm_advertisements_version
"sm_advertisements_version" = "0.5.5"
notify singleplayer replicated
- Display advertisements
> sm_advertisements_reload

"Reload" didn't have any output.

EDIT3: Ignore this, I am dumb. I created advertisements.txt.txt. Windows Server and default extensions settings.

Last edited by DejanCG; 09-29-2011 at 05:24.
DejanCG is offline
BaconCat
Member
Join Date: Sep 2011
Old 09-30-2011 , 09:59   Re: Advertisements 0.5.5
Reply With Quote #1200

Hey there DJ. Love the plugin, but I am having a little bit of troubles!

1) There is a hard coded character limit, right? Even if I use /n to create a new line? Not a problem, just wondering as my ads seemed to be getting cut off at a certain point (Fixed by making it shorter )

2) More importantly, the £ and € characters are showing up as ? when the ad is displayed. Any idea why that might me?
BaconCat 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 21:40.


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