Hello! Recently I have been having an issue where whenever I stand up from my airship, I teleport to the last known location of the helm. Every time I move further than around 60 blocks I am teleported away from my airship. Is there a way I can fix this?
Reply chain from #45
i think i found them all, and its 3 symptoms but only 2 fixes. ive unarchived
my old forks and pushed a branch to each, so theres something to actually look
at before i open anything.
1: in multiplayer, everyone else sees the mounted player drift off the helm and
get left behind, then snap back when they stand up. worth knowing the versions
differ here: on 1.21.11 startRiding hands the rider the passengers packet
directly so their own screen is always right, but on 1.20.1 it doesnt send one
at all, so ServerEntity.sendChanges is the only thing telling anyone. if that
doesnt fire, nobody knows about the mount, rider included
2: mount a helm, travel far enough down, and dismounting triggers fall damage
that sometimes kills you. scales with how far you descended, naturally.
3: sometimes you dismount and youre not on the helm at all, youre anywhere from
a few blocks to chunks behind the moving ship, falling out of the sky. didnt
happen every time but it definitely killed people on survival, including me when
i started the first ports.
2 and 3 look like one bug: the rider’s server position going stale. theres a
branch in LivingEntity.dismountVehicle where if the seat is already removed by
the time you dismount, you get placed at your own server position with
y = max(yours, the seat’s) instead of the seat’s dismount location, so it never
goes through the shipyard world conversion. stale x/z leaves you behind the
ship, stale y gives you the drop. holding the rider on the seat every tick makes
both the normal path and that fallback land in the right spot, so one fix covers
both.
currently both branches have the fix committed, im compiling them now to make
sure they build, then testing in game over LAN.
VS2 fork
branch: https://github.com/Eminai-LeoVinci/Valkyrien-Skies-2/tree/1.20.1/fix-seat-passenger-sync
commit: https://github.com/Eminai-LeoVinci/Valkyrien-Skies-2/commit/082160a3da4f3bfbe38f1101df1f4217626aa26e
Eureka Fork
branch: https://github.com/Eminai-LeoVinci/Eureka/tree/1.20.1/fix-helm-rider-position
commit: https://github.com/ValkyrienSkies/Eureka/commit/eece1915ea1c479be301f3055d5145d8e1c2d62d
also, i was a dumb ass and forgot the second fix never made it onto the Eureka
Ships 2 1.20.1 branch, it only ever existed on my Armada 1.20.1 branch. so if
you went looking for it and came up empty, thats why, sorry! ive ported it fresh
onto upstream for this one along with the VS2 branch.
do these sound right as what youd want PR’d?
This conversation is on Discord · Reply there