Cart on powered rails temporarily frozen when no players in range (physics suspended?) #1165
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#1165
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In my MineClone 2 world, we've built a large-ish (I'm guessing about 100 to 200 blocks for every side) rectangular railroad with some powered rails and a couple of carts that drive around by themselves. This works fine if a player is inside one of those carts, but when we "launch" a cart on it, and wait for it to go around and come back, it never does; if we then start moving on the railroad to investigate where it is, it can "suddenly" show up in the distance, apparently still moving as if nothing happened, but it should have went around long before (we timed it).
This approach seems to work in the original Minecraft. Is it possible that physics are suspended for objects that have no players close-by, i.e. to improve performance in MineClone 2 or minetest?
A side-effect we encountered was that we launched three carts with some time in between, and when walking on the railroad, all of them were suddenly clustered together, driving at approximately the same location, which should be impossible. This makes sense, though, if their physics were suspended when they went out of range - they would have gotten suspended at approximately the same position.
@Gert-dev there are 80x80x80 chunks in Minetest. When there are no active player in some chunk - chunk stops to be 'active' and, moreover, offloads from memory. So my best suggestion for now: build roads within chunk boundaries entirely. Of course I'll take a look but please just imagine the server where endless players build endless railroads and start endless minecarts - it can't work this way, because of limited CPU and RAM resources
Correction: Chunks are only used by the mapgen, and the chunk size is configurable afaik (5x5x5 MapBlocks by default). Data is stored as MaoBlocks of 16x16x16 nodes in memory and in the database.
You can try to forceload the mapblocks, using e.g. worldedits //forceload. @kay27 I thought this was an actual bug, that's why I assigned you.
@EliasFleckenstein03 it's always okay for me with assignments, please feel free to assign me everywhere you want and let me do the same for you - because what I think: first of all, it can be redefined easily, and next, when the assignment is correct - it might be really helpful.
Please take a look, it's about the chunks which are 5x5x5 of blocks 16x16x16, so in fact they are 80x80x80 nodes and yes, we can try force them to be active, as well as try make carts work in inactive areas, I just not sure if it would be a good idea,
About the assignments: I totally agree.
The important part of my post was that chunks are irrelevant for map loading, they are only used in map generation.
teknomunk referenced this issue2024-03-30 18:46:38 +01:00