Raised This Month: $ Target: $400
 0% 

[ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4


Post New Thread Reply   
 
Thread Tools Display Modes
CaptainNervous
Senior Member
Join Date: Mar 2015
Location: World
Old 01-22-2016 , 20:10   Re: [CS:GO/CS:S] ServerAdvertisement - MultiLang | *UPDATED 13.12.2015
Reply With Quote #261

Quote:
Originally Posted by ESK0 View Post
download rollbacked version from github..
I'm already using rollbacked version from github. I tried fresh install from github but doesn't work.
__________________
CaptainNervous is offline
SM411
New Member
Join Date: Aug 2012
Old 01-24-2016 , 07:00   Re: [CS:GO/CS:S] ServerAdvertisement - MultiLang | *UPDATED 13.12.2015
Reply With Quote #262

I just found this plugin, and it fullfills my needs. My problem is just like the guy above me. I downloaded the current version from github (roll back version), copied the files onto my server with default config. Nothing happends, but plugin loads sucessfully.
SM411 is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 01-24-2016 , 07:36   Re: [CS:GO/CS:S] ServerAdvertisement - MultiLang | *UPDATED 13.12.2015
Reply With Quote #263

Quote:
Originally Posted by SM411 View Post
I just found this plugin, and it fullfills my needs. My problem is just like the guy above me. I downloaded the current version from github (roll back version), copied the files onto my server with default config. Nothing happends, but plugin loads sucessfully.
Ok, This attached version 100% works )
Attached Files
File Type: zip ServerAdvertisement.zip (33.0 KB, 257 views)

Last edited by ESK0; 01-24-2016 at 07:44.
ESK0 is offline
Kamizun
AlliedModders Donor
Join Date: May 2015
Location: Portugal
Old 01-24-2016 , 07:40   Re: [CS:GO/CS:S] ServerAdvertisement - MultiLang | *UPDATED 13.12.2015
Reply With Quote #264

Quote:
Originally Posted by ESK0 View Post
Ok, This attached version 100% works )
Wrong file?
Kamizun is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 01-24-2016 , 07:44   Re: [CS:GO/CS:S] ServerAdvertisement - MultiLang | *UPDATED 13.12.2015
Reply With Quote #265

Quote:
Originally Posted by Kamizun View Post
Wrong file?
Oh ty! Attached file fixed
ESK0 is offline
Matthewq
Junior Member
Join Date: Aug 2011
Old 01-24-2016 , 23:41   Re: [CS:GO/CS:S] ServerAdvertisement - MultiLang | *UPDATED 13.12.2015
Reply With Quote #266

Quote:
Originally Posted by ESK0 View Post
Ok, This attached version 100% works )
L 01/24/2016 - 2294: [SM] Plugin encountered error 25: Call was aborted
L 01/24/2016 - 2294: [SM] Native "SetFailState" reported: Config for 'Server Advertisement' not found!
L 01/24/2016 - 2294: [SM] Displaying call stack trace for plugin "ServerAdvertisement.smx":
L 01/24/2016 - 2294: [SM] [0] Line 193, E:\Pluginy\ServerAdvertisement\scripting\Serv erAdvertisement.sp::LoadConfig()
L 01/24/2016 - 2294: [SM] [1] Line 36, E:\Pluginy\ServerAdvertisement\scripting\Serv erAdvertisement.sp::OnPluginStart()


public LoadConfig()
{
Handle hConfig = CreateKeyValues("ServerAdvertisement");
if(!FileExists(FILE_PATH))
{
SetFailState("[ServerAdvertisement] 'addons/sourcemod/configs/ServerAdvertisement.cfg' not found!");
return;
}
FileToKeyValues(hConfig, FILE_PATH);
if(KvJumpToKey(hConfig, "Settings"))
{
g_iEnable = KvGetNum(hConfig, "Enable", 1);
g_fMessageDelay = KvGetFloat(hConfig, "Delay_between_messages", 30.0);
KvGetString(hConfig, "Time_Format", g_sTime, sizeof(g_sTime));
KvGetString(hConfig, "Advertisement_tag", g_sTag, sizeof(g_sTag), "[Server]");
}
else
{
SetFailState("Config for 'Server Advertisement' not found!");
return;
}
CloseHandle(hConfig);
}

"Settings"
{
"Enable" "1" // 1 for Enable, 0 Otherwise
"Delay_between_messages" "2.0" // In seconds
"Time_Format" "%H:%M:%S" // Hours,Minutes,Secods
"Advertisement_tag" "[{Lime}Server{default}]" // Exmp: "[UltraGaming]"
}

linked to this... what's failing?

Last edited by Matthewq; 01-24-2016 at 23:45.
Matthewq is offline
Matthewq
Junior Member
Join Date: Aug 2011
Old 01-25-2016 , 00:27   Re: [CS:GO/CS:S] ServerAdvertisement - MultiLang | *UPDATED 13.12.2015
Reply With Quote #267

