Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambient Heat - Extremely Negative Values #536

Closed
Zenithsiz opened this issue Dec 8, 2017 · 1 comment
Closed

Ambient Heat - Extremely Negative Values #536

Zenithsiz opened this issue Dec 8, 2017 · 1 comment
Projects

Comments

@Zenithsiz
Copy link

TPT version: 92.5
OS: Windows 10

screenshot_1

It is possible to create an ambient temperature smalled than -10^8, which I assume is not something we should be able to do, since there is a max temperature, there should probably be a minimum too. The bug is reproducible but it cannot occur in a save because it relies on the life of a cray with a ctype of ligh being set to 99,999,999, which when saved and loaded in a save or a stamp changes to 65,535. The bug occurs when that cray is sparked and a line of ligh runs across the screen, making all the chunks it passes by gain an extremely negative temperature and afterwards that temperature spreads throughout the screen, Lowering the life to 9,999,999 seems to make the bug not occur anymore and the temperature stays at 9,725.85ºC, so I assume it's due to an number overflow when calculating the ambient temperature. I've also tried copying just the ligh to another save and it still created the negative temperatures, so I also assume it has to do with the life of the ligh being 99,999,999 and not specifically the cray. Testing the range of life further it seems that 13216599.50 causes negative temperatures while 13216599.49 does not, so that appears to be the boundary.

To sum up:
-LIGH with a life superior to 13216599.49 causes negative ambient temperatures when updated.
-This bug cannot affect saves / stamps due to the requirement of a higher life than saves / stamps can store.

@jacob1
Copy link
Member

jacob1 commented Dec 8, 2017

Interesting, i'll fix this later. I had to set life to 9,999,999,999 to make it work, maybe because I was using a 64 bit version with a higher number to overflow.

@jacob1 jacob1 added this to Current Issues in 93.0 Feb 25, 2018
@jacob1 jacob1 closed this as completed in 2adae64 Mar 4, 2018
93.0 automation moved this from Current Issues to Completed Mar 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
93.0
  
Completed
Development

No branches or pull requests

2 participants