AutoBroadcast

Sends randomly configured chat messages every X amount of seconds

Total Downloads: 7,522 - First Release: Oct 26, 2014 - Last Update: Feb 27, 2017

5/5, 20 likes
  1. Meerology

    Meerology Scavenger

    Can someone please tell me how to make your custom messages work? I tried editing the json file in the config and language and I validated it onwww.jsonlint.com but I keep getting the "This is an example, change it, ...."
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Did you reload the plugin after? Do you have your language set to the language you customized?
     
  3. Meerology

    Meerology Scavenger

    What do you mean reload the plugin? I restarted the server. Language is in English
     
  4. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Restarting would do the same as reloading the plugin, but you can use the 'oxide.reload AutoBroadcast' console or chat command as admin to reload a plugin's config or lang files. Could you show me the modified file please?
     
  5. Meerology

    Meerology Scavenger

    Here you go
     
  6. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    To start with, delete your config file and let it be re-created as you have old settings and messages that should not exist in it.
     
  7. Meerology

    Meerology Scavenger

    I dont know what happened but now its working. Thanks anyways
     
  8. KalasRL

    KalasRL Wood Hoarder

    Can I use colors with it?
     
  9. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Yes, you can.
     
  10. KalasRL

    KalasRL Wood Hoarder

    On some plugins It's different like <#HEX> </end>

    How does it work on yours?
     
    Last edited: Jun 16, 2017
  11. KalasRL

    KalasRL Wood Hoarder

    I figured out how to add colors, but I get an error:

    Code (Text):
    {
      "Kits": "<color=red>[Kits]</color> Get Some Kits: /kit",
      "Vote": "<color=red>[Kits]</color> Cast Your Vote Here: rust-servers.net/server/127035/vote/",
      "PrivateMessage": "<color=red>[PrivateMessageSend]</color> Talk Privately To Someone: /pm",
      "AutoDoor": "<color=red>[AutoDoor]</color> Close Doors Manually? No More!: /ad",
      "BuildingGrades": "<color=red>[BuildingGradesUpgrade]</color> /Downgrade Your Base Easily! /up or /down",
      "FriendlyFire": "<color=red>[FriendlyFire]</color> Enable/Disable Friend Fire: /ff",
      "Friends": "<color=red>[Friends]</color> Add/Remove A Friend: /friend/",
      "Trade": "<color=red>[Trade]</color> Safely Trade With Someone: /trade",
      "Skins": "<color=red>[Skins]</color> Check Out Some Skins: /skin",
      "Rust:IO" "<color=red>[Rust:IO]</color> See Yourself Live!: playrust.io (Search For Server Name)"

    }
    I don't understand what's wrong, too much codes I can't see what's wrong :)

    Damn it, forgot : after RUST:IO. fixed it sorry!
     
  12. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Any plugins that use </end> and such are using custom formatting which most plugins do not use. The </color> end is standard for Unity 5 games such as Rust. You can also use the universal formatting that Oxide provides such as [#colornameorcode]text here[/#].
     
  13. KalasRL

    KalasRL Wood Hoarder

    Thank you :)
     
  14. MrWho

    MrWho Naked Wanderer

    how any size?
     
  15. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Changing the text size? Just add either [+5] (or any number) and end it with [/+]. You can add those to the messages under oxide/lang.

    Example:
    Code (Text):
    [+16]This text will be size 16[/+]
     
  16. MrWho

    MrWho Naked Wanderer

    thanks
    def size ? 16
     
  17. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    That varies based on the game.
     
  18. Deeplyfried

    Deeplyfried Wood Hoarder

    hey @Wulf Im really split right now, Ive made some broadcasts, but when I added the third line of my file is suddenly just started to post the first and the last message. is there something in the file that Im not seeing? before I added the third line all of the broadcast showed
     
  19. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    You have 3 out of 4 of the messages with the same key (keys need to be unique.)
     
  20. Smabezo

    Smabezo Wood Hoarder

    It shows the first 2 messages, but it crash at the 3 text and shows nothing.


    Code (Text):
    {
        "Message1": "We're testing",
        "Message2": "Just for test",
        "Message3": "Another test",
        "Message4": "Testing the test"
    }

    Code (Text):
    Failed to run a 30.00 timer in 'AutoBroadcast v1.0.8' (ArgumentOutOfRangeException: Argument is out of range.)
    | at System.Linq.Enumerable.ElementAt[KeyValuePair`2] (IEnumerable`1 source, Int32 index, Fallback fallback) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.ElementAt[KeyValuePair`2] (IEnumerable`1 source, Int32 index) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.AutoBroadcast.<Broadcast>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0