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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
Ryan_Hemsley18
Junior Member
Join Date: Sep 2011
Location: Sydney, Australia
Old 04-12-2012 , 07:11   Re: Advertisements 0.5.5
Reply With Quote #1341

I had this working on another server months ago. I took the info from the server.cfg off.


I have installed
advertisements.smx into orangebox/tf/addons/sourcemod/plugins
advertisements.txt into orangebox/tf/addons/sourcemod/configs





// Advertisements 0.5
// by Tsunami
//
// Types
// -----
// C: Center message
// H: Hint message
// M: Menu message
// S: Say message
// - Colors: {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN}
// - Example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
// T: Top message
// - Colors: {WHITE}, {RED}, {GREEN}, {BLUE}, {YELLOW}, {PURPLE}, {CYAN},
// {ORANGE}, {PINK}, {OLIVE}, {LIME}, {VIOLET}, {LIGHTBLUE}
// - Example: {ORANGE} www.domain.com
//
// Flags (optional)
// -----
// Accepts flags of admins that will not see the advertisement.
// When omitted everyone will see the advertisement.
// When left empty only admins will see the advertisement.

"Advertisements"
{
"1"
{
"type" "C"
"text" "www.domain.com"
}
"2"
{
"type" "CH"
"text" "[email protected]"
}
"3"
{
"type" "M"
"text" "Next map is {SM_NEXTMAP} in {TIMELEFT} minutes."
"flags" "cft"
}
"4"
{
"type" "S"
"text" "{GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}"
"flags" "z"
}
"5"
{
"type" "T"
"text" "{ORANGE} Admins: friendly fire is {BOOL:MP_FRIENDLYFIRE}."
"flags" ""
}
}
__________________
Yours Sincerely,

[GA] Metal of Steel
Creator and Developer
www.gamingaustralia-clan.com
Ryan_Hemsley18 is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 04-12-2012 , 07:14   Re: Advertisements 0.5.5
Reply With Quote #1342

Is the plugin loaded? Did you check the logs for errors? Did you check the console for errors on startup?

The plugin is working fine for me... at least yesterday it did
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de

Last edited by Sillium; 04-12-2012 at 07:14.
Sillium is offline
Ryan_Hemsley18
Junior Member
Join Date: Sep 2011
Location: Sydney, Australia
Old 04-12-2012 , 08:06   Re: Advertisements 0.5.5
Reply With Quote #1343

# cd_sound_file"
Unknown command "cd_loggin"
Unknown command "cd_logfile"
"sm_adminslist_version" = "1.0"
notify
- Version of admin menu.
Unknown command "ad_react_all"
"sm_admin_sounds_version" = "1.2.2"
notify singleplayer replicated
- Admin Sounds Version
Unknown command "sm_admin_sounds_immunity"
Unknown command "("
'cp_granary.cfg' not present; not executing.
****** Executing mani_server.cfg ******
'mani_quake_sounds.cfg' not present; not executing.
'mani_skins.cfg' not present; not executing.
****** Finished executing mani_server.cfg ******
L 04/12/2012 - 21:47:52: server_cvar: "sm_nextmap" "cp_well"
This Server is Hosted by Extent-Hosting.com
Current map is cp_granary
Mani Admin Plugin
Next map is cp_well
Server Tick Rate 66
This Server is Hosted by Extent-Hosting.com
Current map is cp_granary
Particles: Missing 'particles/error.pcf'
********************************************* ***********
Loading Mani Admin Plugin 2011 V1.2.22.8 VSP Orange, www.mani-admin-plugin.com

1088758C SDK PlayerInfoManager002
0F84A1E4 SDK VEngineServer021
0F841B20 SDK GAMEEVENTSMANAGER002
5BAA0C38 SDK VFileSystem019
0F848DCC SDK ISERVERPLUGINHELPERS001
0F889374 SDK VEngineServerStringTable001
0F84189C SDK EngineTraceServer003
0F844654 SDK VEngineRandom001
10874E24 SDK ServerGameEnts001
10868CBC SDK IEffects001
0F84A2B8 SDK IEngineSoundServer003
10874E28 SDK ServerGameClients003
5CD97360 SDK VEngineCvar004
10874E18 SDK ServerGameDLL006 => Upgraded to ServerGameDLL007
0F845364 SDK VoiceServer002
0F88A4C8 SDK SpatialPartition001
********************************************* ***********
Attempting to load [./cfg/mani_admin_plugin/language/language.cfg]
Language to be used [english]
Searching for game type [Team Fortress]
Found gametypes for Team Fortress
Game Type [Team Fortress]
Message name Geiger index 0
Message name Train index 1
Message name HudText index 2
Message name SayText index 3
Message name SayText2 index 4
Message name TextMsg index 5
Message name ResetHUD index 6
Message name GameTitle index 7
Message name ItemPickup index 8
Message name ShowMenu index 9
Message name Shake index 10
Message name Fade index 11
Message name VGUIMenu index 12
Message name Rumble index 13
Message name CloseCaption index 14
Message name SendAudio index 15
Message name VoiceMask index 16
Message name RequestState index 17
Message name Damage index 18
Message name HintText index 19
Message name KeyHintText index 20
Message name HudMsg index 21
Message name AmmoDenied index 22
Found base 0F4C0000 and length 6582272 [0FB07000]
Final [0F4C2A70] [CBaseServer_ConnectClient]
Final [0F538CD0] [NET_SendPacket]
Time for read = [0.000102]
Time for read = [0.000182]
Steam ID Player Stats memory usage 0.000000MB with 0 records
Name Player Stats memory usage 0.000000MB with 0 records
Plugin load file already exists ... bypassing autocreate
maxplayers set to 10
No '-replayserverdir' parameter found - using default replay folder.
Unknown command "r_decal_cullsize"
maxplayers set to 10
WARNING: Port 27005 was unavailable - bound to port 27016 instead
Network: IP 119.252.191.98, mode MP, dedicated Yes, ports 27135 SV / 27016 CL
SOLID_VPHYSICS static prop with no vphysics model! (models/props_foliage/grass_02_cluster01.mdl)
********************************************* ***********
************* Mani Admin Plugin Level Init *************
********************************************* ***********
Attempting to load [./cfg/mani_admin_plugin/language/language.cfg]
Language to be used [english]
CModelLoader::Map_IsValid: No such map 'maps/background01.bsp'

*** Map [background01] is not a valid map !!! *****
Time for read = [0.000105]
Time for read = [0.000080]
Steam ID Player Stats memory usage 0.000000MB with 0 records
Name Player Stats memory usage 0.000000MB with 0 records
Stats Loaded in 0.0048 seconds
Steam ID Player Settings memory usage 0.001431MB with 5 records
Name Player Settings memory usage 0.000000MB with 0 records
Player Lists Loaded in 0.0031 seconds
********************************************* ***********
Mani Admin Plugin Level Init Time = 0.425 seconds
********************************************* ***********
L 04/12/2012 - 22:02:03: [SM] Unexpected fatal logging error (file "c:\userfiles\admin\27\orangebox\tf\addons\so urcemod\logs\L20120412.log")
L 04/12/2012 - 22:02:03: [SM] Platform returned error: "The system cannot find the path specified.

"
L 04/12/2012 - 22:02:03: [SM] Logging has been disabled.
WARNING: unable to link sm_admin_sounds_stop and sm_admin_sounds_stop because one or more is a ConCommand.
material models/player/items/all_class/all_class_ring_setting has a normal map and $basealphaenvmapmask. Must use $normalmapalphaenvmapmask to get specular.

