-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fast travel #49416
Description
Is your feature request related to a problem? Please describe.
Players that settle down in a base often need to drive repeatedly to and from far-away locations, either for questing/trading or for looting interesting locations (e.g. labs). Traveling to a new location for the first time can be fun because you have to find a good path and deal with various perils and obstacles on the way. However subsequent trips are usually either boring (repetitive key presses) or annoying (having to constantly avoid wrecked cars and boulders). I think some automation would be helpful here and the current auto-drive feature doesn't cut it (very poor obstacle avoidance, can't drive off-road and can't follow custom paths).
Describe the solution you'd like
I'm planning to implement path recording and replay for vehicles. I suppose I could make it work without a vehicle too, but traveling long distances without a vehicle doesn't make much sense to me and auto-walk kind-of works for that already.
Phase 1. Minimum Viable Product
- Add "Record path" to vehicle driving menu. Record position, heading and speed at each game turn. Stop driving also stops recording
- Add "Replay path" to vehicle driving menu, replay a previously recorded route. Requires starting from the same starting position. Can be interrupted
- Serialize recorded paths to JSON
- Optimize the path representation for memory and disk space
- Load on demand (only if keeping all paths in memory is unacceptable, else defer this to Phase 2)
Phase 2. Independent Incremental Improvements
- Collision detection (avoid hitting dynamic obstacles, e.g. animals)
- Resume recording (after stopping to take care of something)
- Resume playback
- Frame skipping (avoid rendering every step of the way to reduce IRL time)
- Support for multiple paths starting in the same spot. Add "Rename path" and "Travel to"
- Auto-generate reverse paths. Add "Return to origin"
- Hop onto a recorded route from any position
- Route manager (like Zone manager) for viewing, renaming, deleting, tweaking recorded routes
- Override recorded speed
- Support mounts (horses, mechs)
- In-game help text describing the feature
(roughly sorted in the order I'd choose to work on them, based on personal interest and expected difficulty)
Describe alternatives you've considered
Instant fast-travel (teleport player and vehicle to destination + advance time). Very easy to implement but there's no way that would be approved, right?
"Fast-travel by teleportation is pretty much off the table. if we do it, it’ll just be continuously auto-moving, possibly skipping some redraws to speed things up." -- Kevin Granade 2015
Improving the auto-drive system to avoid obstacles, to be able to path off-road, and to support waypoints. Seems viable in theory but I don't think I have the skill to pull it off.
Recording only speed+heading. I think I need position as a sanity check, though maybe not every turn.
Additional context
I wonder if others would find this useful. Comments and suggestions are welcome.
If this is the sort of thing that will not be allowed into the game I'd like to know that as well, to avoid wasting time/effort.
This will probably take weeks or months to do and I probably won't do everything in Phase 2. If someone wants to take on any of that work they are welcome to.
Open questions: