Jump to content

Debug's sample tool off by 1.3%.


Zarquan
  • Branch: Live Branch Version: Windows Fixed

I use debug a lot, and one thing that bugs me is that when I go to sample a tile to make changes or copy it somewhere else, I always have to adjust the mass to the correct value.  For example, if I select a tile with 1000 kg steam, the select tool will put 1013 kg of steam on the paint tool, which I then would have to correct.

According to the discussion on the thread below, this is because the Sample tool is using an adjustment to the Grid.Pressure value rather than the Grid.mass value.

This is where the error is in the code.  It should either be (Grid.Pressure[cell] / 101.3f).ToString(); or Grid.mass[cell].ToString();  I'd go with Grid.mass unless there is a reason you can't.

3A4A484B-7AE9-42F0-90E5-878715FD0F90.png.482a7d2e526a3d7da9f00f7d1b944bdd.png.6706b7e72865ae878a054bedf4a4a10f.png

Grid.Pressure[cell] is defined as "Grid.mass[cell] * 101.3f;", as seen in the image below.

57E792AD-BBE5-4660-BB73-A14D3FB684A3.png.92c497237394f2d5999917f64e15146a.png.0c438fcba281d610e77bd8139e3f56c6.png

(Thank you @SGT_Imalas for the code snippets.)

It would be great if this could be fixed so I can stop adjusting mass values when using debug.


Steps to Reproduce
  1. Open debug mode.
  2. Select the Sample tool
  3. Select a tile
  4. Note that the mass of the sample is 1.3% larger than the actual mass of the tile.
  • Like 1



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.

Changed Status to Fixed

This will be fixed in the next update. Note that dev debug tools are unsupported so it won't appear in the patch notes but we appreciate the reports.

  • Thanks 1

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...