Qnut
Refugee
Hello modders,
since three days I try to add the bulletproof shapes to the craftable variant helper, e.g. the windowStoreOneSidedBulletproofFull shape. Even Gemini couldn't find a working solution.
Here is what I got so far to get it nearly working:
blocks.xml
shapes.xml
Tried to add the corresponding shapes Full and Broken to the PlaceAltBlockValue list of the helper and let them show in the shape menu. windowStoreOneSidedBulletproofFull works, when I have choosen the variant helper ingame before exiting the save and loaded back in with the modlet activated. But the radial menu is then broken. The bulletproofShapes block contains all the bulletproof shapes in the original files. The [:] seems to be the problem. Other trials for example by adding whole blocks in blocks.xml and trying to append them to the list ended up with missing meshes and textures or red console errors.
Can someone please help out?
since three days I try to add the bulletproof shapes to the craftable variant helper, e.g. the windowStoreOneSidedBulletproofFull shape. Even Gemini couldn't find a working solution.
Here is what I got so far to get it nearly working:
blocks.xml
XML:
<configs>
<set xpath="/blocks/block[@name='glassBulletproofBlockVariantHelper']/property[@name='PlaceAltBlockValue']/@value">glassBulletproofCTRPlate,glassBulletproofPlate,glassBulletproofBlock,glassBulletproofRamp,glassBulletproofPlateCurved,bulletproofShapes:windowStoreOneSidedBulletproofFull,bulletproofShapes:windowStoreOneSidedBulletproofBroken</set>
</configs>
shapes.xml
XML:
<configs>
<set xpath="/shapes/shape[@name='windowStoreOneSidedBulletproofFull']/property[@name='ShapeMenu']/@value">true</set>
<set xpath="/shapes/shape[@name='windowStoreOneSidedBulletproofBroken']/property[@name='ShapeMenu']/@value">true</set>
</configs>
Tried to add the corresponding shapes Full and Broken to the PlaceAltBlockValue list of the helper and let them show in the shape menu. windowStoreOneSidedBulletproofFull works, when I have choosen the variant helper ingame before exiting the save and loaded back in with the modlet activated. But the radial menu is then broken. The bulletproofShapes block contains all the bulletproof shapes in the original files. The [:] seems to be the problem. Other trials for example by adding whole blocks in blocks.xml and trying to append them to the list ended up with missing meshes and textures or red console errors.
Can someone please help out?