Team index [0] Name [Unassigned]
Team index [1] Name [Spectator]
Team index [2] Name [Red]
Team index [3] Name [Blue]
Possible team classname [team_control_point]
Possible team classname [team_control_point]
Possible team classname [team_control_point]
Possible team classname [team_control_point]
Possible team classname [team_control_point]
Possible team classname [team_control_point]
Possible team classname [team_round_timer]
Possible team classname [team_control_point_master]
Possible team classname [team_control_point_round]
Possible team classname [team_control_point_round]
Possible team classname [team_control_point_round]
Found [4] team manager entities
Searching for game type [Team Fortress]
Found gametypes for Team Fortress
Spawnpoint at (2472.00 -1616.00 -124.00) is not clear.
Spawnpoint at (2400.42 -1622.53 -124.00) is not clear.
Spawnpoint at (2576.61 -1624.86 -124.00) is not clear.
Spawnpoint at (2425.47 -1506.63 -124.00) is not clear.
Spawnpoint at (2520.00 -1592.00 -124.00) is not clear.
Spawnpoint at (2576.61 -1547.52 -124.00) is not clear.
--------------------------------------------------------
sv_pure value unchanged (current value is 0).
--------------------------------------------------------
exec banned_user.cfg: file size larger than 1 MB!
exec banned_ip.cfg: file size larger than 1 MB!
Writing cfg/banned_user.cfg.
Writing cfg/banned_ip.cfg.
Server logging enabled.
Server logging data to file logs\L0412042.log
L 04/12/2012 - 22:02:10: Log file started (file "logs\L0412042.log") (game "c:\userfiles\admin\27\orangebox\tf") (version "4885")
Unknown command "mp_autoteambalance_delay"
Unknown command "mp_autoteambalance_warning_delay"
L 04/12/2012 - 22:02:10: server_cvar: "mp_stalemate_enable" "1"
L 04/12/2012 - 22:02:10: server_cvar: "mp_timelimit" "30"
L 04/12/2012 - 22:02:10: server_cvar: "decalfrequency" "30"
L 04/12/2012 - 22:02:10: server_cvar: "sv_alltalk" "1"
L 04/12/2012 - 22:02:10: server_cvar: "sv_tags" "alltalk,cp,norespawntime"
Unknown command "sm_rtd_enable"
Unknown command "sm_rtd_timelimit"
Unknown command "sm_rtd_mode"
Unknown command "sm_rtd_disabled"
Unknown command "sm_rtd_duration"
Unknown command "sm_rtd_teamlimit"
Unknown command "sm_rtd_chance"
Unknown command "sm_rtd_distance"
Unknown command "sm_rtd_health"
Unknown command "sm_rtd_gravity"
Unknown command "sm_rtd_snail"
Unknown command "sm_rtd_trigger"
L 04/12/2012 - 22:02:10: server_cvar: "sm_horsemann_version" "- Version"
Unknown command "cd_mode"
Unknown command "cd_showall"
Unknown command "cd_sound"
Unknown command "cd_printcountry"
Unknown command "cd_showadmins"
Unknown command "cd_country_type"
Unknown command "cd_sound_file"
Unknown command "cd_loggin"
Unknown command "cd_logfile"
"sm_adminslist_version" = "1.0"
notify
- Version of admin menu.
Unknown command "ad_react_all"
"sm_admin_sounds_version" = "1.2.2"
notify singleplayer replicated
- Admin Sounds Version
Unknown command "sm_admin_sounds_immunity"
Unknown command "("
'cp_dustbowl.cfg' not present; not executing.
****** Executing mani_server.cfg ******
'mani_quake_sounds.cfg' not present; not executing.
'mani_skins.cfg' not present; not executing.
****** Finished executing mani_server.cfg ******
L 04/12/2012 - 22:02:10: server_cvar: "sm_nextmap" "cp_granary"
Current item schema is up-to-date with version 61ECE005.
tf_server_identity_account_id not set; not logging into registered account
L 04/12/2012 - 22:02:12: tf_server_identity_account_id not set; not logging into registered account
__________________
Yours Sincerely,

[GA] Metal of Steel
Creator and Developer
www.gamingaustralia-clan.com
Ryan_Hemsley18 is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 04-12-2012 , 09:47   Re: Advertisements 0.5.5
Reply With Quote #1344

Quote:
Originally Posted by Ryan_Hemsley18 View Post
Does this plugin work anymore?

I have installed
advertisements.smx into orangebox/tf/addons/sourcemod/plugins
advertisements.txt into orangebox/tf/addons/sourcemod/configs


I have this in the server.cfg
//Advertisements
sm_advertisements_enabled 1
sm_advertisements_file (def "advertisements.txt")
sm_advertisements_interval (def 30)
sm_advertisements_reload


After all doing that It doesn't work. Is there a way to get it to work?

The file looks fine that I can tell...but you don't need all that other stuff in the server.cfg

It is enabled by default... and looks for that file by default and you don't need the reload part that is just to reload it if you change something in the text.

