Jump to content

integration with advanced status error

Work in Progress 1.2.9

SiCkNeSs
SiCkNeSs

Posted (edited)

The following error appears if you have both advanced status and simplestatus loaded:
 

Failed to call internal hook 'SetStatusProperty' on plugin 'SimpleStatus v1.2.9' [4143986211] (Input string was not in a correct format.)
   at void Number.ThrowOverflowOrFormatException(bool overflow, string overflowResourceKey)
   at float Number.ParseSingle(ReadOnlySpan<char> value, NumberStyles styles, NumberFormatInfo info)
   at float float.Parse(string s, IFormatProvider provider)
   at string Oxide.Plugins.SimpleStatus.RgbaToHex(string rgba) in /home/container/carbon/plugins/SimpleStatus.cs:line 972
   at void Oxide.Plugins.SimpleStatus.AS_UpdateBar(ulong userId, StatusInfo status, PlayerStatusInfo data, Dictionary<string, object> ssprops)+(object x) => { } in /home/container/carbon/plugins/SimpleStatus.cs:line 953
   at void Oxide.Plugins.SimpleStatusExtensionMethods.ExtensionMethods.CopyFrom<object>(Dictionary<string, object> dict, Dictionary<string, object> other, string key1, string key2, Func<object, object> clean) in /home/container/carbon/plugins/SimpleStatus.cs:line 838
   at void Oxide.Plugins.SimpleStatus.AS_UpdateBar(ulong userId, StatusInfo status, PlayerStatusInfo data, Dictionary<string, object> ssprops) in /home/container/carbon/plugins/SimpleStatus.cs:line 953
   at void Oxide.Plugins.SimpleStatus.SetStatusProperty(string userId, string statusId, Dictionary<string, object> properties) in /home/container/carbon/plugins/SimpleStatus.cs:line 680
   at object Oxide.Plugins.SimpleStatus.InternalCallHook(uint hook, object[] args) in SimpleStatus.cs/Internal:line 562


it is caused by the handoff to advanced status

on line 953:

parameters.CopyFrom(ssprops, "SubText", "text", (x) => RgbaToHex(x.ToString()));

should be:
 

parameters.CopyFrom(ssprops, "SubText", "text", (x) => x.ToString());

 

Should also fix this:

https://codefling.com/files/support/17300-error/
 

Edited by SiCkNeSs
Mr01sam

Posted

Changed Status from Pending to Work in Progress

1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

119.4k

Files Sold

Total number of files sold.

2.4m

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.