space-nerds-in-space icon indicating copy to clipboard operation
space-nerds-in-space copied to clipboard

Problems selling ores to stations

Open smcameron opened this issue 9 years ago • 3 comments

Received this report:

"I tried to sell some ores to a station, but the options didn't work. I navigate in the station menus until I have a screen telling me the contents of my cargo, with A: stuff B: stuff C: stuff etc contents. But no numbers to chose except the "0: go back" one. In the end I coudn't sell it. So I wonder if selling ores is implemented or not..."

smcameron avatar Jun 09 '16 07:06 smcameron

Ok, digging into this, it does work (mostly), but it is just completely non-obvious what you're supposed to do. This is a case of me implementing the minimum stupid thing that could possibly work, with no polish whatsoever.

Here's how it works. When you hail a starbase, type "7" to "arrange transport contracts", and under there is an option to "sell cargo". Choose that. Then you're presented with a list of things in your cargo bays, with letters, A, B, C, D, etc. denoting each bay, and a number denoting the quantity.

So you might see:

A. 0002 tons gold ore ... B. 0002 tons germaninum ...

or whatever.

Now here is the completely non-obvious part. To sell it, you have to type, eg.

"sell 1 a"

meaning, sell 1 ton of gold ore.

Buying is similar.

Now there is a bug. The quantity of ore you have is a floating point value, so you can have 0.9 tons of gold ore, but this is shown as 1 ton. You try to sell 1 ton, and you get "INVALID SELL ORDER" because you don't have 1 ton, but there's no way to sell 0.9 tons.

So... the bug here is that the implementation is just kind of terrible. :(

smcameron avatar Jun 12 '16 15:06 smcameron

Mitigated very slightly by 936416c48769803602ab850d1763364430e4b76c

smcameron avatar Jun 12 '16 16:06 smcameron

Mitigated slightly more by 02832305b09bd57d323a28123be7ae79d2884315 which allows selling cargo items without specifying the quantity.

smcameron avatar Jun 12 '16 18:06 smcameron