Chicken-Bones / ForgeMultipart

An API for dynamically handling different functional parts in the one block space.
Other
119 stars 56 forks source link

Crash when adding Project-Red Inverted Lamps to FMP config #370

Closed Sandriell closed 1 year ago

Sandriell commented 9 years ago

I tried adding the Inverted Lamps to the microblocks config on my server/client and it crashes when trying to view the recipe, either in NEI or in a crafting table.

Line added: "ProjRed|Illumination:projectred.illumination.lamp":0-31

Crash Log: https://gist.github.com/Sandriell/a76e7f6d63a52e033510

Forge: 1448 ProjectRed: 4.6.2.82 FMP: 1.2.0.344

Also reported to Project-Red: https://github.com/MrTJP/ProjectRed/issues/931

amadornes commented 9 years ago

There aren't 32 types of lamps. Block metadata can only go from 0 to 15. Replace "0-31" with "0-15" and it should work.

Sandriell commented 9 years ago

The 0-31 was to cover both the inverted and regular types of lamps (0-15 for regular and 16-31 for inverted) which all share the same blockname. Granted I was only really after the Inverted style, but I figured why not just add them all.

So here is what I tried. I used WAILA to see that the block ID:meta for the regular and inverted share the same metadata (0 for white), however the item metadata is different- regular is 0 and inverted is 16.

Adding 0-15 allows the regular lamps to work and be crafted into multiparts but not the inverted lamps.

So how do I get the recipe to work when the blocks are 0-15, but the items are 16-31?

Here is a screenshot where you can see the meta for the white inverted lamp is meta 16: http://i.imgur.com/GWiZolA.png

Dream-Master commented 9 years ago

i get some similar error.

https://gist.github.com/Dream-Master/6c4b1b1212ead7026fe9#file-crash

Kubuxu commented 9 years ago

Problem is that those lamps use custom ItemBlocks, they use Item metadata, which can go to 2^16-1, and in world properties are remembered under one metadata (0) and tile entity data.

Dream-Master commented 9 years ago

@Kubuxu is there a way to disabled blocks from multipart. I see only many tutorials how to adding new ones.

Kubuxu commented 9 years ago

No idea.

Dream-Master commented 9 years ago

InpureCore only hiding Blocks but not delete them.

MrTJP commented 8 years ago

As of the latest version, the inverted lamp microblocks are added automatically. They also glow when placed in-world. The standard configs can be used to add the non-inverted lamps as micro blocks (if you would want to do such a thing).

This is no longer an issue.