Ride the Campusbussen #28
Labels
No labels
animation
audio
blocked
bug report
controversial
documentation
easy
feature request
hard
medium
multiplayer
physics
ui
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#29 Bake bus route relations as drawn lines
elsie/liuverse
Reference
elsie/liuverse#28
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
route_masterin the extract names a Campusbussen -- "bus line forstudents at Linkoping University" -- plus Linje 3, 6, 12, 15, 20, 26, 39, 75,
232 and 250, and
public_transportrelations forGamla Linkoping,Ryd centrum,Universitetet,Vallfarten,Malster Mattias vagandRydsvagens andhallplats.The campus bus is a real service that runs between the halls, and the route is
mapped as a way list with 22
highway=bus_stopnodes along it (alreadyPROP_BUS_STOP).A bus is a second
VehicleKindinliuverse-world::vehicle-- the fleet spawn,mount, throttle/steer/drift and the server-authoritative position are all
generic already, so this is a longer body, a roof, and more seats rather than new
mechanics. A stop that picks you up and drops you at the next one is a
natural fit for the existing authoritative-scooter path.
Two issues here and this is the fun one; the route relations themselves are a
separate issue, #29.
Related
This is now half done, and the half that is done is the one that was hard to guess at: the campus shuttle is a real, mapped, self-driving service, and its route and stops are in the bake.
PR #105 adds it as a rideable vehicle and bakes the route it follows.
What the data says
The extract carries the service as it is mapped:
Four of its stops are on campus, all on the Corson path and in route order: Blå Havet, B-Huset, Studenthuset, Campushallen. The service is two autonomous electric minibuses with a safety driver, so it is a small pod rather than a 12-metre bus — it takes six passengers.
What is in the game now
VehicleKind::Busis a vehicle like any other:Emounts,W/Sthrottle and brake,A/Dsteer, and the server is authoritative over it as it is over the scooter and the bicycle. It has a driver at the wheel and six seats behind it, and it is full at seven.What is left, and it is the interesting half
The bus does not drive itself yet. It waits at its stop like any other vehicle, and you drive it.
The autonomy is the rest of this issue, and the data for it is now in the bake:
roundtrip=yes,fromandtoare both Blå Havet.None of that needs new sources: the route's chunks, the stops and their order are already baked, and the server is already the authoritative side of every vehicle. What it needs is a driver that follows the line instead of the player's throttle, and a rule for who is allowed to be aboard.
Refs #105
The shuttle can be called now. It still does not drive itself.
1b8ebdelanded the call:Eat a bus stop calls the nearest shuttle there — online the server validates the stop and moves the authoritative bus, offline the local fleet does the same — carrying every rider still aboard, and it arrives in the same column of light as any other teleport. The shuttle spawns waiting at both ends of its baked route, facing the way it drives (789e48b).roundtrip=yesloop. The route, the stops and their order are already in the bake; what is missing is a driver that reads the line instead of the player's throttle.eh don't care
Closing as wontfix: the autonomous-driving half is dropped. The shuttle stays as it is — a rideable bus with its baked route and stops, callable with
Eat a stop.