kikotheexile / Endless-Sky-Civil-War

A stand alone, content driven Endless Sky fork.
22 stars 17 forks source link

Commodities costing strange amounts and credits going negative #167

Open ravenshining opened 3 years ago

ravenshining commented 3 years ago

Describe the bug

I've noticed on my playthrough credits occasionally going negative while on a planet. After a number of incidences I've narrowed it down to happening when I buy commodities. At first I thought it was just a cool glitch... but I've just now noticed that the commodities are costing me way more than they should, and I think that's why it's letting me buy into the negative.

To Reproduce

In the attached save file, clicking buy all will fill your hold. Then, sell all will sell it all, but cost you money. Clicking buy all again after this puts you into the negative.

Expected behavior

Screenshots

In this screenshot, I just bought one ton of metal that cost me 30,810 credits. This is the state of the save file below:

Screenshot_20210602_192207

After performing the steps described above (including a quit and reload), I am now in negative credits:

Screenshot_20210602_194328

I'm uh, not sure what happened to the freighter I was escorting in the previous screenshot... that might be a whole separate issue.

I believe Buy All was greyed out when I quit the game before, but upon loading the game to take that screenshot, it is not greyed out despite my being in negative credits. Clicking Buy All from here sells all my metal and finally leaves me in a state where I am unable to buy or sell.

System (please complete the following information):

Link to save file

Lia Somberworth.zip

ravenshining commented 3 years ago

Another save, this time a bit too late as I'm stuck at -9M credits, but from the current master:

Lia Fishbreath.txt