pandorabox.io icon indicating copy to clipboard operation
pandorabox.io copied to clipboard

is_ground_content

Open SwissalpS opened this issue 1 year ago • 12 comments

Many node definitions seem to have not set is_ground_content to false. This means jumping a ship near mapblocks that haven't been generated yet, can lead to loss of ships or at least parts of it. Credit to Huhhila for suffering this, tracking down the cause and pointing it out.

I've opened this issue to track the progress of PRs to the various mods that are affected. Also to discuss which we might add to pandorabox_custom because some repos are very slow to accept PRs.

I used this postool branch to make the list

nonGroundContent.txt (680kB)

The above list includes legitimate ground content too, of course.

Adding the flag to all circular saw cuts and cnc nodes will already slim it down drastically. Priority should maybe be given to technic and pipeworks mods.

reference links:

SwissalpS avatar Feb 25 '24 21:02 SwissalpS

A more radical (and maybe simpler) alternative to setting that in every mod would be to override this in pandorabox_custom on every registered node (except stone of course)

BuckarooBanzay avatar Feb 26 '24 08:02 BuckarooBanzay

As a radical interum measure yes. There are a lot of legitimately is_ground_content nodes like dirt, corium, water, air, ignore, lava, etc., etc.

once technic, pipeworks, circular_saw and mesecons are dealt with, the non-ground-content-list will shrink drascically.

I think it's good for mod-devs to think about this and add it, no rush though.

SwissalpS avatar Feb 26 '24 08:02 SwissalpS

I've also PRed

  • mobs (meatblocks and spawner)
  • mobs_animal (egg, honeyblock and beehive)
  • mobs_monster (cobweb)

SwissalpS avatar Feb 27 '24 00:02 SwissalpS

mesecons_extrawires:mese_powered might be one to discuss only changing on pandorabox. It seems to copy the def from default:mese and thus inherits ground contents flag. If I PR to have the powered variant to not be ground content, the unpowered would still be ground content. IMO it's just better to leave it as is. Unless somebody has a good reason?

SwissalpS avatar Feb 27 '24 23:02 SwissalpS

Perhaps the default should've been false to not require mass-adjustments of all existing mods. Well.. now it's too late I guess.

SmallJoker avatar Feb 28 '24 16:02 SmallJoker

now it's too late I guess.

Isn't really too late to change defaults. These changes are anyway providing backwards compatible fixes that make it work correctly with mods defined minimum compatible minetest version and therefore wouldn't be irrelevant even if defaults would be changed.

Therefore these changes can actually be useful during transition even if defaults would be changed and making these changes should not exactly affect decisions about possible engine update in any way. Also many of these seems to bring few minor formatting improvements too 😄

Changing engine defaults is kind of different thing as it only affects later versions and would basically be just requirement to explicitly state that something is ground content. I think for future it probably would be better that way 👍

S-S-X avatar Feb 28 '24 17:02 S-S-X

Any thoughts on [bedrock]? In a way it is ground content, on the other hand it is designed to be border-node. Hasn't stopped players on pandorabox to dig bedrock:bedrock or jump it around.

SwissalpS avatar Feb 28 '24 22:02 SwissalpS

PRed 10+1's farming: https://codeberg.org/tenplus1/farming/pulls/4

SwissalpS avatar Feb 29 '24 12:02 SwissalpS

If anybody wants [maptools] nodes not to be considered ground content, this would be a good moment to convince me to work on those too.

SwissalpS avatar Feb 29 '24 14:02 SwissalpS

FYI, I've also started working on mods that pandorabox isn't using but referencing them to this thread to keep everything under one place.

There are still a few mods that pandorabox uses that I haven't PRed yet: advtrains* is the big one.

SwissalpS avatar Mar 02 '24 21:03 SwissalpS

Here's the current list

nonGroundContent20240302.txt (51kB)

(roughly 13 times smaller already)

SwissalpS avatar Mar 02 '24 23:03 SwissalpS

PRed 10+1's bakedclay (leaving flowers untouched to stay in sync with MTG default flowers)

SwissalpS avatar Mar 04 '24 00:03 SwissalpS