ship.heatInsulation

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

ship.heatInsulation

Post by Commander McLane »

Stumbled across a strange behaviour of the heatInsulation property. Wiki says:
Wiki wrote:
The ship’s heat insulation factor. 1.0 is normal, higher values mean more resistance to heat.
And that's what I see when I query it in the console:
player.ship.target.heatInsulation
returns 1 for e.g. a police viper.
But if I set it via the console, things get strange (quotations from now on from the JS-console):
> player.ship.target.heatInsulation=2
2
leads to
> player.ship.target.heatInsulation
512
Hm. Restoring it back with
> player.ship.target.heatInsulation=1
1
results in
> player.ship.target.heatInsulation
256
Now I'm getting curious. What would happen with
> player.ship.target.heatInsulation=0
0
? Answer:
> player.ship.target.heatInsulation
32
Aha. And what about:
> player.ship.target.heatInsulation=3
3
Now we arrive at
> player.ship.target.heatInsulation
768
Conclusion: Internally the value isn't 1, 2 or 3, but 1x256, 2x256 or 3x256. Only the 32 doesn't really fit.

And it is a little strange that these internal values only show up after the first change.

Or is something broken here?
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Setting the heat insulation value does indeed multiply the value by 256. Silly copy and paste error, fixed for 1.72.1.
Post Reply