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

[ANY|Source 2009] Advanced Advertisements


Post New Thread Reply   
 
Thread Tools Display Modes
23neon23
Member
Join Date: Nov 2010
Location: Russia, Kazan
Old 09-09-2012 , 13:52   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #181

Quote:
Originally Posted by musosoft View Post
Can't compile source from OP zip (minimoney1-SM-TF2-Advanced-Ads-344214c\scripting\adv_adverts.sp)
Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// adv_adverts.sp
// D:\Projects\Scripting\SourcePAWN\adv_adverts.sp(533) : error 028: invalid sub
script (not an array or too many subscripts): "args"
// D:\Projects\Scripting\SourcePAWN\adv_adverts.sp(533) : warning 215: expressio
n has no effect
// D:\Projects\Scripting\SourcePAWN\adv_adverts.sp(533) : error 001: expected to
ken: ";", but found "]"
// D:\Projects\Scripting\SourcePAWN\adv_adverts.sp(533) : error 029: invalid exp
ression, assumed zero
// D:\Projects\Scripting\SourcePAWN\adv_adverts.sp(533) : fatal error 127: too m
any error messages on one line
//
// Compilation aborted.
// 4 Errors.
//
// Compilation Time: 1,03 sec
// ----------------------------------------
Replace line 533 on:
Code:
        PrintToChatAll("Got %s", "args[i]");
23neon23 is offline
Send a message via ICQ to 23neon23 Send a message via Skype™ to 23neon23
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 09-09-2012 , 14:48   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #182

Version 1.3.0 is ready for release, but I haven't tested it, so it's in a beta stage, sitting in the repository.
I need developers to test this plugin for me, play with its new developer features, and let me know of the bugs and suggestions that may exist.
This new version will probably have a lot of bugs, and that's why I'm posting here.
The below link is the commit information for those who just want to get a general idea of what this new version is about. Keep in mind that this is not the only commit towards this version.
https://github.com/minimoney1/SM-TF2...a0e28a7bef7dc6
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 09-19-2012 , 10:16   Re: [ANY|TF2] Advanced Advertisements
Reply With Quote #183

Quote:
Originally Posted by minimoney1 View Post
I've worked on this a little bit here and there, a lot of bugs have been fixed, a lot of new features (Such as the "If user doesn't have x flags") have been added with the setting "noflags" in the config file, but it's not stable yet, and I don't have a TF2 server either, therefore I can't really test it.
I would like to have certain lines NOT display to anyone with any flag. How do I do this in this version? Do I use "noflags" for this?

How would I accomplish this in the following example?

Quote:
"4"
{
"type" "S"
"text" "\n{gold}Having fun?\nAdd us to your favorites"
"showcount" "2"
"flags" ""
}
moxie2020 is offline
23neon23
Member
Join Date: Nov 2010
Location: Russia, Kazan
Old 09-27-2012 , 13:37   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #184

Quote:
L 09/27/2012 - 216:02: [SM] Native "CloseHandle" reported: Handle 0 is invalid
(error 4)
L 09/27/2012 - 216:02: [SM] Displaying call stack trace for plugin "adv_advert
s.smx":
L 09/27/2012 - 216:02: [SM] [0] Line 1167, D:\Games\servers\servercss\css\cstrike\addons \sourcemod\scripting\adv_adverts.sp::Handler_ DoNo
thing()
Any ideas?
23neon23 is offline
Send a message via ICQ to 23neon23 Send a message via Skype™ to 23neon23
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 09-27-2012 , 20:28   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #185

Quote:
Originally Posted by 23neon23 View Post
Any ideas?
Fixed in the new version. Because of no responses to the beta, it took some time to test the new version, and it will take some more time to release the new version, but through it, I will be adding more features.
A version will released shortly to fix the bugs stated.
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 09-27-2012 , 21:15   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #186

Version 1.2.8 is out.
This fixes all of the above bugs.
Version 1.3.0 will be released in roughly two weeks (to a month) and will have many new developer features.
It will most likely be modular, thus breaking updater integration for that specific update, but it is all for the best.
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
scorpadorp
SourceMod Donor
Join Date: May 2012
Location: NC
Old 10-04-2012 , 11:56   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #187

Odd problem.

