Jump to content

Debug question: Slightly incorrect sample values


Recommended Posts

I like using debug to make and test builds, but one gripe I have is that when I use the "Sample" tool, it is always incorrect on the mass.  If I sample a 1000 kg pocket of steam, it sets itself for 1013 kg, which is annoying.  It seems to add 1.3% to any mass sampled.  Does anyone know why?  Seems like a bug to me, but I always like to post asking about bugs before filing a bug report.

image.png.6446b4aa6dd8c60ecd20446a536d6ec2.png

8 hours ago, Zarquan said:

  Does anyone know why? 

Yes, the tool is buggy.

 

The debug blueprint tool steps the sim once when it takes a capture for example;

This is also the reason why the superconductive asteroid poi is always filled with sour gas; the template was supposed to be a vacuum, but it was created in an oxygen environment, so that sim step added a tiny amount of oxygen into the room which then causes the plastic ladders to melt

It's been this way for so long that it's now a feature™.

Damn 1013. I'm surprised you wrote this post, I thought everyone had surrendered to the 1013 for good.

Happy to be proven wrong, sad about not writing about this years ago. 1013 won and made me a slave. But no more!

8 hours ago, SGT_Imalas said:

after digging in the code for a bit, I assume its because the UI reads this value directly:

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

965B7489-857B-43D0-93A7-25E90769C350.png.75748dcdea75cc54575b5339aa269882.png

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

as for the why - that remains shrouded in mystery

Well, then if they were to replace Grid.Pressure with Grid.mass, everything would be fine.  Or Grid.Pressure[i ] / 101.3f;  Seems like an easy fix, maybe a bug report will get them to do it.  

And here is the bug report!  Your info was helpful, which is why I always ask here before making bug reports.

 

13 hours ago, SGT_Imalas said:

The debug blueprint tool steps the sim once when it takes a capture for example;

This is also the reason why the superconductive asteroid poi is always filled with sour gas; the template was supposed to be a vacuum, but it was created in an oxygen environment, so that sim step added a tiny amount of oxygen into the room which then causes the plastic ladders to melt

Part of me wonders if this was a thing that they saw and were like "Huh, that wasn't supposed to happen.  But great!"

I have noticed that aspect of that tool, so I basically never use it except to get things I can't use sandbox to spawn.

10 hours ago, 6Havok9 said:

It's been this way for so long that it's now a feature™.

Damn 1013. I'm surprised you wrote this post, I thought everyone had surrendered to the 1013 for good.

Happy to be proven wrong, sad about not writing about this years ago. 1013 won and made me a slave. But no more!

Viva la Revolution!  We will not be slaves to the 1.3%!!

Yes, this is an old bug. Some notes when discussed among modders previously:

  • 1 atm = 1.013 bar = 101.3 kPA, which explains the constants (PeterHan)
  • The pressure grid is used in rendering the pressure overlay, i.e. F1 hotkey (Romen) 

I believe that the sample tool should be sampling from the mass grid directly for the field labeled "mass". IIRC, the label on the text box used to be "pressure". Perhaps the pressure grid was mistakenly sampled under the assumption that pressure = mass for most other places in the code.

On 2/28/2025 at 11:47 PM, hydrotoast said:

Yes, this is an old bug. Some notes when discussed among modders previously:

  • 1 atm = 1.013 bar = 101.3 kPA, which explains the constants (PeterHan)
  • The pressure grid is used in rendering the pressure overlay, i.e. F1 hotkey (Romen) 

I believe that the sample tool should be sampling from the mass grid directly for the field labeled "mass". IIRC, the label on the text box used to be "pressure". Perhaps the pressure grid was mistakenly sampled under the assumption that pressure = mass for most other places in the code.

Makes sense.  In ONI, there isn't really a difference between pressure and mass.

My hope is that the fact that they just pulled from the wrong value means it will be an easy fix.

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...