The only thing I have is this which changed the interval from the default 30:

sm_advertisements_interval 12


Aside from that make sure the plugin loaded.

Last edited by Horsedick; 04-12-2012 at 09:48.
Horsedick is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 04-12-2012 , 10:15   Re: Advertisements 0.5.5
Reply With Quote #1345

No offence Ryan, but you definitely need to understand cvars (Console Variables) better.
They all take the form <key> <value> and are used to change server and/or plugin settings from what they usually would be had you omitted it. If the key has spaces, then "use quotes" to contain the words to a single argument, unless you want to use multiple arguments. And remember if you're happy with the cvars default value, you need not change it.

Sometimes plugins provide their own config files where you can edit cvars, should you want to change them. Other times, you'll need to place them in a file yourself (make sure it gets run).

Looking at your code briefly you don't need things like:
Code:
sm_advertisements_enabled 1       (Since this is already default)
sm_horsemann_version "- Version"       (Do not use odd strings for version numbers and they don't need changing anyway)
Unknown command "("      (Likely a case of not using quotes, or just not meant to be using a bracket)
Unknown command "cd_loggin"       (Just plain doesn't exist - unless you don't have the correct plugin loaded)
sm_advertisements_file (def "advertisements.txt")       (The game reads this as two arguments '(def' and '"advertisements.txt")' - not only do you not need to change it, but you just use sm_advertisements_file "advertisements.txt" alone as the key/value pair anyway)
Whilst these clog your console with warnings (and maybe an odd version number or two ) there's nothing that's game-breaking.

Edit: [[ Maybe this is your problem, maybe it isn't reading the right file because of what you originally wrote on the last line above, have you restarted the server after changing this value back to what it should be? ]]

Code:
L 04/12/2012 - 22:02:03: [SM] Unexpected fatal logging error (file "c:\userfiles\admin\27\orangebox\tf\addons\so urcemod\logs\L20120412.log")
L 04/12/2012 - 22:02:03: [SM] Platform returned error: "The system cannot find the path specified.
That's an odd one, no clue why something would use "so urcemod" - user error somewhere.

Overall however nothing there points to an error in the Advertisements plugin. Would you mind attaching L20120412.log please (or only pasting relevant/recent log errors that pertain to this plugin). Thanks!

Last edited by 11530; 04-12-2012 at 13:32.
11530 is offline
Nikey646
Member
Join Date: Apr 2011
Old 04-12-2012 , 11:11   Re: Advertisements 0.5.5
Reply With Quote #1346

Honestly, that looks like your not even running sourcemod....

anyways, i've got 0.6.2 (unoffical) working for me. its around 79....

Otherwise theres no errors in those logs of yours related to Advertisements.
__________________
ğUnAUĞ UnknownAU ğUnAUĞ
A Proud Australian TFDodgeball Server!




Nikey646 is offline
MrBrightSide
Member
Join Date: Jun 2011
Old 04-15-2012 , 22:17   Re: Advertisements 0.5.5
Reply With Quote #1347

Hello i was wondering if anyone can help me.
i only have 1 problem and its in the pic below

any help would be nice
Code:
// Advertisements 0.5
// by Tsunami
// 
// Types
// -----
// C: Center message
// H: Hint message
// M: Menu message
// S: Say message
//    - Colors:  {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN}
//    - Example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
// T: Top message
//    - Colors:  {WHITE},  {RED},  {GREEN}, {BLUE}, {YELLOW}, {PURPLE}, {CYAN},
//               {ORANGE}, {PINK}, {OLIVE}, {LIME}, {VIOLET}, {LIGHTBLUE}
//    - Example: {ORANGE} www.domain.com
//
// Flags (optional)
// -----
// Accepts flags of admins that will not see the advertisement.
// When omitted everyone will see the advertisement.
// When left empty only admins will see the advertisement.

"Advertisements"
{
	"1"
	{
		"type"		"C"
		"text"		"Visit us @ www.LTGamers.com"
	}
	"2"
	{
		"type"		"M"
		"text"		"Next map is decided by voting, in {TIMELEFT} minutes."
	}
	"3"
	{
		"type"		"S"
		"text"		"{GREEN}Current Map: {LIGHTGREEN}{CURRENTMAP}"
		"flags"		"z"
	}
	"4"
	{
		"type"		"S"
		"text"		"{ORANGE}The Server Manager is, {RED}Chuck Gunner"
	}
	"5"
	{
		"type"		"S"
		"text"		"{BLUE}Dont forget to add us to favorites, Server ip is: {ORANGE}208.43.15.32:27015"
	}
	"6"
	{
		"type"		"H"
		"text"		"{GREEN}Donate for special perks @ {LIGHTGREEN}LTGamers.com"
	}
	"7"
	{
		"type"		"T"
		"text"		"{GREEN}Have any questions or suggestions go to {BLUE}LTGamers.com"
	}
	"8"
	{
		"type"		"T"
		"text"		"{PURPLE}Want to join LT?{BLUE} Go to {RED}LTGamers.com {BLUE}and apply!"
	}
}
MrBrightSide is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 04-15-2012 , 22:40   Re: Advertisements 0.5.5
Reply With Quote #1348

Quote:
Originally Posted by MrBrightSide View Post
Hello i was wondering if anyone can help me.
i only have 1 problem and its in the pic below

any help would be nice
Code:
// Advertisements 0.5
// by Tsunami
// 
// Types
// -----
// C: Center message
// H: Hint message
// M: Menu message
// S: Say message
//    - Colors:  {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN}
//    - Example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
// T: Top message
//    - Colors:  {WHITE},  {RED},  {GREEN}, {BLUE}, {YELLOW}, {PURPLE}, {CYAN},
//               {ORANGE}, {PINK}, {OLIVE}, {LIME}, {VIOLET}, {LIGHTBLUE}
//    - Example: {ORANGE} www.domain.com
//
// Flags (optional)
// -----
// Accepts flags of admins that will not see the advertisement.
// When omitted everyone will see the advertisement.
// When left empty only admins will see the advertisement.

"Advertisements"
{
	"1"
	{
		"type"		"C"
		"text"		"Visit us @ www.LTGamers.com"
	}
	"2"
	{
		"type"		"M"
		"text"		"Next map is decided by voting, in {TIMELEFT} minutes."
	}
	"3"
	{
		"type"		"S"
		"text"		"{GREEN}Current Map: {LIGHTGREEN}{CURRENTMAP}"
		"flags"		"z"
	}
	"4"
	{
		"type"		"S"
		"text"		"{ORANGE}The Server Manager is, {RED}Chuck Gunner"
	}
	"5"
	{
		"type"		"S"
		"text"		"{BLUE}Dont forget to add us to favorites, Server ip is: {ORANGE}208.43.15.32:27015"
	}
	"6"
	{
		"type"		"H"
		"text"		"{GREEN}Donate for special perks @ {LIGHTGREEN}LTGamers.com"
	}
	"7"
	{
		"type"		"T"
		"text"		"{GREEN}Have any questions or suggestions go to {BLUE}LTGamers.com"
	}
	"8"
	{
		"type"		"T"
		"text"		"{PURPLE}Want to join LT?{BLUE} Go to {RED}LTGamers.com {BLUE}and apply!"
	}
}
Code:
// S: Say message //    - Colors:  {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN} //    - Example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
What does that mean? It means that you can only use the colors DEFAULT, TEAM, GREEN, and LIGHTGREEN in the chat (Say) message. ORANGE, RED, BLUE, etc... are for top (T) message only.
minimoney1 is offline
towny
Junior Member
Join Date: Apr 2012
Location: Australia
Old 04-16-2012 , 10:23   Re: Advertisements 0.5.5
Reply With Quote #1349

Thank you, this mod is unbelievably helpful c:
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Yes I know i'm late, but i'm new to modding.
Also, Bacon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
towny is offline
MarcoPixel
Junior Member
Join Date: Apr 2012
Old 04-21-2012 , 10:36   Re: Advertisements 0.5.5
Reply With Quote #1350

Hey, i have a problem. I cant get the plugin working. Its not even loaded in SourceMod.

SourceMod: sourcemod-1.4.3-hg3476 for Linux
Can someone help me or does someone know an alternate to this?

Greets,
Marco
MarcoPixel 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 13:58.


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