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

Station Menus Ocassionally Unusable #5149

Closed
RL-10 opened this issue Mar 3, 2021 · 11 comments · Fixed by #5291
Closed

Station Menus Ocassionally Unusable #5149

RL-10 opened this issue Mar 3, 2021 · 11 comments · Fixed by #5291

Comments

@RL-10
Copy link

RL-10 commented Mar 3, 2021

Observed behaviour

Occasionally, some of the station menus will disappear and not be usable. The following workarounds were attempted without success.

  1. Leave and redock at the same station.
  2. Restart the game.
  3. Go to another station within the same system.
  4. Load an earlier game save where the player is docked in another system.

There seem to be two ways around this bug. One is to jump to different systems until the station menus appear again. However, this can be difficult because the Lobby and Commodity Market menus are not usable, and therefore fuel cannot be purchased normally. Another is to go to a different station within the system and keep reloading the save until the menus work again.

This screenshot demonstrates what the station menus look like in their broken state.
Station Menu Bug

Expected behaviour

Station menus should always be functional.

Steps to reproduce

I'm not sure how to reproduce this given that it seems to happen randomly.

My pioneer version (and OS):
ver 20210203 (142693b), Ubuntu 20.04 LTS

@Web-eWorks
Copy link
Member

Without a log file (~/.pioneer/output.txt) we cannot really diagnose the problem, especially without consistent reproduction steps. However, if you can zip the log file and the save file together and attach it to this issue we can definitely look into it - my guess is there's an error in the menu code that made it into the live build that's occasionally being triggered on loading the save.

@RL-10
Copy link
Author

RL-10 commented Mar 4, 2021

@Web-eWorks I'll do that the next time the bug occurs.

@RL-10
Copy link
Author

RL-10 commented Mar 5, 2021

I encountered the problem again so here's my output.txt. This time, it was the Commodity Market and Equipment Market menus that weren't working. It looks like the relevant lines start at line 257.
output.txt

@Web-eWorks
Copy link
Member

I encountered the problem again so here's my output.txt. This time, it was the Commodity Market and Equipment Market menus that weren't working. It looks like the relevant lines start at line 257.
output.txt

Can definitely confirm there's an error there that's being caught and not crashing your game - good to see that's working in the wild. Eventually when that happens we'll display an error message in that space, but for right now the error is only written to the log.

I would really appreciate it if you could upload your savefile as well (~/.pioneer/savefiles/<savefilename>), as that will help diagnose the root cause of this issue. Additionally, any information you have about the precise conditions in which you first get this error (e.g. jumped to a different system than the starting system, saved and loaded the game, etc...) would help to track down the issue.

@Web-eWorks
Copy link
Member

Web-eWorks commented Mar 5, 2021

To anyone who might be looking into fixing this issue - it's another case in which a ship docks at a station and SpaceStation's equipmentStock cache isn't initialized for that station. My best guess (take it with a grain of salt) is that something's creating an advert for that station before the player docks, and as a result the logic that should be initializing the station's data store when the player docks thinks it's already initialized. There are a few ways around this behavior - probably the best one is to introduce a separate cache for visited (and initialized) stations that isn't tied to the advertisement logic.

@RL-10
Copy link
Author

RL-10 commented Mar 5, 2021

@Web-eWorks

Here's the savefile that this bug occurred on. I had docked at this station then quit. I then loaded the exit autosave when the bug occurred. I'll admit that I did modify the Lunar Shuttle to accept a hyperdrive, but I experienced this bug before I did that.
_exit.zip

@impaktor
Copy link
Member

impaktor commented Mar 6, 2021

@RL-10 your zip is corrupted. Perhaps it didn't finish uploading?

@RL-10
Copy link
Author

RL-10 commented Mar 6, 2021

@impaktor It's not corrupted. I just added ".zip" to the end of the save file so it would upload to Github. You should be able to just remove the .zip extension.

@tropicalpioneer
Copy link

tropicalpioneer commented May 15, 2021

If it helps, I am experiencing this as well from time to time, and I have not noticed particular steps to reproduce it.
Do you need any file from me too?

@Web-eWorks
Copy link
Member

If it helps, I am experiencing this as well from time to time, and I have not noticed particular steps to reproduce it.
Do you need any file from me too?

Not at this time, but thank you for offering! At the moment fixing this issue is a matter of being able to devote the time needed to track down the root cause, and that's something I just don't have right now.

@tropicalpioneer
Copy link

The Bulletin Board sometimes turns suddenly empty, and it is not a matter of speeding up time to load new missions.
If I reload the savedgame, the Bulletin Board is still empty.
If I reload Pioneer, then load the saved game, the Bulletin Board is not empty.

version 20210513 (0c84df0)

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

Successfully merging a pull request may close this issue.

4 participants