1. Ye I know, at least as far I've test it... but people are goind to complaint... :/
     
  2. Wulf

    Wulf Community Admin

    It would happen if somehow their OS doesn't have a timezone set.
     
  3. don´t know why but if i try to change Motd or Welcome msg it dosent changed , i write directly in the c+ file , try it in en.jsaon and json file
     
  4. Mine does tho, I'm on windows and is set to GMT
     
  5. Wulf

    Wulf Community Admin

  6. just noticed this thread. gonna test it tonight.
     
  7. The TimeZone error has been fixed. And though had nothing to do with the system's timezone...

    Please re-download the file as it has been updated.
     
  8. that <size...> thing in console on join/leave notifications still here, as it was in older version:
    Code:
    [Oxide] 23:39 [Info] [Notifier] <size=12>Fuck Society left the server (Kicked: Unresponsive)</size>
    [Oxide] 23:40 [Info] [Notifier] <size=12>Fuck Society joined from Hashemite Kingdom of Jordan</size>
    [Oxide] 23:40 [Info] [Notifier] <size=12>[Russ] Deagle joined from Belgium</size>
    also getting timezone message as posted above on recompiling plugin,
    and there is still no name formats for player levels? =)
    [DOUBLEPOST=1468878461][/DOUBLEPOST]same with newest version:
    Code:
    [Oxide] 23:45 [Debug] Reload requested for plugin which is already loading: Notifier
    [Oxide] 23:45 [Info] Notifier was compiled successfully in 2031ms
    [Oxide] 23:45 [Error] Failed to call hook 'Unload' on plugin 'Notifier v3.1.0' (TimeZoneNotFoundException: Exception of type 'System.TimeZoneNotFoundException' was thrown.)
    [Oxide] 23:45 [Debug]   at System.TimeZoneInfo.get_Local () [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Utilities.DateTimeUtils.GetUtcOffset (DateTime d) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Utilities.DateTimeUtils.WriteDateTimeString (System.Char[] chars, Int32 start, DateTime value, Nullable`1 offset, DateTimeKind kind, DateFormatHandling format) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.JsonTextWriter.WriteValue (DateTime value) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.JsonWriter.WriteValue (Newtonsoft.Json.JsonWriter writer, PrimitiveTypeCode typeCode, System.Object value) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializePrimitive (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonPrimitiveContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0
    [Oxide] 23:45 [Info] Unloaded plugin Notifier v3.1.0 by SkinN
    [Oxide] 23:45 [Info] Loaded plugin Notifier v3.1.0 by SkinN
    [DOUBLEPOST=1468878560][/DOUBLEPOST]nah, sorry, now its fine. looks like it was old plugin on reload:
    Code:
    > reload Notifier
    [Oxide] 23:48 [Info] Unloaded plugin Notifier v3.1.0 by SkinN
    [Oxide] 23:48 [Info] Loaded plugin Notifier v3.1.0 by SkinN
    > reload Notifier
    [Oxide] 23:48 [Info] Unloaded plugin Notifier v3.1.0 by SkinN
    [Oxide] 23:48 [Info] Loaded plugin Notifier v3.1.0 by SkinN
     
    Last edited by a moderator: Jul 18, 2016
  9. The timezone errors will disapear on the next server restart, I will see what I can do about the size format, and you may use {player.level} in player side messages, like connections and welcome message.
     
  10. thanks, its works just fine without restart, just simple plugin reload.
    what about default color for messages? still only way to change it in plugin code?
    [DOUBLEPOST=1468879523][/DOUBLEPOST]http://image.prntscr.com/image/abaaa7aef9c0414eabd94ab829e23c5d.png
    can you make option in config or at least cut the number to integer for level? looks a bit weird right now..
    [DOUBLEPOST=1468879689][/DOUBLEPOST]or make lvl value as integer + additional name format for level progress %..
     
    Last edited by a moderator: Jul 19, 2016
  11. Yes you can indeed change the plugins default colors in the plugin code, this if you know how to do it currectly. The level value is indeed an integer, and Rust devs haven't implented the NextLevelProgress yet, as a way around this I tried to know how the progress bars in the UI work, but I couldn't figure what they do exacly. But I'll keep digging later.

    Try this tho, as I have fixed the size formats as you asked me to.
     
  12. thanks i will check it later.
    about level, then maybe there is a point to get rid of floating-point part? just truncate it and leave integer part.
     
  13. unsure, but i think version 3.1 makes my server disappear from servers list in around a hour after i restart plugin/server. it is possible at all? installed this plugin late yesterday and went to sleep. today found my server offline (server by itself keep running, just no players on it). restarted it and found it offline again in ~ a hour. so i rolled back to version 3.0.9. now its ok.
     
  14. To get the percentage of the current level do something like this (pseudo code):

    int level = GetLevel(player);
    float xpTotal= GetCurrentXP(player);
    float xpNeededTotal = LevelToXP(level + 1);
    float xpNeededForLevelUp = xpNeededTotal - LevelToXP(level);
    float xpInCurrentLevel = xpTotal - LevelToXP(level) ;

    float percentage = (xpInCurrentLevel / xpNeededForLevelUp) * 100;
     
  15. Thanks for the tip ;)
    [DOUBLEPOST=1468953550][/DOUBLEPOST]
    Search for the Oxide logs for any crashes, see if you can find the cause, nevertheless, I hardly think Notifier can do such a thing.
     
  16. Crazy maths u kn0w :p
     
  17. Incoming Chopper is also not working for me.
     
  18. Hello, how can I change the name "notifier" to my label.
    Becouse i cannot find that.
     
  19. In the config file under the config folder, search for the Plugin Prefix