Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sector Map Autoroute Bugs #5897

Open
Web-eWorks opened this issue Aug 21, 2024 · 0 comments
Open

Sector Map Autoroute Bugs #5897

Web-eWorks opened this issue Aug 21, 2024 · 0 comments

Comments

@Web-eWorks
Copy link
Member

Observed behaviour

The autoroute functionality in the sector map breaks when a truly linear distance-cost metric is applied. Systems in a sector are not rejected when outside the true maximum distance for a hyperjump, and the maximum distance for a hyperjump is calculated based on the current mass of the ship, even though the maximum range will change if the ship's lading state changes to carry enough fuel to make the planned jump.

Expected behaviour

  • System distance should be considered against the real maximum range of the hyperdrive and out-of-range systems rejected during the pathfinding step.
  • Hyperdrive maximum range should always be calculated including enough fuel mass to make the jump. The player's current static mass + fuel tank mass + additional jump fuel mass needs to be computed to determine maximum range for a jump.

Steps to reproduce

Change HyperDriveType:GetDuration() in EquipType.lua to return distance * 100.

My pioneer version (and OS): master 4ef9b91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant