1. Wulf

    Wulf Community Admin

    That error isn't related to this plugin, it often means that either the CSharpCompiler is not updated or something on the machine is closing it. It could also be that Visual C++ 2013 x86 is not being found.
     
  2. i have the oxide and the stuff updated how do i fix that? please
     
  3. Oxide 2.0.2149 for Rust 942.65 (1470)

    I get this when trying to load the plugin:

    (12:47:39) | [Oxide] 12:47 [Error] Failed to initialize plugin 'Notifier v3.0.9' (NullReferenceException: Object reference not set to an instance of an object)

    (12:47:39) | [Oxide] 12:47 [Debug] at Oxide.Core.Configuration.DynamicConfigFile.Get (System.String[] path) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.Notifier.GetConfig[String] (System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.Notifier.LoadVariables () [0x00000] in <filename unknown>:0

    at Oxide.Plugins.Notifier.Init () [0x00000] in <filename unknown>:0

    at Oxide.Plugins.Notifier.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
     
  4. Hello! I have question: When i connect on my server in local network, notifier annouce in chat my county - Unknown, where in plugin code i can change Unknown on any other country manually? In older version plugin i change "self.country" in code, but new version notifier dont have this string code.
     
  5. Please upload your config file.
    [DOUBLEPOST=1468261223][/DOUBLEPOST]
    What version of the plugin are you using?

    Though, this most likely is a connection issue between your local server and the the host of the player info stuff, the problem should solve itself sometime soon, just be patient.
     
  6. [Info("Notifier", "SkinN", "3.0.9", ResourceId = 797)]
     
  7. Checked the config file, was empty so deleted it and reinstalled notifier so a new config file could be generated, all working fine again. ^_^
     
  8. I am having this issue as shown in the pic. Any ideas?
    [​IMG]

    Config File:
    Code:
    {
      "Advert Messages": [
        "<orange>The Server restarts daily at 3AM Central"
      ],
      "Commands": {
        "Settings": {
          "Admins List": false,
          "Players Count": true,
          "Players List": true,
          "Plugins List": false,
          "Server Map": false,
          "Server MOTD": false,
          "Server Rules": false
        },
        "Triggers": {
          "Admins List": [
            "/admins"
          ],
          "Players Count": [
            "/online"
          ],
          "Players List": [
            "/players"
          ],
          "Plugins List": [
            "/plugins"
          ],
          "Server Map": [
            "/map"
          ],
          "Server MOTD": [
            "/motd"
          ],
          "Server Rules": [
            "/rules"
          ]
        }
      },
      "General Settings": {
        "Adverts Interval (In Minutes)": 12,
        "Broadcast To Console": true,
        "Date Format": "{day}/{month}/{year}",
        "Enable Advert Messages": true,
        "Enable Chat Separators": true,
        "Enable Icon Profile": false,
        "Enable Join Message": true,
        "Enable Leave Message": true,
        "Enable Plugin Prefix": true,
        "Enable Scheduled Messages": false,
        "Enable Welcome Message": false,
        "Hide Admins": true,
        "Icon Profile": "76561198235146288",
        "Notify Incoming Airdrop": false,
        "Notify Incoming Helicopter": false,
        "Prefix": "<white>[ <cyan>NOTIFIER<end> ]<end>",
        "Rules Default Language": "auto",
        "Time Format": "{hour}:{minute}:{second}"
      },
      "Message Of The Day": "We are using <cyan>Notifier<end> <grey>v3.0<end>, type <orange>/notifier help<end> for all its available commands.",
      "Rules": {
        "CZ": [
          "Cheatování je přísně zakázáno.",
          "Respektuj a neurážej ostatní hráče.",
          "Nespamuj chat zbytečně.",
          "Hraj fair play a nezneužívej bugy/exploity."
        ],
        "DE": [
          "Cheaten ist verboten!",
          "Respektiere alle Spieler",
          "Spam im Chat zu vermeiden.",
          "Spiel fair und missbrauche keine Bugs oder Exploits."
        ],
        "DK": [
          "Snyd er strengt forbudt.",
          "Respekter alle spillere.",
          "Undgå spam i chatten.",
          "Spil fair og misbrug ikke bugs / exploits."
        ],
        "EN": [
          "Cheating is strictly prohibited.",
          "Respect all players",
          "Avoid spam in chat.",
          "Play fair and don't abuse of bugs/exploits."
        ],
        "ES": [
          "Los trucos están terminantemente prohibidos.",
          "Respeta a todos los jugadores.",
          "Evita el Spam en el chat.",
          "Juega limpio y no abuses de bugs/exploits."
        ],
        "FR": [
          "Tricher est strictement interdit.",
          "Respectez tous les joueurs.",
          "Évitez le spam dans le chat.",
          "Jouer juste et ne pas abuser des bugs / exploits."
        ],
        "HU": [
          "Csalás szigorúan tilos.",
          "Tiszteld minden játékostársad.",
          "Kerüld a spammolást a chaten.",
          "Játssz tisztességesen és nem élj vissza a hibákkal."
        ],
        "IT": [
          "Cheating è severamente proibito.",
          "Rispettare tutti i giocatori.",
          "Evitare lo spam in chat.",
          "Fair Play e non abusare di bug / exploit."
        ],
        "JP": [
          "チート行為は固く禁じております。",
          "全てのプレイヤーに敬意を払って下さい。",
          "チャットでスパム行為はしないで下さい。",
          "バグの悪用行為や公平なプレイはしないで下さい"
        ],
        "NL": [
          "Vals spelen is ten strengste verboden.",
          "Respecteer alle spelers",
          "Vermijd spam in de chat.",
          "Speel eerlijk en maak geen misbruik van bugs / exploits."
        ],
        "PT": [
          "Usar cheats e totalmente proibido.",
          "Respeita todos os jogadores.",
          "Evita spam no chat.",
          "Nao abuses de bugs ou exploits."
        ],
        "RO": [
          "Cheaturile sunt strict interzise!",
          "Respectați toți jucătorii!",
          "Evitați spamul în chat!",
          "Jucați corect și nu abuzați de bug-uri/exploituri!"
        ],
        "RU": [
          "Запрещено использовать читы.",
          "Запрещено спамить и материться.",
          "Уважайте других игроков.",
          "Играйте честно и не используйте баги и лазейки."
        ],
        "TR": [
          "Hile kesinlikle yasaktır.",
          "Tüm oyuncular Saygı.",
          "Sohbet Spam kaçının.",
          "Adil oynayın ve böcek / açıkları kötüye yok."
        ],
        "UA": [
          "Обман суворо заборонено.",
          "Поважайте всіх гравців",
          "Щоб уникнути спаму в чаті.",
          "Грати чесно і не зловживати помилки / подвиги."
        ]
      },
      "Schedule Messages": {
        "22:00": [
          "It is now <orange>{localtime.date} {localtime.now}<end> (Server local time)"
        ],
        "22:50": [
          "It is now <orange>{localtime.now}<end> (Server local time)"
        ]
      },
      "Welcome Messages": [
        "<size=18>Welcome <lightblue>{player.name}<end></size>",
        "<orange><size=20>•</size><end> Type <orange>/notifier help<end> for all available commands",
        "<orange><size=20>•</size><end> Please respect our server <orange>/rules<end>",
        "<orange><size=20>•</size><end> Check our live map at <lime>[URL]http://{server.ip}:{server.port}<end>[/URL]"
      ]
    }
     
    Last edited by a moderator: Jan 15, 2017
  9. any broadcast comes to players as chat message help plz
     
  10. How about this...?
    Code:
    "Advert Messages": [
    "<orange>The Server restarts daily at 3AM Central<end>"
     
  11. Code:
    [Oxide] 23:33 [Info] [ConnectionDB] Updating Interfector [ 76561198286270497 ].
    192.168.0.101:63466/76561198286270497/Interfector joined [windows/76561197990779213]
    [Oxide] 23:33 [Info] [Notifier] Interfector joined from Unknown
    There i can change Unknown for any other country?
     
  12. Upload the file, don't post the text.
    [DOUBLEPOST=1468363979][/DOUBLEPOST]
    No you can't, even if you'd change the plugin code Notifier most likely saved your data and any one else's data that joined your server. The "Unknown" name is there when Notifier couldn't make a valid connection to the IP info host, or the data response is not valid, so it saves the player country as Unknown. However, whenever Notifier makes a valid connection or receives a valid response it will replace Unknown if the actual country.
     
  13. This worked, thank you!
    [DOUBLEPOST=1468366354][/DOUBLEPOST]
    Will do, thank you!
     
  14. Ok, where i can physically change word - Unknown on word - Russia? (all unresolved hosts need to be - Russia, not Unknown).
    Or how to add in code something like that: If ip = 192.168.0.101; Then country = Russia; - help please add this function in code.
     
  15. When the plugin writes "from unknown", then ut couldn't resolve the IP which is called by the webrequest.
     
  16. Ok got it. But that about add in code function "If ip = 192.168.0.101; Then country = Russia"? im not programmer and cant add it :(
     
  17. You know, that this is a private C-Class IP adress which is not routet into the net? This is why Notifier doesn't resolve this adress.
     
  18. In older version Notifier i change in code in line "self.country" Unknown on self.country Russian, and all work fine, but in new version line self.country absent.
     
  19. change this part of the code to add an execlusion when country can't be resolved

    Code:
            private void WebrequestFilter(int code, string response, BasePlayer player, bool sendJoinMessages)
            {
                try
                {
                    string uid = player.UserIDString;                if (!(response == null || code != 200))
                    {
                        if (Players.ContainsKey(uid))
                        {
                            var json = JObject.Parse(response);
                            string country = (string) json["country"];
                            string cCode = (string) json["countryCode"];
                            if (country != null)
                                Players[uid].country = country;
                            else
                                Players[uid].country = "Russia";  // if not resolved
                            if (cCode != null)
                                Players[uid].countrycode = cCode;
                            else
                                Players[uid].countrycode = "RU"; // if not resolved
                        }
                    }
                } catch {}            if (sendJoinMessages)
                    JoinMessages(player);
            }
     
  20. In the plugin code you're looking for lines 66 and 68, change both lines EXACLY as they are below, otherwise this won't work at all:
    Code:
    public string country= "Russia";
    ...
    public string countrycode = "RU";
    
    But like I said, this won't help much either, but there's nothing else you can do.
    Also this isn't something I will add in future update as it is useless, so in the future update you will have to change it again.