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

Repopulate BBS if empty #5894

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Conversation

zonkmachine
Copy link
Member

There is an infrequent issue where the BBS will show up empty on a game reload as SpaceStation.adverts[station] is missing. This fix will cause the BBS to repopulate itself but only from those modules that impements onUpdateBB(). It will not solve the underlying cause.

Addresses #5886

There is an infrequent issue where the BBS will show up empty on a
game reload as SpaceStation.adverts[station] is missing.
This fix will cause the BBS to repopulate itself but only from
those modules that impements onUpdateBB(). It will not solve the
underlying cause.

Addresses pioneerspacesim#5886
@impaktor
Copy link
Member

In a way, this would mask the bug, possibly making it harder to find the root cause.

@zonkmachine
Copy link
Member Author

In a way, this would mask the bug, possibly making it harder to find the root cause.

Maybe, but the station repairs itself this way. I think it's worth a try. There should probably be some tests in the code to track what's going on. Does the save or the reload fail?

Copy link
Member

@Web-eWorks Web-eWorks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an acceptable stopgap solution for now. I'd rather it be merged now and a more holistic look taken at the whole problem another time.

@Web-eWorks Web-eWorks merged commit a005ad4 into pioneerspacesim:master Aug 23, 2024
@zonkmachine zonkmachine deleted the bbsempty branch August 23, 2024 02:15
zonkmachine added a commit to zonkmachine/pioneer that referenced this pull request Aug 30, 2024
This is a fixup from pioneerspacesim#5894 / a005ad4
Instead of updating the BBS it should be created if
SpaceStation.adverts[station] is missing.
@zonkmachine zonkmachine mentioned this pull request Aug 30, 2024
Web-eWorks pushed a commit that referenced this pull request Aug 30, 2024
This is a fixup from #5894 / a005ad4
Instead of updating the BBS it should be created if
SpaceStation.adverts[station] is missing.
zonkmachine added a commit to zonkmachine/pioneer that referenced this pull request Sep 1, 2024
This is a fixup from pioneerspacesim#5894 / a005ad4
Instead of updating the BBS it should be created if
SpaceStation.adverts[station] is missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants