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

Fix several minor bugs #6009

Merged
merged 5 commits into from
Jan 10, 2025
Merged

Conversation

sturnclaw
Copy link
Member

The last one is the most interesting. Starports defined in custom system files exist when PopulateStarSystemGenerator::PopulateStage1() is called, but randomly-generated starports are only added afterwards, in PopulateAddStations(). This lead to a lack of actual population onboard those stations, which at current only manifested in a lack of paintshops outside of fully-custom systems.

- A ship would not receive any equipment at all if its hull type was explicitly specified and the threat value passed was less than the hull threat.
- To fix this, equipment which has no threat value is added to a ship regardless of the freeThreat metric.
- Log a warning when attempting to outfit a ship with zero or negative freeThreat.
- Spawning a ship docked at a station can fail with no room available; return a nullable ship object for this method.
- When pressing the keybind to launch a missile, Ship:FireMissileAt was not checking the validity of a missile object
- Used old ui.iconButton() parameter list by accident
- PopulateStage1() was not being called for starports added at the end of the generation process, leading to orbital and surface starports without any population.
- This manifested as an almost total lack of paintshops across the galaxy :)
@sturnclaw sturnclaw merged commit b7a84a6 into pioneerspacesim:master Jan 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment