Refined Storage

Refined Storage

115M Downloads

Easily identify mods that are breaking NBT tags in the Grid

Closed this issue · 7 comments

commented

Describe your enhancement

One of my mods is clearly causing the NBT issue with items in grids but as a pack developer im failing to find which mod is it. Is there an easy way i can identify what tag is breaking it possibly.

commented

What do you mean with "breaking NBT tags"? What is the actual problem here?

commented

It is this issue https://refinedmods.com/refined-storage/items-cannot-be-extracted-from-refined-storage.html, but i dont know what mod is even causing it since there is like 200 nbt tags, is there a way to identity which one is breaking it via a debug log or something. that is my enhancement request

commented

Which item is breaking it? Is the problem that other mods are attaching components to an existing item?

commented

Swords and tools all of them. I think it's a broken nbt tag by a mod

commented
commented

Binary search

Take away half of the mods. If it still doesn't work, take away another half. Repeat until it works

Now you know the mod that breaks it is in that last batch you moved. Do the same process of taking away half the mods, except start with that smaller batch, because you know the mod is in there.

Eventually, you'll end up with a batch of 2 mods, then you'll take away one of them, and then you'll know which one is the mod causing the issues.

If you do it right, getting through 250 mods only takes opening the game 8 times, because cutting things in half makes them really small really fast, and each round you're cutting in half the number of mods that might have the bug. 250 -> 125 -> 63 -> 32 -> 16 -> 8 -> 4 -> 2 ->1

This doesn't work if multiple mods work together to cause the issue. If there are multiple mods and any one of them could cause the issue, it will find you one of them. It does not account for which mods are more likely, so as an extra step you can start by removing all the mods you're pretty sure aren't causing it.

commented