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

Spacestation.lua attempt to index field '?' (a nil value) #5233

Closed
SkinSz opened this issue Jul 28, 2021 · 6 comments · Fixed by #5291
Closed

Spacestation.lua attempt to index field '?' (a nil value) #5233

SkinSz opened this issue Jul 28, 2021 · 6 comments · Fixed by #5291

Comments

@SkinSz
Copy link

SkinSz commented Jul 28, 2021

Observed behaviour
Loaded my savegame. Went to the already docked station and switched to the commodities or equipment tab and seen the error.

Expected behaviour
Obviously the GUI should function without issues.

Steps to reproduce
Unknown as I don't know what the cause is. Sounds like someone that understands the code needs to do some digging (I can only read a little bit of powershell and that has nothing to do with a real useful scripting language :> )

Attachments

1
2
output.txt

@Web-eWorks
Copy link
Member

Duplicate of both #5149 and your most recent issue #5231. I'll leave this issue open, but it's the same edge-case bug where equipment data isn't properly being initialized with the station object.

@SkinSz
Copy link
Author

SkinSz commented Jul 28, 2021

Well, I haven't thought of #5231 beeing a big deal as it sorted itself. Further having the game in such an inconsistent state seems to cause crashes entering a new system via a hyperdrive jump.

@joonicks
Copy link
Contributor

in my playground setup, this bug is triggered even on creating new games, even ending the game and starting a new the error never resets

its further indication it seems that lua is not reset between games

@joonicks
Copy link
Contributor

this function is a prime suspect (SpaceStation.lua)

Event.Register("onShipDocked", function (ship, station)
	if ship ~= Game.player or SpaceStation.adverts[station] then return end
	createStationMarket(station)
end)

joonicks added a commit to joonicks/pioneer that referenced this issue Sep 27, 2021
station adverts seem an unreliable method for determining if a stations market has been created
@Jose-Reis
Copy link

Jose-Reis commented Jan 27, 2022

Is this the same error? Got it after landing on a station where there was a slave revolt. Crashed the game but could not repeat it since after a second landing I did not get the error.
pioneer-error

@Web-eWorks
Copy link
Member

If you were playing with the release from July, yes it's probably the same error (and since fixed). If you're playing the most recent development builds then it's most likely #5221.

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