Jump to content

Petroleum rocket moves 1 tile at the cost of 2


7au7vydas
  • Branch: Live Branch Version: Windows Fixed

I've attached a save file. I'm really not sure what caused it, but there is a rocket that is supposed to move 1 tile, and once it does, the remaining range is reduced from 4 tiles to 2 tile and my rocket cannot comeback home. If you need any more information, just tell, I'll try to provide.

 

Before.thumb.png.de9fe525f70b919c5f43223540e05b14.png

After.thumb.png.b285f34a1295e10eb8d4c30288872f4e.png
 


Steps to Reproduce
  • Open my save
  • Wait for the flying rocket to move to another tile
  • Observe the remaining range count

Expected result:

  • Remaining range should to reduce from 4 to 3

Actual result

  • Remaining range reduces from 4 to 2

 




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Hmm, not sure. Let's see. Before moving to the next tile I have:

  • 540 kg of petroleum 
  • 360 kg of oxilite

After moving to the next tile I have:

  • 450 kg of petroleum 
  • 270 kg of oxilite

So this seems like a rounding issue, but that's some very strict rounding to make 270/90 == 2 

Unless the actual amount inside the tank is 269.9 and the UI is showing the rounded amount, but the actual game logic is using the real value
 

Edit: 

This is silly, it goes both ways - I moved another tile and now I have :

  • 360 kg of petroleum 
  • 180 kg of oxilite

And it's still showing 2 tiles left.
So I assume they're using float values to compare the fuel amounts, and the floating point in the end like +-0.000000002 is messing things up. 

Edited by 7au7vydas

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...