ArgumentOutOfRangeException when broadcastingError
Hi. So first broadcast works and then second one gives me this then plugin stops working.

Failed to run a 30.00 timer in 'AutoBroadcast v1.0.8' (ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index)
  at System.Linq.Enumerable.ElementAt[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Int32 index) [0x0007b] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0 
  at Oxide.Plugins.AutoBroadcast.m__0 () [0x000e9] in :0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0 

Here is my lang config 
{
  "Message1": "Welcome to BoesMan x10 - NO BULLSHIT RULES!",
  "Message2": "Server will restart everyday at 05:00!"
}​


also here is my config

{
  "Broadcast Interval (Seconds)": 30,
  "Randomize Messages (true/false)": false
}
Try naming them something other than Message1 and Message2, ex. Welcome and Restart.
After i changed the interval time to 10 mins it was fine :) thanks 
hello wulf
can you help me with your plugin (AutoBroadcast)
I get in the 3rd message always an error message
and the plugin breaks off


the error message
Failed to run a 30.00 timer in 'AutoBroadcast v1.0.8' (ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index)
at System.Linq.Enumerable.ElementAt[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Int32 index) [0x0007b] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0

at Oxide.Plugins.AutoBroadcast.<Broadcast>m__0 () [0x000e9] in <fb1e9776b8f943bca51657b2673a9ed3>:0

at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0​

 


my lang file
{
"willkommen": "test1",
"hilfe": "test2",
"neustart": "test3",
"spende": "test4"
}
@Hawker mine did exactly the same but after the second one. I change the config so it announces less frequant and it still gave error after reload. I gave it like 3 more reloads and 2 restarts and that seemed to have done it. It just randomly started working without me changing anything. Really strange plugin this :D
I think i have found the error 
Dont write a singel Nummer 

No  write   "restart at 6 oclock"
Yes write "restart at 6oclock"

I have Change my lang file  und now it work

Merged post

{
"willkommen": "[#00FF00][MadMax][/#] \nHerzlich Willkommen auf dem MadMax Server, wir wünschen euch viel Spaß!.",
"hilfe": "[#00FF00][MadMax][/#] \n[#FFA500]Du brauchst Hilfe?[/#] \nVersuche einen [#A9D0F5]Admin[/#] im Chat/Steam zu erreichen.",
"neustart": "[#00FF00][MadMax][/#] \n[#FFA500]Automatischer Server Neustart um[/#] [#ff0000]6Uhr[/#] \nDieser wird [#008000]30min[/#] vorher angekündigt.",
"spende": "[#00FF00][MadMax][/#] \n[#FFA500]Spende[/#] für den Server und erhalte Material! Scrap, Stein, Holz, Fragmente und HQ \nInteresse geweckt? dann geh auf \n[#ff0000]www.battle-station.de/donate[/#].",
"cheaten": "[#00FF00][MadMax][/#] \nDas Cheaten, sowie das Raiden wird mit einem [#ff0000]permanenten Ban[/#] bestraft.",
"Töten": "[#00FF00][MadMax][/#] \nDas Töten von Spielern ist [#ff0000]verboten![/#] \n\n[#ff0000]Nur im PVP-Bereich[/#] ist das Töten von Spielern gestattet.",
"geschütze": "[#00FF00][MadMax][/#] \nAutomatische Geschütze [#ff0000]müssen[/#] auf [#008000]friedlich[/#] gestellt werden, wenn sie außerhalb der Basen stehen.",
"fragenregel": "[#00FF00][MadMax][/#] \nBei Fragen zu den Regeln oder zu den Plugins, wende dich an einen [#A9D0F5]Admin[/#].",
"verbaut": "[#00FF00][MadMax][/#] \nIhr habt euch verbaut? Mit dem Befehl [#04B4AE]/remove[/#] könnt ihr falsche Teile 60sek. lang abreißen."
}


Merged post

So I have no problems with the plugin but if I write the clock 6 hours apart, the plugin crashes with the same error message

Merged post

My replay Timer ist set to 5 min 
"Broadcast Interval (Seconds)": 320,
Failed to run a 350.00 timer in 'AutoBroadcast v1.0.8' (ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index) at System.Linq.Enumerable.ElementAt[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Int32 index) [0x0007b] in :0 at Oxide.Plugins.AutoBroadcast.m__0 () [0x000e9] in <3528f2ba8b064ff59bfedd1afcdd5c3a>:0 at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0
Hi, I've noticed AutoBroascast stopped working since yesterday I've had to reload it three times it eventually stops broadcasting. I've only installed Ping since yesterday.
The Ping plugin would not cause this plugin to stop working. Please check your oxide/logs for errors.
This is the error I found in the logs.
02:57 [Error] Failed to run a 180.00 timer in 'AutoBroadcast v1.0.8' (ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index)
  at System.Linq.Enumerable.ElementAt[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Int32 index) [0x0007b] in :0 
  at Oxide.Plugins.AutoBroadcast.m__0 () [0x000e9] in <8497aff81df1483ea2a7c09ff86706f8>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0 ​


Merged post

I've added 2 more lines since yesterday, I will try removing one of them if it stops broadcasting again.
It has been working without problems for weeks and today I removed a line and this keeps hapenning again:
(16:47:03) | Failed to run a 180.00 timer in 'AutoBroadcast v1.0.8' (ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index)
  at System.Linq.Enumerable.ElementAt[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Int32 index) [0x0007b] in <b7efe7e6e548497fac3c4a6049a0a4b6>:0 
  at Oxide.Plugins.AutoBroadcast.<Broadcast>m__0 () [0x000e9] in <cd80a1256b5947938be16a11a5b7a852>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0​
runescape
It has been working without problems for weeks and today I removed a line and this keeps hapenning again:
(16:47:03) | Failed to run a 180.00 timer in 'AutoBroadcast v1.0.8' (ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index)
  at System.Linq.Enumerable.ElementAt[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Int32 index) [0x0007b] in <b7efe7e6e548497fac3c4a6049a0a4b6>:0 
  at Oxide.Plugins.AutoBroadcast.<Broadcast>m__0 () [0x000e9] in <cd80a1256b5947938be16a11a5b7a852>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0​
Did you remove it from lang files? Which language do you have it set for? Details. :P
Yes, from lang file, I only use en.
Failed to run a 50.00 timer in 'AutoBroadcast v1.0.8' (ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index)
at System.Linq.Enumerable.ElementAt[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Int32 index) [0x0007b] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Oxide.Plugins.AutoBroadcast.<Broadcast>m__0 () [0x000e9] in <53f2be538c934760998736cdd1eb9724>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <cf88a28c7fb44d36890d85a78331cc9d>:0

and also sometimes need to reload the plugin bcz its stop showing messages

Whenever I change both lines, it throws an error code! If I only keep it to one line. It works fine. But changing/adding a new one will throw it. I haven't touched any other config file. This would be only changing the txt for the example messages.

Failed to run a 300.00 timer in 'AutoBroadcast v1.0.8' (ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index)
at System.Linq.Enumerable.ElementAt[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Int32 index) [0x0007b] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Oxide.Plugins.AutoBroadcast.<Broadcast>m__0 () [0x000e9] in <e39e3201a9b14b4ab6b2cb87fdef6797>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <ec05e0208c9149bba43236ca58fea105>:0