I have version 1.2.8 in a TF2 server. I updated the extra_chat_colors.txt file to include several custom colors and they show up fine in the server. Later on, I decided to edit the colors and now they won't show up, it still shows the previous custom colors.

I type "rcon sm_extended_advertisements_extracolors_file" and it shows in console:
Unknown command "sm_extended_advertisements_extracolors_f ile"

Any ideas?

Last edited by scorpadorp; 10-04-2012 at 11:57.
scorpadorp is offline
Useless
Member
Join Date: Jun 2012
Old 10-07-2012 , 06:19   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #188

Green color only works.
The errors in the log
PHP Code:
L 10/07/2012 13:14:45SourceMod error session started
L 10
/07/2012 13:14:45Info (map "de_dust") (file "errors_20121007.log")
L 10/07/2012 13:14:45: [SMPlugin encountered error 25Call was aborted
L 10
/07/2012 13:14:45: [SMNative "ThrowError" reportedUsing two team colors in one message is not allowed
L 10
/07/2012 13:14:45: [SMDisplaying call stack trace for plugin "adv_adverts_nontf2.smx":
L 10/07/2012 13:14:45: [SM]   [0]  Line 301C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CFormat()
L 10/07/2012 13:14:45: [SM]   [1]  Line 132C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CPrintToChatEx()
L 10/07/2012 13:14:45: [SM]   [2]  Line 878C:\Users\Mini\Documents\GitHub\SM-TF2-Advanced-Ads\scripting\adv_adverts.sp::AdvertisementTimer()
L 10/07/2012 13:14:55: [SMPlugin encountered error 25Call was aborted
L 10
/07/2012 13:14:55: [SMNative "ThrowError" reportedUsing two team colors in one message is not allowed
L 10
/07/2012 13:14:55: [SMDisplaying call stack trace for plugin "adv_adverts_nontf2.smx":
L 10/07/2012 13:14:55: [SM]   [0]  Line 301C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CFormat()
L 10/07/2012 13:14:55: [SM]   [1]  Line 132C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CPrintToChatEx()
L 10/07/2012 13:14:55: [SM]   [2]  Line 878C:\Users\Mini\Documents\GitHub\SM-TF2-Advanced-Ads\scripting\adv_adverts.sp::AdvertisementTimer()
L 10/07/2012 13:15:15: [SMPlugin encountered error 25Call was aborted
L 10
/07/2012 13:15:15: [SMNative "ThrowError" reportedUsing two team colors in one message is not allowed
L 10
/07/2012 13:15:15: [SMDisplaying call stack trace for plugin "adv_adverts_nontf2.smx":
L 10/07/2012 13:15:15: [SM]   [0]  Line 301C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CFormat()
L 10/07/2012 13:15:15: [SM]   [1]  Line 132C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CPrintToChatEx()
L 10/07/2012 13:15:15: [SM]   [2]  Line 878C:\Users\Mini\Documents\GitHub\SM-TF2-Advanced-Ads\scripting\adv_adverts.sp::AdvertisementTimer()
L 10/07/2012 13:15:25: [SMPlugin encountered error 25Call was aborted
L 10
/07/2012 13:15:25: [SMNative "ThrowError" reportedUsing two team colors in one message is not allowed
L 10
/07/2012 13:15:25: [SMDisplaying call stack trace for plugin "adv_adverts_nontf2.smx":
L 10/07/2012 13:15:25: [SM]   [0]  Line 301C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CFormat()
L 10/07/2012 13:15:25: [SM]   [1]  Line 132C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CPrintToChatEx()
L 10/07/2012 13:15:25: [SM]   [2]  Line 878C:\Users\Mini\Documents\GitHub\SM-TF2-Advanced-Ads\scripting\adv_adverts.sp::AdvertisementTimer()
L 10/07/2012 13:15:45: [SMPlugin encountered error 25Call was aborted
L 10
/07/2012 13:15:45: [SMNative "ThrowError" reportedUsing two team colors in one message is not allowed
L 10
/07/2012 13:15:45: [SMDisplaying call stack trace for plugin "adv_adverts_nontf2.smx":
L 10/07/2012 13:15:45: [SM]   [0]  Line 301C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CFormat()
L 10/07/2012 13:15:45: [SM]   [1]  Line 132C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CPrintToChatEx()
L 10/07/2012 13:15:45: [SM]   [2]  Line 878C:\Users\Mini\Documents\GitHub\SM-TF2-Advanced-Ads\scripting\adv_adverts.sp::AdvertisementTimer()
L 10/07/2012 13:15:55: [SMPlugin encountered error 25Call was aborted
L 10
/07/2012 13:15:55: [SMNative "ThrowError" reportedUsing two team colors in one message is not allowed
L 10
/07/2012 13:15:55: [SMDisplaying call stack trace for plugin "adv_adverts_nontf2.smx":
L 10/07/2012 13:15:55: [SM]   [0]  Line 301C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CFormat()
L 10/07/2012 13:15:55: [SM]   [1]  Line 132C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CPrintToChatEx()
L 10/07/2012 13:15:55: [SM]   [2]  Line 878C:\Users\Mini\Documents\GitHub\SM-TF2-Advanced-Ads\scripting\adv_adverts.sp::AdvertisementTimer()
L 10/07/2012 13:16:15: [SMPlugin encountered error 25Call was aborted
L 10
/07/2012 13:16:15: [SMNative "ThrowError" reportedUsing two team colors in one message is not allowed
L 10
/07/2012 13:16:15: [SMDisplaying call stack trace for plugin "adv_adverts_nontf2.smx":
L 10/07/2012 13:16:15: [SM]   [0]  Line 301C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CFormat()
L 10/07/2012 13:16:15: [SM]   [1]  Line 132C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CPrintToChatEx()
L 10/07/2012 13:16:15: [SM]   [2]  Line 878C:\Users\Mini\Documents\GitHub\SM-TF2-Advanced-Ads\scripting\adv_adverts.sp::AdvertisementTimer()
L 10/07/2012 13:16:25: [SMPlugin encountered error 25Call was aborted
L 10
/07/2012 13:16:25: [SMNative "ThrowError" reportedUsing two team colors in one message is not allowed
L 10
/07/2012 13:16:25: [SMDisplaying call stack trace for plugin "adv_adverts_nontf2.smx":
L 10/07/2012 13:16:25: [SM]   [0]  Line 301C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CFormat()
L 10/07/2012 13:16:25: [SM]   [1]  Line 132C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CPrintToChatEx()
L 10/07/2012 13:16:25: [SM]   [2]  Line 878C:\Users\Mini\Documents\GitHub\SM-TF2-Advanced-Ads\scripting\adv_adverts.sp::AdvertisementTimer() 
Game CS:GO.
Useless is offline
Lanc
Member
Join Date: Oct 2011
Old 11-08-2012 , 22:41   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #189

I just wondering and it probably isn't possible to do but...

If it possible to have advertisements customized to people game language? Sourcemod can do it, plugins can do it too (thats why we have translations folder )

Here is my example how it will look like in my opinion (that function can help multilangual servers )

Code:
{     
    "type"        "S"
    "text_en"        "{GREEN}Your name is {CLIENT_NAME}!"
    "text_pl"        "{GREEN}Twoje imie to{CLIENT_NAME}!"
}
Advert from "text_en" will only show to player who have game set to english and "text_pl" will be shown to player who have game in polish. In that way we can have more adverts and also minimize chat spam becouse people only see adverts in their native language :]

I know that this concept is maybe a long shot but it would be awesome if you can do something like this

//sorry for my English ;<
__________________
Lanc is offline
KiRRA
Senior Member
Join Date: Nov 2012
Old 01-04-2013 , 00:57   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #190

G'day!

I have been having some issues with this plugin where advertisements placed in the "T" location will be improperly rendered to some players.

The majority of players (including myself) see the average www.myurl.com in the top left corner when it is placed in a "T" ad in the config file. Unfortunately a few random players will actually contact me stating that what they is is actually the coding itself, maybe {GREEN}Blah blah blah {ORANGE} blah blah. What makes this instance even more odd is that the "T" ad has no formatting what so ever and the formatting they are seeing is actually from the next ocurring ad that has replaced the previous ad and displayed in the wrong section.

I can and will post screenshots or a better explanation if you so require it but this bug has seemed to be around since even a few versions ago and only seems to affect SOME players and not all. Any and all help is GREATLY appreciated. Thank you and have a great day!

Sorry....BTW, this is happening in [TF2]

Last edited by KiRRA; 01-04-2013 at 00:58.
KiRRA 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 04:08.


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