Thanks for the mod yet I'd like to ask for a fix if mod-key is pressed on empty inventory slot accidentally, it throws an error situation. It says; [Transmute Quality] This mod failed in the Input.ButtonPressed event. Technical details: NullReferenceException: Object reference not set to an instance of an object. at TransmuteQuality.TransmuteQuality.DoQuestion() in C:\Users\darcd\Downloads\MyStardewMods-master\MyStardewMods-master\TransmuteQuality\TransmuteQuality.cs:line 99 at TransmuteQuality.TransmuteQuality.OnButtonPressed(Object sender, ButtonPressedEventArgs e) in C:\Users\darcd\Downloads\MyStardewMods-master\MyStardewMods-master\TransmuteQuality\TransmuteQuality.cs:line 84 at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in /home/pathoschild/git/SMAPI/src/SMAPI/Framework/Events/ManagedEvent.cs:line 101 and this happens a lot if you try to convert all iridium, gold, silver items to normal quality but occasionally forgot to switch slots so your mod instead of silently taking it or warning about empty inventory slot, it floods SMAPI console with keypess error messages. From what I understand your mod doesn't check if there's an actual item on inventory slot or not but directly tries to convert it even if it's an empty slot which results an error. So when you have time, please take a look at this too. Thanks again.
5 comments
[Transmute Quality] This mod failed in the Input.ButtonPressed event. Technical details:
NullReferenceException: Object reference not set to an instance of an object.
at TransmuteQuality.TransmuteQuality.DoQuestion() in C:\Users\darcd\Downloads\MyStardewMods-master\MyStardewMods-master\TransmuteQuality\TransmuteQuality.cs:line 99
at TransmuteQuality.TransmuteQuality.OnButtonPressed(Object sender, ButtonPressedEventArgs e) in C:\Users\darcd\Downloads\MyStardewMods-master\MyStardewMods-master\TransmuteQuality\TransmuteQuality.cs:line 84
at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in /home/pathoschild/git/SMAPI/src/SMAPI/Framework/Events/ManagedEvent.cs:line 101
and this happens a lot if you try to convert all iridium, gold, silver items to normal quality but occasionally forgot to switch slots so your mod instead of silently taking it or warning about empty inventory slot, it floods SMAPI console with keypess error messages. From what I understand your mod doesn't check if there's an actual item on inventory slot or not but directly tries to convert it even if it's an empty slot which results an error. So when you have time, please take a look at this too. Thanks again.
I've been looking for this mod for months, finally organizing my trunks. Thank you very much (google translate)
{
"settings.mod.name.title": "变换质量模组设置",
"settings.enabled": "启用模组",
"settings.enabled.description": "是否启用该模组.",
"settings.activatekey": "触发热键",
"settings.activatekey.description": "用于触发变换质量模组的键位绑定.",
"settings.allowupgrade": "启用质量提高",
"settings.allowupgrade.description": "是否可以提高物品的质量.",
"menu.question": "你希望如何变换质量?",
"menu.question.downgrade": "降低{{amt}}x {{item_name}}{{plural}}的品质.(你获得: {{cost}})",
"menu.question.upgrade": "提高{{amt}}x {{item_name}}{{plural}}的品质.(你支付: {{cost}})",
"menu.nothing": "取消",
"msg.pay": "你支付了{{amt}}G来提高物品的质量.",
"msg.get": "你获得了{{amt}}G从降低物品的质量."
}
Hello author, I made a Chinese translation"zh.json", code as above.
Hope you can add the file to the package in the next release.
*Edit* Added in 0.1.1 update. Thanks again