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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
deriggs007
Senior Member
Join Date: May 2009
Location: USA
Old 07-03-2009 , 17:50   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #581

Haha, I did that when I posted this, but that also was not the only one not working.

I'll try to see which ones they were and I'll reply back.

Thanks though!
deriggs007 is offline
Send a message via MSN to deriggs007
Sexual Harassment Panda
Veteran Member
Join Date: Dec 2008
Location: San Diego, CA
Old 07-03-2009 , 20:02   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #582

i'm getting a bajilion errors using the new version.
Code:
16:57:08 KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file addons\sourcemod\configs\advertisements.txt
         Advertisements, 16, <TAB><TAB>, 
         KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file addons\sourcemod\configs\advertisements.txt
         Advertisements, Holders:, DEFAULT, (*<TAB><TAB>*), 
         KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file addons\sourcemod\configs\advertisements.txt
         Admins:, DEFAULT, (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
16:57:08 KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*Admins:*), (*DEFAULT*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file addons\sourcemod\configs\advertisements.txt
         is, CURRENTMAP, (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*is*), (*CURRENTMAP*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
         (*is*), (*CURRENTMAP*), (*Holders:*), (*DEFAULT*), (*<TAB><TAB>*), 
         [SM] Plugin Advertisements reloaded successfully.
Now for file.
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"        "HS"
        "text"        "Type 'nominate' in chat to add a map to the nextmap vote."
        "showcount"    "4"
    }
    "2"
    {
        "type"        "HS"
        "text"        "Type '!scramble' to vote for a team scramble."
        "showcount"    "4"
    }
    "3"
    {
        "type"        "HS"
        "text"        "Type 'motd' to view our rules and policies."
        "showcount"    "4"
    }
    "4"
    {
        "type"        "HS"
        "text"        "Type 'rageme' to engage the rage."
        "showcount"    "4"
    }
    "5"
    {
        "type"        "HS"
        "text"        "Type 'website' to check out our website."
        "flags"        "a"
    }
    "6"
    {
        "type"        "S"
        "text"        "{LIGHTGREEN}Type 'community' to join our steam community."
        "flags"        "a"
    }
    "7"
    {
        "type"        "H"
        "text"        "Download our custom maps off of our website."
        "flags"        "a"
    }
    "8"
    {
        "type"        "S"
        "text"        "{LIGHTGREEN}Type '!Radio' for in-game radio."
    }
    "9"
    {
        "type"        "S"
        "text"        "{LIGHTGREEN}Donate for reserved slots. Type 'Donate' for more info."
    }
    "10"
    {
        "type"        "HT"
        "text"        "Favorite us: games.dongues.net:27069"
        "flags"        "a"
    }
    "11"
    {        
        "type"        "H"
        "text"        "Don't be an asshat, we can't define the word, but if it's you, watch out."
    }
    "12"
    {
        "type"        "H"
        "text"        "Please, one person on the mic at a time."
    }
    "13"
    {
        "type"        "H"
        "text"        "Please do not recruit on our servers."
        "flags"        "a"
    }
    "14"
    {
        "type"        "S"
        "text"        "{LIGHTGREEN}Visit our website at www.parlourroomjesters.com."
        "flags"        "a"
    }
    "15"
    {
        "type"        "H"
        "text"        "Join our steam group 'parlourroomminstrels'."
        "flags"        "a"
    }
    "16"
    {
        "type"        "H"
        "text"        "Type "faq' for clan info."
        "showcount"    "2"
        "flags"        "a"
    }
    "17"
    {
        "type"        "S"
        "text"        "{LIGHTGREEN}Donators are invincible during the end of round bonus time, type 'Donate' for more info."
    }
        "flags"        "o"
    "18"
    {
        "type"        "H"
        "text"        "If spawn camping gets out of hand, it will be punished."
    }
    "19"
    {
        "type"        "S"
        "text"        "{GREEN}Reserved Slot Holders: {DEFAULT}To Use your reserve slot, type 'connect games.dongues.net:27069' in console."
        "flags"        ""
        "showcount"    "4"
    }
    "20"
    {
        "type"        "S"
        "text"        "{GREEN}Admins: {DEFAULT}If somebody's causing trouble on the mic, just mute them. If it continues, kick them."
        "showcount"    "2"
        "flags"        ""
    }
    "21"
    {
        "type"        "S"
        "text"        "If somebody's causing trouble, put an '@' symbol in front of a team chat message to let the admins know."
        "showcount"    "2"
    }
    "22"
    {
        "type"        "H"
        "text"        "Current map is {CURRENTMAP}"
        "showcount"    "2"
    }
}
__________________
Sexual Harassment Panda is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 07-04-2009 , 01:51   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #583

