this post was submitted on 21 Feb 2024
12 points (92.9% liked)

Minecraft

4422 readers
16 users here now

Welcome to the Minecraft community on Lemmy and Kbin!

The home for all posts related to the Minecraft franchise: from the classic game to the mobile ports, mods, adventure games, merchandise and similar!

Official Lemmy.world server available!

Lemmy.world hosts an official server that welcomes all players to contribute and have fun:

Minecraft Version: 1.20.x

Address: minecraft.lemmy.world

Please make sure you read our rules before posting.

Rules:

Rules can be clicked on to be expanded.

1: Treat all users with respect.

Bullying, threathening, doxxing, or toherwise hostile behaviors with any of our users will not be tolerated. Be civil, have fun.

2: Posts must be related to the Minecraft franchise.

This includes the main game, titles like Dungeons, fan art, wiki pages, toys, new feature votes, and similar content.

3: No advertising.

If you want to share a product you're a manufacturer or seller of, please contact the moderation team first. Affiliate links to online shopping stores or affiliate coupon codes are not allowed.

4: No piracy.

Links or discussions about cracked versions of games, unauthorized copies of copyrighted material and other similar piracy-related content are not allowed.

5: No NSFW or adult content.

This community is inclusive to users of all ages. Keep in mind Minecraft attracts children and adults alike. Therefore, no NSFW content is allowed.

6: No low-effort meme content.

Memes are allowed, and so are comics or other fan creations. However, low-effort reposts and otherwise overused memes will be removed.

Reddit reposts are allowed.

Reddit reposts are allowed, but you need to include the tag [Reddit] in the title.

Related communities:

founded 1 year ago
MODERATORS
 

Does anyone know of a mod that, given the seed for example, could locally generate chunks so that they can be displayed before the server generates them?

IE if multiple people are exploring and the server's struggling to keep up, it would be awesome if the client could generate them locally and fill in the gaps locally until the server gets around to generating them proper

(Kinda like how I imagine distant horizons does it)

all 10 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 9 months ago* (last edited 9 months ago) (1 children)

I don't think it's possible to generate server chunks on client live, this would make it vulnerable to different kinds of attacks and exploits.

Best way to do this would be pre-generating the world or some server side pre-generation mod

[–] [email protected] 5 points 9 months ago (2 children)

How so? The client at no point would send these chunks to the server, it would only be local and would be generated completely clientside. In my mind all that would be needed is the seed and at that point no extra communication between client and aervery is necessary

Pregenerating works but it's not perfect when travelling at high speed on a populated server, can still struggle to send down large amounts of chunks to the client, users with more powerful machines may be able to generate/load them faster than the server can

[–] [email protected] 1 points 9 months ago (2 children)

I think your idea is a good idea. You could keep the view distance low on the server to reduce the number of real chunks being generated. Clients can render whatever they want.

I think one issue would be when you approach a player structure from the outside, the client might see an unmodified world first and then the player structure would pop in and overwrite the client-side terrain. Its not a technical issue, but more a player experience concern.

[–] EarMaster 3 points 9 months ago

Any chunk with a player structure would already have been generated by the server so there should be no popping in.

[–] [email protected] 2 points 9 months ago

Personally I would rather the world rendered in first then player structures than nothing rendering in at all

Theoretically that shouldn't be as much of an issue as the server will already have loaded those chunks by definition, and it priorities nearby chunks first anyway

I think the server render distance would stay high but prioritise loading the immediate 8 chunks around every player first, then after all players have a decent radius loaded it can focus on further out ones. Any gaps can be filled in by the client if it has spare processing power

[–] [email protected] 1 points 9 months ago* (last edited 9 months ago) (1 children)

If the client generated chunks are not sent to server then this doesn't make sense to me. You can't do anything on these fake chunks and server still lags.

I would look for other solutions to make generating chunks faster

[–] [email protected] 1 points 9 months ago

It would be useful for the same reason distant horizons is, if the chunks aren't loaded you at least still see them instead of just seeing a hole in the world

[–] socialpankakemix 1 points 9 months ago (1 children)

no there isn't something like this, you either have to pregen chunks or deal with lag this is a server owner 101 kinda thing.

[–] [email protected] 1 points 9 months ago

This isn't an idea for server optimization though this should work on any server as a client mod

If it doesn't exist it doesn't exist but talking about optimising the server is kind of missing the point