jpcsupplies / Economy_mod

Basic Economy System for Space Engineers
13 stars 12 forks source link

[ENH] refuel command #111

Open jpcsupplies opened 8 years ago

jpcsupplies commented 8 years ago

Can Mod API mess with the contents of hydrogen and oxygen tanks.. if so, can we make an expediated "refuel" command eg /refuel oxygen 50% /refuel hydrogen 100%

Charge at a premium rate in return for not having to wait to refuel?

Should consume ice. Or drain tanks at the base. Also maybe require they are much closer to the middle of the trade zone. (could even nominate a particular gps point they need to be near to refuel allowing for Role play elements like building a fuel station base!)

Could go so far as requiring them to attach to a specially named connector before they can refuel too.

midspace commented 8 years ago

It's possible, but the consuming of Ice may present problems. It's the rate that is in question. Small and Large block Gas generators produce Hydrogen at different efficiencies. No doubt Oxygen may be rebalanced in the future, and then mods may have a different value. At what rate of efficiency do you pick?

Or do we margin the cost on the efficiency? Higher cost for higher efficiency? How to present the range of efficiency options to the user? How to balance cost between Ice used, gas generated, and cost?

jpcsupplies commented 8 years ago

Well the trade off will be a "quick refuel" is significantly more expensive in credits than simply buying and converting ice. Or as I suggested we could transfer the gas already stored in tanks on the station, at which point the ice cost is irrellevent - since the game will be handling filling the tanks to begin with. We could take some guesses but the refuel charge could be a set market item like other items. What was the estimates, 1 million Ice to fill 1 tank or something. Cost is largely imaginary anyway, since this would require mined Ice being transferred into the stations gas generators to fill the tanks. The ice could be mined (almost free) or bought out of the main market (whatever the unit price there is) We really need a figure that works out roughly to cost more than buying a million ice per tank from the market, so that the market can be drawn on for fuel extraction.