I've done some snooping around on this subject and have come to the following conclusion: Multiple extra accessory slots are NOT allowed in Terraria. Look at the following:The Heart of Nature seems to be incompatible with the Demon Heart. It freezes my character and glitches the inventory screen
if (this.extraAccessory && (Main.expertMode || Main.gameMenu))
{
this.extraAccessorySlots = 1;
}
else
{
this.extraAccessorySlots = 0;
}
Is there a way to make an accessory slot that only accepts '1' type of itemI've done some snooping around on this subject and have come to the following conclusion: Multiple extra accessory slots are NOT allowed in Terraria. Look at the following:
This is a little piece of code that gets called every single frame (so 60 times a second) in Terraria. If you know some programming, you'd see that this hardcodes Terraria into allowing only 1 extraAccessory slot.Code:if (this.extraAccessory && (Main.expertMode || Main.gameMenu)) { this.extraAccessorySlots = 1; } else { this.extraAccessorySlots = 0; }
The good news is: I can work around this. The (not too) bad new is: I need ModPlayer hooks for tModLoader to achieve this. These hooks will be released in a week or two (probably), so if you hang on just a little longer, I'll make this a fully integrated (and working) mod.
Thanks for your patience. Cheers.
I've done some snooping around on this subject and have come to the following conclusion: Multiple extra accessory slots are NOT allowed in Terraria. Look at the following:
This is a little piece of code that gets called every single frame (so 60 times a second) in Terraria. If you know some programming, you'd see that this hardcodes Terraria into allowing only 1 extraAccessory slot.Code:if (this.extraAccessory && (Main.expertMode || Main.gameMenu)) { this.extraAccessorySlots = 1; } else { this.extraAccessorySlots = 0; }
The good news is: I can work around this. The (not too) bad new is: I need ModPlayer hooks for tModLoader to achieve this. These hooks will be released in a week or two (probably), so if you hang on just a little longer, I'll make this a fully integrated (and working) mod.
Thanks for your patience. Cheers.
Allrightiyo, yeah I decided to still make it drop from Plantera, since the mechanical bosses felt a bit too early in-game for such an OP item.I installed the mod you included in the attached files, Eldrazi.
For whatever reason, i acquired the Heart of Nature from a Destroyer kill (you mentioned this being the method to acquire before?) despite it being a drop from Plantera in the mod browser description.
Anyway, after consuming the heart the armour/accessories/dyes UI bugged out and my character froze. After that, the game would throw a 'crash' error when i tried to reload the world and game. The only way the game won't crash is when i disable the mod in the browser and i restart the game. Re-enabling the mod causing the same crash error.
For reference, i have the Tremor mod, Thorium mod and Quality of Life mods installed alongside your one.
If you want me to post screenshots of the error/crash logs then i will do.
No need (probably). This way I might be able to recreate the problem and find a solution. Many thanks for the bug report and I'll let you know when I fixed it ASAP!Sure thing. More than happy to help.
I am currently playing an expert world and in hardmode, so yes i have the demon heart passive active. When it comes to using the slots, i didn't get a chance to actually put anything in them. As soon as the Heart of Nature was consumed the UI bug occurred.
Unfortunately, i'm unable to post a screenshot of what the UI looked like when i consumed the heart but from what i remember all the armour and dye slots disappeared and there only appeared to be one extra accessory slot added.
I'll attach the crash log to the post. If you need anything else let me know. I'm unsure if the crash is on a per world/player basis or if it's a game wide crash but i can check if that would help.
No probs, customer service all the way ( )!Awesome. I'll give it a go and report back if anything goes wrong.
Maybe once tModLoader is a little more fleshed out it'll be possible to add more slots whether that be through the same Nature Heart or more items acquired later down the playthrough.
It might be a cool idea to look into a way to implement the ability for players to configure how many extra slots are given. Of course that won't be plausible until a little further down the line.
Thanks for providing a fix so soon!
Lemme get this straight: You're asking for a mod that gives 2(?) accessory slots right off the bat?Could you possibly make a mod to passively add slots from the get go? I hate having so few slots cause in order to max out my classes I need to get rid of some accessories in favor of others. I've been reading this forum/thread thing and it seems up in the air as to whether or not it is possible.