From [email protected] on May 02, 2012 14:11:32
I've been working with Tectonicus's custom block xml to map out some of the blocks used in technic pack 7.01 http://www.technicpack.net/ (MC 1.25, EE, IC2, RP, BC, Thaum, etc)
Attached is my custom block xml work in progress along with mod texture pngs, and a small flat creative sample world that has some blocks placed.
I encountered some errors while working on this:
1.) When you detect a parse error, could you spit out the xml element's text or a line number? The exception below was hard to troubleshoot:
Error while parsing [Solid: null]
java.lang.RuntimeException: side subtexture is null!
at tectonicus.blockTypes.SolidBlockType.init(SolidBlockType.java:88)
at tectonicus.blockTypes.SolidBlockType.(SolidBlockType.java:75)
at tectonicus.BlockRegistryParser.parse(BlockRegistryParser.java:196)
at tectonicus.BlockRegistryParser.parse(BlockRegistryParser.java:145)
at tectonicus.world.World.loadBlockRegistry(World.java:229)
at tectonicus.TileRenderer.setupWorldForLayer(TileRenderer.java:413)
at tectonicus.TileRenderer.output(TileRenderer.java:305)
at tectonicus.TectonicusApp.run(TectonicusApp.java:952)
at tectonicus.TectonicusApp.main(TectonicusApp.java:1212)
2.) I attempted to use the Furnace block to represent EE collector/relays and IC2 machines, but the front/sides do not seem to have a consistent implementation. In the North part of the test world, I have various EE machines orientated each of the 4 ways and none of them show the front texture. For the Anti-matter relay, it shows the front texture on all sides except for the front, but the collectors don't do this same reversal. The same for the IC2 machines. Macerator works, but none of the other machines display with any consistency. Only the top texture works 100%. I've also tried Pumpkin and Workbench to see if they would help, but no difference.
3.) Slabs are hardcoded to the default minecraft texture. If I try to use a custom image, the texture shown is the [col,row] on the terrain.png
4.) Chest seems to take the texture image from the first attribute, and then only looks at the index from the other attributes. If I try using a combination of vanilla and mod pack textures it takes the first one used.
5.) java.lang.NullPointerException
at tectonicus.blockTypes.Cauldron.addEdgeGeometry(Cauldron.java:101)
at tectonicus.blockTypes.Cauldron.addInteriorGeometry(Cauldron.java:92)
at tectonicus.Chunk.createGeometry(Chunk.java:151)
When I tried using the Cauldron type for the Thaum crucible. If this type is hardcoded to vanilla minecraft you should note types that can't be reused. I got to to display perfectly with a solid/top/side/alphaTest.
6.) java.lang.NullPointerException
at tectonicus.blockTypes.EnchantmentTable.addEdgeGeometry(EnchantmentTable.java:95)
at tectonicus.blockTypes.EnchantmentTable.addInteriorGeometry(EnchantmentTable.java:87)
at tectonicus.Chunk.createGeometry(Chunk.java:151)
at tectonicus.world.World.draw(World.java:535)
<EnchantmentTable id="191:3" name="Thaumic Enchanter" top="C:/Tectonicus/thaumcraft.png[1, 10]" side="C:/Tectonicus/thaumcraft.png[0, 10]" front="C:/Tectonicus/thaumcraft.png[0, 10]" />
Same issue when trying to reuse Enchanting table to get a half-block that supports top/side textures.
Attachment: Tectonicus.zip Map Test.zip blocks.png
Original issue: http://code.google.com/p/tectonicus/issues/detail?id=9