Jump to content

not restarting

Closed 1.0.4 1.0.5

venda_vole
venda_vole

Posted

hi, after update plugin doesnt work anymore, getting this error from console:

 

Failed to run a 694.34 timer in 'AutoRestart v1.0.4' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)

at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000f9] in <f98723dd4586469db5213ec59da723ca>:0

at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <f98723dd4586469db5213ec59da723ca>:0

at System.String.Format (System.String format, System.Object arg0) [0x00008] in <f98723dd4586469db5213ec59da723ca>:0

at Oxide.Plugins.AutoRestart.FormatChatMessage (System.String message) [0x0000c] in <c2530cb0b79942a29afb07a1ed400450>:0

at Oxide.Plugins.AutoRestart.SendChatMessage (System.String message) [0x00000] in <c2530cb0b79942a29afb07a1ed400450>:0

at Oxide.Plugins.AutoRestart.ShowMessage (System.String message, System.Boolean isUpdate) [0x000c5] in <c2530cb0b79942a29afb07a1ed400450>:0

at Oxide.Plugins.AutoRestart+<>c__DisplayClass43_0.<ScheduleAlerts>b__0 () [0x00016] in <c2530cb0b79942a29afb07a1ed400450>:0

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

crash

Posted

Hello, ill be debuging this now.

crash

Posted (edited)

Hello, i've tried restarting with our command /restart and restarting with a time scheduled and i get no errors. 

The error is likely caused by a mismatch between the number of placeholders in the "ChatRestartAlert" language string. to fix this issue, we need to ensure that the "ChatRestartAlert" language string has exactly the placeholder ({0}).

Check your language file (lang/AutoRestart.json) and make sure the "ChatRestartAlert" entry looks something like this:

{
  "ChatRestartAlert": "Server restart scheduled in {0}."
}

If this still doenst work, i recommend deleting the lang file and creating a new one.

Edited by crash
crash

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.0.5

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.