WelcomeMessages

Moved

Total Downloads: 3,768 - First Release: Nov 19, 2016 - Last Update: Dec 25, 2017

5/5, 12 likes
  1. 2 ?s from a noob renting a new server for 7DTD. Does "Universal" mean this works for 7DTD? If so, where do I put this file? Plugins or lang?
    thanks
    -Cp
     
  2. Wulf

    Wulf Community Admin

    Only the games that Oxide currently provides the universal API (Covalence) for. Oxide for 7 Days to Die is a little bit behind though.
     
  3. Copy that Wulf. Although I don't fully understand what that means I appreciate your prompt reply. Is there forum/thread I can keep an eye on to know when 7DTD will catch up so-to-speak? Or willl this issue eventually be covered here? thanks
     
  4. Wulf

    Wulf Community Admin

    Not currently, but support for it is pretty limited right now. I've been working on getting it up-to-date with the other supported games.
     
  5. Hi,

    If a player connects and then disconnects before the wait interval has passed it will produce this error:
    Failed to run a 25.00 timer in 'WelcomeMessages v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
     
  6. Hello guys,

    I'm starting a server for Rust on Debian.
    But the wellcome Message plugin doesn't work.

    Can you explain How to fix?
    thanks by advance
    Regards
     
  7. Wulf

    Wulf Community Admin

    Could you explain how it isn't working?
     
  8. I'll add a null check for that.
    Are you getting any errors. Is the plugin fully compiled and loaded? Type oxide.plugins in console and check to make sure that it is there.
     
  9. Hey thanks for helping me :)

    Okay I got Error New Line in Constant ligne 43

    lang.RegisterMessages(new Dictionary<string, string>
    {
    ["Welcome"] = "[#cyan]Bienvenue sur le serveur {0}![/#]
    \n[#cyan]Ecrire /help pour voir les commandes[/#]
    \n[#cyan]Ecrire /map mini pour restaurer la MiniMap[/#]
    \n[#red]Respectez les règles du serveur[/#]"
    }, this, "fr");

    Don't know where the problem is..
     
  10. Wulf

    Wulf Community Admin

    Don't edit the plugin itself, edit the oxide/lang files.
     
  11. Okay my Bad!

    Thanks for everything :)

    See you around
     
  12. Hi,

    Can you fix the NRE error, please ?

    Code:
    (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)Failed to run a 25.00 timer in 'WelcomeMessages v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
    (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)  at BasePlayer.SendConsoleCommand (System.String command, System.Object[] obj) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Player.Message (.BasePlayer player, System.String message, System.String prefix, UInt64 userId) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.WelcomeMessages+<OnUserConnected>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0 
    Thanks you !
     
  13. Did you edit the json files in any way
     
  14. Thanks for your reply.

    You can check my config file here:
    Code:
    {
      "WaitIntervalInSeconds": 1.0,
    }
    and my lang files:
    Code:
    {
      "Welcome": "<color=cyan>Welcome to Instinct Server !</color>
      Type <color=red>/info</color> to see rules and all commands available !
      You can use <color=red>/kit</color> to see kits you can redeem !
      Owners had their name in <color=red>red</color>, moderators in <color=green>green</color> and CommunityManager in <color=#a020f0>purple</color> !
      We recommand you to use <color=red>'/lang en'</color> to see plugins messages in English
      <color=cyan>Good Game on Instinct !</color>"
    }
    Code:
    {
      "Welcome": "<color=cyan>Bienvenue sur le serveur Instinct !</color>
       Tape <color=red>/info</color> pour avoir la liste des règles et des commandes !
       Des kits sont disponibles si vous le souhaitez en tapant <color=red>/kit !</color>
       L'admin a le pseudo en <color=red>rouge</color>,modos en <color=green>vert</color> et CommunityManager en <color=#a020f0>violet</color> contactez nous si besoin !
       Nous recommendons la commande <color=red>'/lang fr'</color> pour avoir les messages plugins en Français
       <color=cyan>Nous vous souhaitons bon jeu sur Instinct !</color>"
    }
     
    Last edited by a moderator: Aug 30, 2017
  15. Your error is from your lang files
     
  16. Use #[colorname] [/#] for colors, same for all other sequences. Look at the overview for a multi-line example.
     
  17. My bad sorry
     
  18. WelcomeMessages is refusing to load in Rust with the latest update. It also says it's creating a new config file, but doesn't actually write anything, and leaves the original config and lang file intact.

    If I issue the plugins command in the console, then I see this:-

    "WelcomeMessages - Unterminated string. Expected delimiter: ". Path 'Welcome', line 8, position 1."

    Code:
    (00:56:16) | [WelcomeMessages] Creating new configuration file for WelcomeMessages--Version#: 1.0.4
    (00:56:16) | Failed to initialize plugin 'WelcomeMessages v1.0.4' (JsonReaderException: Unterminated string. Expected delimiter: ". Path 'Welcome', line 8, position 1.)
    (00:56:16) | at Newtonsoft.Json.JsonTextReader.ReadStringIntoBuffer (Char quote) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.JsonTextReader.ParseString (Char quote, ReadType readType) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.JsonTextReader.ReadStringValue (ReadType readType) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.JsonTextReader.ReadAsString () [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0
    (00:56:16) | Unloaded plugin WelcomeMessages v1.0.4 by Ankawi
    (00:56:16) | Previous version of plugin failed to load: WelcomeMessages
    Protocol: 2017.150.1
    Build Date: 09/28/2017 20:37:48
    Unity Version: 2017.1.1f1
    Changeset: 23033
    Branch: main
    Oxide Version: 2.0.3508
     
  19. Plugin give errors on console, an awesome plugin :( Please update it <3
     
  20. I'll check it out soon, could you post some of the errors here?