ldtteam / minecolonies-features

This is a repo only to discuss minecolonies features (requested and planned)
10 stars 3 forks source link

Suggestion to alleviate colonists drowning surrounding some structures that incorporate water #653

Open mopsyd opened 2 years ago

mopsyd commented 2 years ago

Prerequisites

Context

Is your feature request related to a problem?

This is related to colonists drowning themselves, which has been a lonstanding issue in some specific cases. I am proposing a low-impact solution to alleviate this issue to some degree without the need for complex AI patches or revising structure schematics.

Various structures that incorporate water into their design or are intended to be placed alongside bodies of water frequently result in colonists swimming underneath portions of their layout and drowning. Examples include fisherman huts and the medieval spruce sawmill (the one with the water wheel).

Enhancement or Change description

I am proposing a very simple check that will teleport drowning colonists who are stuck back to their hut block (or the inn if they are a visitor) in a couple very specific circumstances.

If all of the following are true:

And at least one of the following is true:

Then the following will happen (in order, only one of whichever applies first):

And optionally:

Notes or related things

This addresses the majority of unintentional drowning scenarios without negating the possibility of drowning in combat situations, raids, or players not putting any work into making the terrain safe (like waterfalls into ravines nearby, which should absolutely still drown colonists that pathfind through them). This is intended to be a reasonably simple and pragmatic answer to a consistent problem with minimal development overhead to address, as well as not requiring asset redesign or unintended end user consequences.


Viewers

anonymous563 commented 2 years ago

That's not the latest version. This was fixed.

mopsyd commented 2 years ago

I tested it in the current alpha also. It still happens. I do not play ongoing in bleeding edge alphas, I just verify whether issues were fixed or not and otherwise play normally in stable releases. Carpenters still drown in both.

anonymous563 commented 2 years ago

Ah, fair enough.

As a note though (from the Discord):

MineColonies doesn't use the traditional classifications (alpha, beta, release) as the entire mod can be considered in a beta state (just based on the number of features still planned). However, Curseforge limits the number of releases and betas we can push out, and due to the devs' speed, the latest version will most often be an alpha. One classification is as stable as the others, so always get the latest version of MineColonies, regardless of its classification.

mopsyd commented 2 years ago

Yea I get that. But there is also a reason this is a feature request and not a bug report. The underlying minecraft engine is terrible at entities understanding their relationship with water. Things that shouldn't be in it drown frequently, and things that should be in it beach themselves and die. This is a limitation of the game itself, not a responsibility of a mod author. However, we do have to come up with clever workarounds now and then to harden how our content is affected by it until the mojang team offers a more elegant answer through the AI itself. Hence the feature request. This is not intended to fix the problem entirely, just make it not affect minecolonies in adverse ways too incredibly much.