Pychnight / TshockRpgToolKit

Master Controller for distrubtion of quests, custom npcs, custom items and skills, housing, leveling, npcshops, etc.
GNU General Public License v2.0
11 stars 1 forks source link

[Housing] Creation Error #60

Closed Pychnight closed 5 years ago

Pychnight commented 5 years ago

2019-07-07 15:49:07 - Command: ERROR: System.ArgumentNullException: Value cannot be null. Parameter name: key at System.ThrowHelper.ThrowArgumentNullException (System.ExceptionArgument argument) [0x00006] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Collections.Generic.Dictionary2[TKey,TValue].FindEntry (TKey key) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Collections.Generic.Dictionary2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at Banking.CurrencyManager.GetCurrencyByName (System.String name) [0x00000] in <5e97b6549f3240589f7b8685b8f8f193>:0 at Banking.BankingPlugin.TryGetCurrency (System.String currencyType, Banking.CurrencyDefinition& result) [0x0000c] in <5e97b6549f3240589f7b8685b8f8f193>:0 at Housing.Extensions.BankingCompatibilityExtensions.ToMoneyString (System.Decimal value) [0x00011] in <9d41f4961df943dca53014f36393b497>:0 at Housing.HousingPlugin.HouseCmd (TShockAPI.CommandArgs args) [0x010b2] in <9d41f4961df943dca53014f36393b497>:0 at TShockAPI.Command.Run (System.String msg, System.Boolean silent, TShockAPI.TSPlayer ply, System.Collections.Generic.List`1[T] parms) [0x0001c] in :0

Seems house creation errors out with a fairly bad error.

tbarela commented 5 years ago

Haven't started yet, but that looks like it can't find the currency for a given currency string.

web: www.timbarela.com

email: tbarela@timbarela.com

---- On Thu, 11 Jul 2019 09:10:23 -0700 notifications@github.com wrote ----

2019-07-07 15:49:07 - Command: ERROR: System.ArgumentNullException: Value cannot be null. Parameter name: key at System.ThrowHelper.ThrowArgumentNullException (System.ExceptionArgument argument) [0x00006] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Collections.Generic.Dictionary2[TKey,TValue].FindEntry (TKey key) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Collections.Generic.Dictionary2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at Banking.CurrencyManager.GetCurrencyByName (System.String name) [0x00000] in <5e97b6549f3240589f7b8685b8f8f193>:0 at Banking.BankingPlugin.TryGetCurrency (System.String currencyType, Banking.CurrencyDefinition& result) [0x0000c] in <5e97b6549f3240589f7b8685b8f8f193>:0 at Housing.Extensions.BankingCompatibilityExtensions.ToMoneyString (System.Decimal value) [0x00011] in <9d41f4961df943dca53014f36393b497>:0 at Housing.HousingPlugin.HouseCmd (TShockAPI.CommandArgs args) [0x010b2] in <9d41f4961df943dca53014f36393b497>:0 at TShockAPI.Command.Run (System.String msg, System.Boolean silent, TShockAPI.TSPlayer ply, System.Collections.Generic.List`1[T] parms) [0x0001c] in :0

Seems house creation errors out with a fairly bad error.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

tbarela commented 5 years ago

Likely the Config.CurrencyType hasn't been set. Housing deals with a specific, configured currency.

I'm trying to put in some safeguards, but that will still need to be configured for now.