10-18-2014, 02:19 AM
Why would you need multiple chunks? Store just one - after all, only one chunk comes through the generator / loader hook at a time. Use the incoming cChunkDesc, it has a ReadBlockArea function that can read a cBlockArea from that description, and cBlockArea has a direct function to write the contents to a .schematic file.
The Rel coords are just that - relative to the chunk. So AbsoluteX = ChunkX * 16 + RelX etc. Going the other way round is a bit more difficult, you need to use math.floor() for the division, otherwise the calculation is wrong for the negative coords.
The Rel coords are just that - relative to the chunk. So AbsoluteX = ChunkX * 16 + RelX etc. Going the other way round is a bit more difficult, you need to use math.floor() for the division, otherwise the calculation is wrong for the negative coords.