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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Schwarzer
Junior Member
Join Date: May 2020
Old 05-03-2020 , 05:28   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4
Reply With Quote #801

Hello!

Thanks for sharing this plugin.

However, this one doesn't work on my CS:GO server. Here is the error message I get in the sourcemod log :
Code:
L 05/03/2020 - 11:23:29: SourceMod error session started
L 05/03/2020 - 11:23:29: Info (map "de_dust2") (file "/data/service16469/data/service_item_1311189/csgo/addons/sourcemod/logs/errors_20200503.log")
L 05/03/2020 - 11:23:29: [SM] Exception reported: [SA3] Unable to find Settings in addons/sourcemod/configs/ServerAdvertisements3.cfg
L 05/03/2020 - 11:23:29: [SM] Blaming: ServerAdvertisements3.smx
L 05/03/2020 - 11:23:29: [SM] Call stack trace:
L 05/03/2020 - 11:23:29: [SM]   [0] SetFailState
L 05/03/2020 - 11:23:29: [SM]   [1] Line 355, d:\Sourcemod\ServerAdvertisement3\ServerAdvertisements3.sp::LoadConfig
L 05/03/2020 - 11:23:29: [SM]   [2] Line 55, d:\Sourcemod\ServerAdvertisement3\ServerAdvertisements3.sp::OnMapStart

The configuration file is the one present in the download archive. I didn't make any modification inside.
The encoding is indeed in UTF8 with BOM.

Can you help me to solve this problem?

Thank you in advance for your feedback.
Schwarzer is offline
Schwarzer
Junior Member
Join Date: May 2020
Old 05-04-2020 , 03:24   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4
Reply With Quote #802

I allow myself a little UP regarding my problem.
Thank you in advance!
Schwarzer is offline
Schwarzer
Junior Member
Join Date: May 2020
Old 05-05-2020 , 03:49   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4
Reply With Quote #803

There's no one to answer my question?
Thank you in advance.
Schwarzer is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 05-05-2020 , 23:31   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4
Reply With Quote #804

Quote:
Originally Posted by Schwarzer View Post
There's no one to answer my question?
Thank you in advance.
Your error is clear in the log:
Code:
L 05/03/2020 - 11:23:29: [SM] Exception reported: [SA3] Unable to find Settings in addons/sourcemod/configs/ServerAdvertisements3.cfg
Check if the ServerAdvertisements3.cfg config is really there.
paulo_crash is offline
Schwarzer
Junior Member
Join Date: May 2020
Old 05-06-2020 , 02:51   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4
Reply With Quote #805

Quote:
Originally Posted by paulo_crash View Post
Your error is clear in the log:
Code:
L 05/03/2020 - 11:23:29: [SM] Exception reported: [SA3] Unable to find Settings in addons/sourcemod/configs/ServerAdvertisements3.cfg
Check if the ServerAdvertisements3.cfg config is really there.
Thanks for coming back.
However, if it was only that, I would have solved it on my own. The file is present in this location and the configuration inside is a copy-paste of the one available on the first post of this topic.
Schwarzer is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 05-06-2020 , 15:38   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4
Reply With Quote #806

Quote:
Originally Posted by Schwarzer View Post
Thanks for coming back.
However, if it was only that, I would have solved it on my own. The file is present in this location and the configuration inside is a copy-paste of the one available on the first post of this topic.
This is your problem, as the error log says.

Upload your file here, let's see if everything is right.
paulo_crash is offline
Schwarzer
Junior Member
Join Date: May 2020
Old 05-07-2020 , 05:26   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4
Reply With Quote #807

Quote:
Originally Posted by paulo_crash View Post
This is your problem, as the error log says.

Upload your file here, let's see if everything is right.
That's not what I understand about the log. For me the problem is this file: "ServerAdvertisements3.smx"

Code:
L 05/03/2020 - 11:23:29: [SM] Blaming: ServerAdvertisements3.smx
L 05/03/2020 - 11:23:29: [SM] Call stack trace:
L 05/03/2020 - 11:23:29: [SM]   [0] SetFailState
L 05/03/2020 - 11:23:29: [SM]   [1] Line 355, d:\Sourcemod\ServerAdvertisement3\ServerAdvertisements3.sp::LoadConfig
L 05/03/2020 - 11:23:29: [SM]   [2] Line 55, d:\Sourcemod\ServerAdvertisement3\ServerAdvertisements3.sp::OnMapStart
However, below is the content of my configuration file, which is, again, a copy and paste of the one available in the first post of this forum, I haven't made any changes to it.

Code:
"ServerAdvertisements3"
{
  "Settings"
  {
    "ServerName" "[{orange}SERVER{default}]" // Server tag
    "MySQL" "0" // If 1 -> Messages will be loaded from MySQL
    "ServerType" "default" // Only if MySQL is 1 -> Simply divide messages to groups (e.g. 3 servers uses ServerType surf and 2 servers uses jailbreak)
    "Time" "5" // Time in seconds
    "Languages"  "EN;CZ" // List of languages / Keep the main language first (If player connect from Country you did not translated. He will get messages in language which is the first in list).
    "Default language" "geoip" // Value = "geoip" or "ingame"
    "Log expired messages" "0" // 1 = Enabled -> Messages are loged in Sourcemod's error log
  }
  "Welcome Message"
  {
    "Enabled" "1" // 1 = Enabled / 0 = Disabled,
    "Type" "T" // Type of message - Only T type supported right now
    "en" "{orange}*************************************** \n{darkred}Welcome to this server {PLAYERNAME}! \n {lime}This server uses ServerAdvertisements3 \n Author: {bluegrey}www.steamcommunity.com/id/esk0\n{orange}***************************************"
    "cz" "{orange}*************************************** \n{darkred}Vítej na tomto serveru {PLAYERNAME}! \n {lime}Tento server používá ServerAdvertisements3 \n Autor: {bluegrey}www.steamcommunity.com/id/esk0\n{orange}***************************************"
    "Delay" "5.0" // Time in seconds after is client connected to server to show message
    "flags" "" // Client with this flag will get welcome message - Keep empty for all
  }
  "Messages"
  {
    "1"
    {
      "enabled" "0" // Message is temporarily disabled - Default: 1
      "enabledtill" "30.05.2017" // Date DD/MM/YYYY -> Message will be available till 30. May 2017
      "maps" "all" //- Default: all
      "en" "Current map is: {CURRENTMAP} \n Players online: {PLAYERCOUNT} \n Next map: {NEXTMAP} \n Friendly fire: {mp_friendlyfire} \n Gravity: {sv_gravity}"
      "cz"  "Momentálně se hraje: {CURRENTMAP} \n Počet hráčů: {PLAYERCOUNT} \n Příští mapa: {NEXTMAP} \n Friendly fire: {mp_friendlyfire} \n Gravitace: {sv_gravity}"
      "type" "T"
      "tag" "[{darkred}SYSTEM{default}]"
      "ignore_maps" "de_inferno;ar_"
    }
    "2"
    {
      "enabled" "1" // Message is enabled
      "maps" "de_;cs_"
      "en" "Message 2"
      "cz"  "Admini: {ADMINSONLINE}"
      "type" "T"
      "tag" "[{lime}VIP{default}]"
      "ignore" "a"
      "ignore_maps" "de_dust2"
    }
    "3"
    {
      "maps" "de_;ar_"
      "en" "Message 3"
      "cz"  "<font color='#ff00ff'>Zpráva 3!</font>"
      "type" "C"
      "tag" "" // Message without tag
    }
    "4" // Message with "ServerName" option tag
    {
      "maps" "zm_"
      "en" "Message 4"
      "cz"  "Zprava 4"
      "type" "t"
    }
    "5" // HUD MESSAGE
    {
      "enabled" "1"
      "maps" "zm_"
      "en" "NEW HUD MESSAGE TEXT BY {PLAYERNAME}"
      "cz"  "NEW HUD MESSAGE TEXT BY {PLAYERNAME}"
      "type" "h"
      "color" "255 112 0" // RGB (R G B)
      "color2" "255 255 51" // RGB (R G B)
      "effect" "2" // 0,1,2
      "channel" "5" // Any number
      "posx" "-1.0" //left to right
      "posy" "0.05" //top to bottom
      "fadein" "0.2" //Fade in time
      "fadeout" "0.2" //Fade out time
      "holdtime" "5.0" //Message hold time
    }
  }
}
Schwarzer is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-07-2020 , 06:35   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4
Reply With Quote #808

Quote:
Originally Posted by Schwarzer View Post
The encoding is indeed in UTF8 with BOM.
It should be UTF-8 without BOM.

Or just use a simple advertisements plugin.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.

Last edited by DJ Tsunami; 05-07-2020 at 06:40.
DJ Tsunami is offline
Schwarzer
Junior Member
Join Date: May 2020
Old 05-07-2020 , 07:03   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4
Reply With Quote #809

Quote:
Originally Posted by DJ Tsunami View Post
It should be UTF-8 without BOM.

Or just use a simple advertisements plugin.
Thanks for the return DJ Tsunami!
It was indeed an encoding error, I thought I put UTF-8 without BOM, but it was not the case.

The plugin works perfectly now.

Thanks to all of you!
Schwarzer is offline
fantastic
New Member
Join Date: Jun 2020
Old 06-17-2020 , 17:33   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4
Reply With Quote #810

Great plugin, thank you! I know you've got MySQL support in your to-do list already. Our community runs many servers and we have two kinds of announcements:

1. Global announcements (same announcement for all servers).

2. Server-specific announcements.

Can you make it so we can set it in the .cfg to pull announcements from MySQL AND/OR use the serveradvertisements3.cfg flatfile?
fantastic is offline
Reply


Thread Tools
Display Modes

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 08:40.


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