Quote:
Originally Posted by Sexual Harassment Panda View Post
i'm getting a bajilion errors using the new version.
Code:
"Advertisements"
{
    "1"
    {
        "type"        "HS"
        "text"        "Type 'nominate' in chat to add a map to the nextmap vote."
        "showcount"    "4"
    }
    "2"
    {
        "type"        "HS"
        "text"        "Type '!scramble' to vote for a team scramble."
        "showcount"    "4"
    }
    "3"
    {
        "type"        "HS"
        "text"        "Type 'motd' to view our rules and policies."
        "showcount"    "4"
    }
    "4"
    {
        "type"        "HS"
        "text"        "Type 'rageme' to engage the rage."
        "showcount"    "4"
    }
    "5"
    {
        "type"        "HS"
        "text"        "Type 'website' to check out our website."
        "flags"        "a"
    }
    "6"
    {
        "type"        "S"
        "text"        "{LIGHTGREEN}Type 'community' to join our steam community."
        "flags"        "a"
    }
    "7"
    {
        "type"        "H"
        "text"        "Download our custom maps off of our website."
        "flags"        "a"
    }
    "8"
    {
        "type"        "S"
        "text"        "{LIGHTGREEN}Type '!Radio' for in-game radio."
    }
    "9"
    {
        "type"        "S"
        "text"        "{LIGHTGREEN}Donate for reserved slots. Type 'Donate' for more info."
    }
    "10"
    {
        "type"        "HT"
        "text"        "Favorite us: games.dongues.net:27069"
        "flags"        "a"
    }
    "11"
    {        
        "type"        "H"
        "text"        "Don't be an asshat, we can't define the word, but if it's you, watch out."
    }
    "12"
    {
        "type"        "H"
        "text"        "Please, one person on the mic at a time."
    }
    "13"
    {
        "type"        "H"
        "text"        "Please do not recruit on our servers."
        "flags"        "a"
    }
    "14"
    {
        "type"        "S"
        "text"        "{LIGHTGREEN}Visit our website at www.parlourroomjesters.com."
        "flags"        "a"
    }
    "15"
    {
        "type"        "H"
        "text"        "Join our steam group 'parlourroomminstrels'."
        "flags"        "a"
    }
    "16"
    {
        "type"        "H"
        "text"        "Type "faq' for clan info."
        "showcount"    "2"
        "flags"        "a"
    }
    "17"
    {
        "type"        "S"
        "text"        "{LIGHTGREEN}Donators are invincible during the end of round bonus time, type 'Donate' for more info."
    }
        "flags"        "o"
    "18"
    {
        "type"        "H"
        "text"        "If spawn camping gets out of hand, it will be punished."
    }
    "19"
    {
        "type"        "S"
        "text"        "{GREEN}Reserved Slot Holders: {DEFAULT}To Use your reserve slot, type 'connect games.dongues.net:27069' in console."
        "flags"        ""
        "showcount"    "4"
    }
    "20"
    {
        "type"        "S"
        "text"        "{GREEN}Admins: {DEFAULT}If somebody's causing trouble on the mic, just mute them. If it continues, kick them."
        "showcount"    "2"
        "flags"        ""
    }
    "21"
    {
        "type"        "S"
        "text"        "If somebody's causing trouble, put an '@' symbol in front of a team chat message to let the admins know."
        "showcount"    "2"
    }
    "22"
    {
        "type"        "H"
        "text"        "Current map is {CURRENTMAP}"
        "showcount"    "2"
    }
}
I colored wrong line of your file to red. It's between 17 and 18.
__________________
altex is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 07-04-2009 , 01:58   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #584

I want it to be very clear:
1) there is nothing changed in new versions in the "type" case sensitivity ("s" can not work in previous versions too, it's "S")
2) there is nothing changed in new versions in parsing file to KeyValues, it's comopletely the same part of code using FileToKeyValues (there is no other procedure for that).

If you think that your adv.txt did not work only in latest versions - just try latest official version and after that make report. Thanks.
__________________
altex is offline
Sexual Harassment Panda
Veteran Member
Join Date: Dec 2008
Location: San Diego, CA
Old 07-04-2009 , 02:40   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #585

isn't o a flag? or does it need to be capitalized or something? the o flag is for my donors
__________________
Sexual Harassment Panda is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 07-04-2009 , 02:42   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #586

Quote:
Originally Posted by Sexual Harassment Panda View Post
isn't o a flag? or does it need to be capitalized or something? the o flag is for my donors
not
"17"
{
...
}
"flags" "o"
"18"
{
...
}

but
"17"
{
...
"flags" "o"
}
"18"
{
...
}

or
"17"
{
...
}
"18"
{
"flags" "o"
...
}
__________________
altex is offline
Sexual Harassment Panda
Veteran Member
Join Date: Dec 2008
Location: San Diego, CA
Old 07-04-2009 , 03:12   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #587

ohhhhh. I see the problem there, not the flag i used but placement, stupid mistake.
__________________
Sexual Harassment Panda is offline
jojo86
BANNED
Join Date: Mar 2009
Old 07-04-2009 , 08:00   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #588

How can i use team colours ? How can i specific {TEAM} to red or gray or blue colour ?
jojo86 is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 07-04-2009 , 08:23   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #589

Quote:
Originally Posted by jojo86 View Post
How can i use team colours ?
How can i specific {TEAM} to red or gray or blue colour ?
You can't. Team color depends on the team player is assigned to. If you are assigned to counter-terrorists on CSS mod, than you will see blue color etc.
__________________
altex is offline
jojo86
BANNED
Join Date: Mar 2009
Old 07-04-2009 , 08:38   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #590

But I saw somewhere on the server in the chat gray colour.How is that possible
jojo86 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 00:42.


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