Cuberite Forum
ChunkCache question - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: ChunkCache question (/thread-1624.html)

Pages: 1 2 3 4 5


RE: ChunkCache question - sphinxc0re - 10-18-2014

I'm only getting an 15x15 chunk from the cChunkDesc. if I try to make it bigger it throws an error like "MaxRelX is too high. reducing to chunkwidth"
But atm my code saves the obfuscated chunks.


RE: ChunkCache question - NiLSPACE - 10-18-2014

You are getting a 16x16 chunk. The "MinRelX" would be 0 and "MaxRelX" would be 15.


RE: ChunkCache question - sphinxc0re - 10-18-2014

Exacly, when I do this it tells me that it is too high

Code:
[11:59:49] Saved obfuscated chunk 36#-144 to drive!
[11:59:49] ReadBlockArea: MaxRelX more than chunk width, adjusting to chunk width
[11:59:49] ReadBlockArea: MaxRelZ more than chunk width, adjusting to chunk width



RE: ChunkCache question - sphinxc0re - 10-18-2014

I get a pretty nice result thoughBig Grin


RE: ChunkCache question - ambushed01 - 10-18-2014

Nicely done ! ShpinxC0re


RE: ChunkCache question - sphinxc0re - 10-18-2014

(10-18-2014, 08:38 PM)ambushed01 Wrote: Nicely done ! ShpinxC0re
Please, it's SphinxC0re Wink


RE: ChunkCache question - ambushed01 - 10-18-2014

ehh sorry im just awake for like 10min first coffee still.


RE: ChunkCache question - xoft - 10-18-2014

looks good. I can sense a problem with the water, though - when the player digs the bottom of the water, they will see the obfuscated block. I think the obfuscation should work so that whenever the player digs, they don't see an obfuscated block.


RE: ChunkCache question - sphinxc0re - 10-18-2014

That's a quickwin. I can't see though, what I am doing wrong with the chunk. I'm getting a 15x15 Chunk.
Here is my code
Code:
ChunkDesc:ReadBlockArea(ChunkBlockArea, 0, 14, 0, (ChunkDesc:GetMaxHeight()), 0, 14)
and this gives me errors and leads to the same result:
Code:
ChunkDesc:ReadBlockArea(ChunkBlockArea, 0, 15, 0, (ChunkDesc:GetMaxHeight()), 0, 15)



RE: ChunkCache question - NiLSPACE - 10-18-2014

It would be usefull if you said what error you get Smile