Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Heatshields and Stations

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Micha
Commodore
Commodore
Posts: 815
Joined: Tue Sep 02, 2008 2:01 pm
Location: London, UK
Contact:

Heatshields and Stations

Post by Micha »

A few entities (eg, the Commie SLAPU and ZGF) are designed to be close to the sun permanently. If the sun is too large, they overheat and eventually blow up, irrespective of heat shield levels.

There are (at least) 3 ways to fix this:
0. Move the entity further away from the sun.

1. Run a timer which periodically resets temperature (Suggested by Eric).

2. Modify heat shields to completely ignore outside temperatures below a threshold, the higher the heat shield level the higher the threshold. Tweak it so that player heatshields have a minimal threshold and so behave pretty much as they do now.

3. Add a new key to shipdata (heat_immunity (?)) which prevents heat build-up completely for this ship type.


0 is a hack - goes against the spirit of the original idea IMHO. But definitely by far the easiest option.

1 is the easiest from a coding perspective - no code changes, just need to add a ship script to the relevant entities. More a work-around than a fix though, and it means there's (IMHO) unnecessary computation going on.

2 is probably the easiest from a coding perspective and IMHO makes the most sense. Add a high-enough heatshield level to the relevant entities and, barring a nova, they'll be fine. Good for stations close to the sun, or special research ships, etc.

3 would be a very bespoke implementation and also the most work. Would also mean the relevant entities could survive anything heat-related, including a nova.

Thoughts, comments, flames?
The glass is twice as big as it needs to be.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

I'd throw my vote at 2, too.
Chrisfs
---- E L I T E ----
---- E L I T E ----
Posts: 433
Joined: Sun Sep 20, 2009 10:24 am
Location: California

Post by Chrisfs »

#2 and now I know why I haven't been seeing those things. I have been looking in the wrong place. :)
User avatar
Micha
Commodore
Commodore
Posts: 815
Joined: Tue Sep 02, 2008 2:01 pm
Location: London, UK
Contact:

Post by Micha »

Reworked heatshields submitted in trunk r2677.
The glass is twice as big as it needs to be.
Post Reply