#prevent exploits in a voxel sandbox game?

1 messages · Page 1 of 1 (latest)

slate sage
#

I'm making a minecraft like game where any player can make a world, build stuff in it, etc. Problem is, whenever a player creates/joins a world, the whole world's data is sent to their client (all the blocks in each chunk for example). This can allow them to exploit it so that if they joined a world where it is built such that the players will need to scavage a specific item in the world, exploiters could just find the item in the chunk data and determine its location. Is there any way to prevent this? I can only think of using the server to track the player's position and send them the chunks to be rendered but that will cost a lot of resources for the server especially considering that on the client side, the whole world's chunk data is stored in memory

I asked chatgpt and they said another way is to use encryption but that wont really work if the decryption method is solely done by the client

sullen pine
#

I would do it with the render thingy

#

Low end devices will not be able to store much chunk data anyways

tacit trail
slate sage
# tacit trail if they are being teleported into a private server when someone enters their wor...

they arent being teleported into private servers, the world loads in whatever server the player joins in. The reason why i dont want to delegate this responsibility to the server is because im imagining I'll need to create a while true loop for every player because I'll need to check for when they move around and load chunks around the player contrary to letting the client handle it via renderstepped

tacit trail
#

they might be able to help you if you find them

tacit trail
#

if i remember corrected

#

one was hao and another was lake

#

they previously talked about voxel and optimization, etc, etc

slate sage
#

which1

tacit trail
#

haotian2006

#

and

#

caspianlake

slate sage
#

@oblique rivet can u help me outepic

oblique rivet
#

Just add moderation for xraying or some way to detect if a person is xraying

#

this is just like xray texture packs in minecraft

#

other method would just be too slow to imlment and not worth it

slate sage
#

aight

#

thanks

slate sage
# oblique rivet Just add moderation for xraying or some way to detect if a person is xraying

sorry for another ping, but do u use meshes to generate the face of the block that is exposed or do u just render a whole block? because I've tried rendering the faces that are only exposed but i hit the limit of editable meshes that can be created even in a flat world. i suppose there is a workaround where the game will render a whole chunk of the same blocks as a single mesh contrary to having each block as a single mesh but idk if thats worth looking into because i feel like it will make the project more confusing but the optimisation won't be that much

oblique rivet
slate sage
#

no meshes?

oblique rivet
#

nope

slate sage
#

do u render per face or the whole block

oblique rivet
#

the whole block

slate sage
#

i see, thanks