ForgeMultipart icon indicating copy to clipboard operation
ForgeMultipart copied to clipboard

Crash when adding Project-Red Inverted Lamps to FMP config

Open Sandriell opened this issue 10 years ago • 8 comments

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

Sandriell avatar Sep 12 '15 13:09 Sandriell

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.

amadornes avatar Sep 12 '15 14:09 amadornes

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

Sandriell avatar Sep 12 '15 15:09 Sandriell

i get some similar error.

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

Dream-Master avatar Oct 03 '15 09:10 Dream-Master

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.

Kubuxu avatar Oct 03 '15 09:10 Kubuxu

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

Dream-Master avatar Oct 03 '15 09:10 Dream-Master

No idea.

Kubuxu avatar Oct 03 '15 12:10 Kubuxu

InpureCore only hiding Blocks but not delete them.

Dream-Master avatar Oct 03 '15 12:10 Dream-Master

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.

MrTJP avatar Jan 11 '16 02:01 MrTJP