AutoBroadcast

Sends randomly configured chat messages every X amount of seconds

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

5/5, 19 likes
  1. Cataclysme

    Cataclysme Master Researcher

    Hi,

    Just to tell you works fine now, i don't know why :p
     
  2. Blackeyes

    Blackeyes Naked Wanderer

    hello


    the plugin shows me that the 4 first line

    Code (Text):
    {
      "eventfr": "vendredi 13 octobre event jump à 21H  1vip++ 1vip+ 1vip à gagner pour 1 semaine. Raid desactivé pendant l'event 2 heures",
      "clanen": "If you play more than one you are obliged to create a clan. Anyone who will be in a base has 100%, this base will be automated destroyed",
      "clanfr": "Si vous jouez à plusieurs vous êtes obligé de créer un clan. Toutes personne qui sera dans une base à 100%, cette base sera automatiquent détruite.",
      "rule": "Reglement et  plugins tapez /info - Rules and plugins type / info",
      "language": "Speak english or french no repect MUTE chat",
      "eventen": "friday 13 October event jump a 21H 1vip++ 1vip+ 1vip to win for 1 week.Raid disabled during the event 2 hours",
      "wipe": "Wipe Sunday, October 15 at 9 am / dimanche 15 octobre à 9H."
     
    }
     
     
  3. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Do you have messages in any other languages?
     
  4. Blackeyes

    Blackeyes Naked Wanderer

    no just lang/en
     
  5. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    So you edited lang/en to add French or you have lang/en in addition to lang/fr? Basically the issue you are having would only happen if the default language has 4 messages, so it assumes the other languages have 4 as well.
     
  6. Blackeyes

    Blackeyes Naked Wanderer

    I do not have any files in lang / fr
     
  7. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Did you reload the plugin after making the changes?
     
  8. Blackeyes

    Blackeyes Naked Wanderer

    yes i reload the pluggin
     
  9. Cataclysme

    Cataclysme Master Researcher

    Black, did you use the same variable on your lang ? If not, you need I think.

    Like this :
    /lang/en:
    "wipe": "Wipe Sunday, October 15 at 9 am"

    /lang/fr:
    "wipe": "dimanche 15 octobre à 9H."

    You must not use wipefr and wipeen, I think
     
  10. Blackeyes

    Blackeyes Naked Wanderer

    I put all in the file lang / en
     
  11. LowCoyote

    LowCoyote Naked Wanderer

    Hey,

    I have a problem with autobroadcast (AutoBroadcast | Oxide) , in the lang file I can put just 2 sentance when put 3 the plugins stop working and this message spawn in the console :

    "Error while compiling: AutoBroadcast.cs(41,7): error CS1503: Argument `#1' cannot convert `string' expression to type `int'

    Me lang file look like this :
    [​IMG]
     
  12. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Did you change something inside the plugin?
     
  13. LowCoyote

    LowCoyote Naked Wanderer

    No but i saw this now in the console :
    Code (Text):
    Failed to call hook 'OnServerInitialized' on plugin 'AutoBroadcast v1.0.8' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'AnotherExample', line 4, position 2.)
    at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in :0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in :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 :0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in :0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in :0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in :0
     
    Last edited by a moderator: Oct 15, 2017 at 1:33 PM
  14. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Looks like your changes are invalid JSON. Check against a site such as jsonlint.com.
     
  15. Desstt 2

    Desstt 2 Naked Wanderer

  16. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    One } too many, keys named the same.
     
  17. jlandy71

    jlandy71 Naked Wanderer

    How can I change the color of the text? and which file do you put it in? broadcast text btw if that makes a diference.
     
  18. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    oxide/lang

    [#hexcode]Text[#]

    Example:
    [#ffffff]Text[/#]
     
  19. jlandy71

    jlandy71 Naked Wanderer

    the fffff is that the color i want it to be?
     
  20. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Yes, that's the hex color code.