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

Generate atmospheres for gas giants in legacy custom systems #5766

Merged

Conversation

Web-eWorks
Copy link
Member

@Web-eWorks Web-eWorks commented Feb 16, 2024

Prior to the merge of the System Editor and associated system generation refactor, all gas giants had a fixed 14.0 kg/m3 atmospheric surface density value which overrode the value of m_volatileGas and thus many Lua custom systems never set the atmospheric density parameter, which resulted gas giants in custom systems (e.g. Sol, Noril, etc.) missing scoopable atmospheres.

Sol was resolved by manually editing the gas giants to set density to real-world values; this PR follows up and adds an additional "fixup" step when loading legacy Lua custom systems that generates "missing" atmospheric density values for gas giants.

Testing Steps:
Visit Noril C and attempt to scoop it for fuel. It should have an atmospheric density > 0 before you crash 😉

- Gas giants previously depended on a fixed 14.0 atmospheric density
- Add an import step which generates a plausible atmospheric density if a gas giant defined in Lua doesn't have its atmosphere set.
@JonBooth78
Copy link
Contributor

_exit.zip

Here is a save file for testing

@JonBooth78
Copy link
Contributor

Just gave this a quick test and it appears to work. I haven't tried testing but the assert no longer appears when loading the above save, which means the density is > 0.

@Web-eWorks Web-eWorks merged commit 54fdec0 into pioneerspacesim:master Feb 17, 2024
5 checks passed
@Web-eWorks Web-eWorks deleted the fix-custom-gas-giant-atmo branch February 20, 2024 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants