max-mapper / voxel-server

multiplayer server for voxel-engine
74 stars 25 forks source link

No world is generated using node 0.12.x #20

Open KevinGrandon opened 9 years ago

KevinGrandon commented 9 years ago

I haven't tracked this down to exactly where the problem lies yet, but I believe that there is a problem with either voxel-server, or possibly voxel-crunch using node 0.12.x. It seems that the world generates, but the entire voxel-crunch data arrays are filled with 0's instead of blocks.

mikkailmontgomery commented 8 years ago

It seems that the encoded data isn't a Uint8Array(orUint32Array) when it reaches the browser?

Any thoughts?

emitter.on('chunk', function(encoded, chunk) { console.log(encoded.length) //returns as undefined, if it had a value, it could be a UintXArray? var voxels = crunch.decode(encoded, new Uint32Array(chunk.length)) self.game.showChunk(chunk) })