Jump to content

Economics

Closed 2.4.2 2.4.3

MrLiquid
MrLiquid

Posted

Economics not working with VQ 

 

 

Failed to call hook 'VirtualQuarriesConsoleCommand' on plugin 'VirtualQuarries v2.4.2' (InvalidCastException: Null object cannot be converted to a value type.)
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00019] in <ff4e3fe86250407285eaebda8f185c35>:0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00007] in <ff4e3fe86250407285eaebda8f185c35>:0 
  at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Plugins.VirtualQuarries.TryUpgradeQuarry (BasePlayer player, System.Int32 quarryId, System.String type) [0x000ac] in <fadff0ad45554ec08dfbded307a47d19>:0 
  at Oxide.Plugins.VirtualQuarries.VirtualQuarriesConsoleCommand (ConsoleSystem+Arg arg) [0x006d7] in <fadff0ad45554ec08dfbded307a47d19>:0 
  at Oxide.Plugins.VirtualQuarries.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00be7] in <fadff0ad45554ec08dfbded307a47d19>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 

MrLiquid

Posted

I have fixed it. doubt I'm allowed to share...

 

Here is what I did.

Edit all entries matching this "player.userID" CHANGE TO player.userID.Get() 

BUT DO NOT CHANGE THESE ONES "player.UserIDString

ShiiZo

Posted (edited)

you are awesome mate, thx a lot.

Edited by ShiiZo
ThePitereq

Posted

Fixed in recent version. Sorry for waiting! Wasn't in home 😞

ThePitereq

Posted

Changed Status from Pending to Closed

Changed Fixed In to 2.4.3

ShiiZo

Posted

dont hurry yourself too much. This updated messed up way too many plugins.

I just updated your plugin and reloaded it, now all is working fine.

thx a lot.

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11k
Customers served
Files Sold
158.3k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • 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.