Quote:
Originally Posted by Matthewq View Post
L 01/24/2016 - 2294: [SM] Plugin encountered error 25: Call was aborted
L 01/24/2016 - 2294: [SM] Native "SetFailState" reported: Config for 'Server Advertisement' not found!
L 01/24/2016 - 2294: [SM] Displaying call stack trace for plugin "ServerAdvertisement.smx":
L 01/24/2016 - 2294: [SM] [0] Line 193, E:\Pluginy\ServerAdvertisement\scripting\Serv erAdvertisement.sp::LoadConfig()
L 01/24/2016 - 2294: [SM] [1] Line 36, E:\Pluginy\ServerAdvertisement\scripting\Serv erAdvertisement.sp::OnPluginStart()


public LoadConfig()
{
Handle hConfig = CreateKeyValues("ServerAdvertisement");
if(!FileExists(FILE_PATH))
{
SetFailState("[ServerAdvertisement] 'addons/sourcemod/configs/ServerAdvertisement.cfg' not found!");
return;
}
FileToKeyValues(hConfig, FILE_PATH);
if(KvJumpToKey(hConfig, "Settings"))
{
g_iEnable = KvGetNum(hConfig, "Enable", 1);
g_fMessageDelay = KvGetFloat(hConfig, "Delay_between_messages", 30.0);
KvGetString(hConfig, "Time_Format", g_sTime, sizeof(g_sTime));
KvGetString(hConfig, "Advertisement_tag", g_sTag, sizeof(g_sTag), "[Server]");
}
else
{
SetFailState("Config for 'Server Advertisement' not found!");
return;
}
CloseHandle(hConfig);
}

"Settings"
{
"Enable" "1" // 1 for Enable, 0 Otherwise
"Delay_between_messages" "2.0" // In seconds
"Time_Format" "%H:%M:%S" // Hours,Minutes,Secods
"Advertisement_tag" "[{Lime}Server{default}]" // Exmp: "[UltraGaming]"
}

linked to this... what's failing?
After some trial and error I've discovered this is linked to the formatting of your serveradvertisement.cfg - When I take the standard file and copy that into Notepad ++ (to improve formatting) and then back it causes these issues... why?

Even simply editing your serveradvertisement.cfg and manually pressing enter breaks it.. i'd call this plugin officially broken.

Last edited by Matthewq; 01-25-2016 at 00:31.
Matthewq is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 01-25-2016 , 02:49   Re: [CS:GO/CS:S] ServerAdvertisement - MultiLang | *UPDATED 13.12.2015
Reply With Quote #268

Quote:
Originally Posted by Matthewq View Post
After some trial and error I've discovered this is linked to the formatting of your serveradvertisement.cfg - When I take the standard file and copy that into Notepad ++ (to improve formatting) and then back it causes these issues... why?

Even simply editing your serveradvertisement.cfg and manually pressing enter breaks it.. i'd call this plugin officially broken.

You are broken.. Just learn how to KeyValues works -_-. Fail is on youre side not on my.. And at last it is working on few servere without any errors ) ��

Ps: Stop breaking rules.. Use edit.

Last edited by ESK0; 01-25-2016 at 02:49.
ESK0 is offline
Matthewq
Junior Member
Join Date: Aug 2011
Old 01-25-2016 , 10:40   Re: [CS:GO/CS:S] ServerAdvertisement - MultiLang | *UPDATED 13.12.2015
Reply With Quote #269

Quote:
Originally Posted by ESK0 View Post
You are broken.. Just learn how to KeyValues works -_-. Fail is on youre side not on my.. And at last it is working on few servere without any errors ) ******************

Ps: Stop breaking rules.. Use edit.
You do know everyone isn't using Linux, right?

On both my server (Windows 2008 R2) and my computer (Windows 10) any editing of your config file breaks your plugin.. this is a serious problem with the plugin.

If I had the time to learn SourcePawn I wouldn't be using your plugin, so clearly, as most server owners don't have the time for this either, learning how KeyValues work is obsolete.

Instead of patronizing people you could explain how this might not happen.

Last edited by Matthewq; 01-25-2016 at 10:42.
Matthewq is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 01-25-2016 , 10:47   Re: [CS:GO/CS:S] ServerAdvertisement - MultiLang | *UPDATED 13.12.2015
Reply With Quote #270

Quote:
Originally Posted by Matthewq View Post
You do know everyone isn't using Linux, right?

On both my server (Windows 2008 R2) and my computer (Windows 10) any editing of your config file breaks your plugin.. this is a serious problem with the plugin.

If I had the time to learn SourcePawn I wouldn't be using your plugin, so clearly, as most server owners don't have the time for this either, learning how KeyValues work is obsolete.

Instead of patronizing people you could explain how this might not happen.
I know that everyone isn't using Linux.. But i tested it on my local windows server and on Linux server aswell. both works properly...

Maybe You have to use different editor instead of notepad++.. I'm using Atom and everything works well !! and as i know NP++ uses spaces and Atom tabs .. So you have to change all my tabs to 4 spaces i think ) or use Atom..... ehm i think WinSCP text editor uses tabs aswell ) Its your choice..

PS: It doesnt really depends on OS...

Last edited by ESK0; 01-25-2016 at 10:48.
ESK0 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 14:45.


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