Jump to content

Version number "1.7.4b5" causes Carbon to throw

Fixed 1.7.4b5 1.7.4

miniMe_rust
miniMe_rust

Posted

Failed to compile 'MonumentOwner':  (Input string was not in a correct format.)
   at void Number.ThrowOverflowOrFormatException(bool overflow, string overflowResourceKey)
   at int Number.ParseInt32(ReadOnlySpan<char> value, NumberStyles styles, NumberFormatInfo info)
   at int int.Parse(string s)
   at new Oxide.Core.VersionNumber(string version) in /__w/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.SDK/src/Oxide/Version.cs:line 33
   at new InfoAttribute(string Title, string Author, string Version) in /__w/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.SDK/src/Plugins/Attribute.cs:line 19
   at object[] MonoCustomAttrs.GetCustomAttributesBase(ICustomAttributeProvider obj, Type attributeType, bool inheritedOnly)
   at object[] MonoCustomAttrs.GetCustomAttributes(ICustomAttributeProvider obj, Type attributeType, bool inherit)
   at object[] RuntimeType.GetCustomAttributes(Type attributeType, bool inherit)
   at Attribute[] Attribute.GetCustomAttributes(MemberInfo element, Type type, bool inherit)
   at Attribute Attribute.GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit)
   at Attribute System.Reflection.CustomAttributeExtensions.GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit)
   at IEnumerator Carbon.Managers.ScriptLoader.Compile()+MoveNext() in /__w/Carbon/Carbon/Carbon.Core/Carbon/src/Loaders/ScriptLoader.cs:line 478
Invalid plugin format in 'MonumentOwner.cs'. Namespace must be Carbon|Oxide.Plugins and inherited class must be Carbon|Rust|CovalencePlugin.

Remedy: Edit the source .cs file and change "1.7.4b5" >> "1.7.4"

jtedal

Posted

6 hours ago, miniMe_rust said:
Failed to compile 'MonumentOwner':  (Input string was not in a correct format.)
   at void Number.ThrowOverflowOrFormatException(bool overflow, string overflowResourceKey)
   at int Number.ParseInt32(ReadOnlySpan<char> value, NumberStyles styles, NumberFormatInfo info)
   at int int.Parse(string s)
   at new Oxide.Core.VersionNumber(string version) in /__w/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.SDK/src/Oxide/Version.cs:line 33
   at new InfoAttribute(string Title, string Author, string Version) in /__w/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.SDK/src/Plugins/Attribute.cs:line 19
   at object[] MonoCustomAttrs.GetCustomAttributesBase(ICustomAttributeProvider obj, Type attributeType, bool inheritedOnly)
   at object[] MonoCustomAttrs.GetCustomAttributes(ICustomAttributeProvider obj, Type attributeType, bool inherit)
   at object[] RuntimeType.GetCustomAttributes(Type attributeType, bool inherit)
   at Attribute[] Attribute.GetCustomAttributes(MemberInfo element, Type type, bool inherit)
   at Attribute Attribute.GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit)
   at Attribute System.Reflection.CustomAttributeExtensions.GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit)
   at IEnumerator Carbon.Managers.ScriptLoader.Compile()+MoveNext() in /__w/Carbon/Carbon/Carbon.Core/Carbon/src/Loaders/ScriptLoader.cs:line 478
Invalid plugin format in 'MonumentOwner.cs'. Namespace must be Carbon|Oxide.Plugins and inherited class must be Carbon|Rust|CovalencePlugin.

Remedy: Edit the source .cs file and change "1.7.4b5" >> "1.7.4"

Wow, did this fix the problem?

miniMe_rust

Posted

3 hours ago, jtedal said:

Wow, did this fix the problem?

Yes, it was as simple as removing the b5 from the version number in the plugin head. Once removed the plugin compiled fine and works (in Carbon) as far as I can tell.

  • Like 1
jtedal

Posted

Changed Status from Pending to Fixed

Changed Fixed In to Next Version

  • Like 1
  • Administrator
Death

Posted

That is a very odd version format, and I'm surprised it works on Oxide. If that's the case we'll make sure it works on Carbon as well.

  • Like 1
2m

Downloads

Total number of downloads.

9.4k

Customers

Total customers served.

136.8k

Files Sold

Total number of files sold.

2.9m

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.