Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Cave Adaptation Questions  (Read 1398 times)

Dampe

  • Bay Watcher
  • Texan Gamer
    • View Profile
    • My brand-new YouTube channel!
Cave Adaptation Questions
« on: June 18, 2014, 08:41:58 pm »

I'm about to begin my first (second, let us never speak of the first) serious fort, and I'm just really confused about cave adaptation in general. Can someone explain what it is and what I can do (if anything) to prevent it?
Logged
Regards,
Dampe

Witty

  • Bay Watcher
    • View Profile
Re: Cave Adaptation Questions
« Reply #1 on: June 18, 2014, 08:56:14 pm »

Logged
Quote from: Toady One
I understand that it is disappointing when a dwarf makes a spiked loincloth instead of an axe.

toomanysecrets

  • Bay Watcher
  • Jackpot.
    • View Profile
Re: Cave Adaptation Questions
« Reply #2 on: June 19, 2014, 12:42:27 am »

Basically if a dwarf has been underground a long time, he/she will have a negative thought when they finally do go back outside again. It's not a big deal, it's not a big hit to happiness and the only real downside is sometimes it results in dwarf vomit all over the place.
Logged

Panando

  • Bay Watcher
    • View Profile
Re: Cave Adaptation Questions
« Reply #3 on: June 19, 2014, 01:02:12 am »

The dwarves it really might matter for is military dwarves. I like to have military dwarves train in a lit area because it's no fun for them to run outside to chase down some enemies, and start puking their guts out and getting unhappy thoughts. You don't want your military dwarves to have unhappy thoughts if you can help it, they already have to put up with getting injured and losing their squad mates and stuff.
Logged
Punch through a multi-z aquifer in under 5 minutes, video walkthrough. I post as /u/BlakeMW on reddit.

Dampe

  • Bay Watcher
  • Texan Gamer
    • View Profile
    • My brand-new YouTube channel!
Re: Cave Adaptation Questions
« Reply #4 on: June 19, 2014, 08:13:24 am »

Alright, thanks.
Logged
Regards,
Dampe

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Cave Adaptation Questions
« Reply #5 on: June 19, 2014, 10:06:20 am »

I don't know if these numbers have been verified against the current version, but earlier versions behaved like this:

* If a dwarf is in a "Dark" tile, cave adaptation increases by 1 every tick to a maximum of 800,000 (403,200 ticks is one year, so the maximum is just short of 2 years).
* If a dwarf is in an "Outside" tile, cave adaptation decreases by 10 every tick.
* If a dwarf is in an "Outside" tile while the sun is out (i.e. not raining or snowing), the following happens:
** If cave adaptation is at 604,800 or higher (1.5 years), the dwarf will experience Nausea, Pain, and Fatigue. The dwarf will also receive the unhappy thought "was nauseated by the sun recently".
** If cave adaptation is between 403,200 and 604,800 (between 1 and 1.5 years), the dwarf will become Stunned and experience lower amounts of Pain and Fatigue. The dwarf will also receive the unhappy thought "was irritated by the sun recently".
** Otherwise, nothing bad happens.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

m-logik

  • Bay Watcher
    • View Profile
Re: Cave Adaptation Questions
« Reply #6 on: June 19, 2014, 04:36:07 pm »

Out of curiosity, Quietust, do you know if the sun exposure symptoms have a set duration? Or do they persist until the dwarf either goes inside or has their adaptation reduced below the thresholds for symptoms? If a dorf's adaptationometer goes below the "nauseated" threshold while still outside, will it become stunned and receive an additional unhappy thought for being "irritated"?
Logged

Panando

  • Bay Watcher
    • View Profile
Re: Cave Adaptation Questions
« Reply #7 on: June 19, 2014, 04:58:44 pm »

I don't know if these numbers have been verified against the current version, but earlier versions behaved like this:

* If a dwarf is in a "Dark" tile, cave adaptation increases by 1 every tick to a maximum of 800,000 (403,200 ticks is one year, so the maximum is just short of 2 years).
* If a dwarf is in an "Outside" tile, cave adaptation decreases by 10 every tick.
* If a dwarf is in an "Outside" tile while the sun is out (i.e. not raining or snowing), the following happens:
** If cave adaptation is at 604,800 or higher (1.5 years), the dwarf will experience Nausea, Pain, and Fatigue. The dwarf will also receive the unhappy thought "was nauseated by the sun recently".
** If cave adaptation is between 403,200 and 604,800 (between 1 and 1.5 years), the dwarf will become Stunned and experience lower amounts of Pain and Fatigue. The dwarf will also receive the unhappy thought "was irritated by the sun recently".
** Otherwise, nothing bad happens.

So that means you really need to have dwarves hang out in an outside area in order to ward off cave-adaptation, just having them occasionally see the sun will slow the onset of symptoms but it will eventually become full-blown if they don't spend at least 10% of their time outside. This probably explains why putting just a single tile light-hole above a barracks hasn't been enough to ward off cave adaptation.
Logged
Punch through a multi-z aquifer in under 5 minutes, video walkthrough. I post as /u/BlakeMW on reddit.

jcochran

  • Bay Watcher
    • View Profile
Re: Cave Adaptation Questions
« Reply #8 on: June 19, 2014, 06:19:43 pm »

So that means you really need to have dwarves hang out in an outside area in order to ward off cave-adaptation, just having them occasionally see the sun will slow the onset of symptoms but it will eventually become full-blown if they don't spend at least 10% of their time outside. This probably explains why putting just a single tile light-hole above a barracks hasn't been enough to ward off cave adaptation.

Just make a nice wall enclosed meeting area above ground and you're good to go. Unfortunately, you can't roof over the area to make it totally secure. Such a roofed over area is still useful in that cave adaptation won't get worse while within it, but on the other hand, cave adaptation won't get better. And you don't need 10% of their time to be spent outside, only 9.09%....
Logged

BoogieMan

  • Bay Watcher
  • Hi
    • View Profile
Re: Cave Adaptation Questions
« Reply #9 on: June 22, 2014, 10:56:50 pm »

So that means you really need to have dwarves hang out in an outside area in order to ward off cave-adaptation, just having them occasionally see the sun will slow the onset of symptoms but it will eventually become full-blown if they don't spend at least 10% of their time outside. This probably explains why putting just a single tile light-hole above a barracks hasn't been enough to ward off cave adaptation.

Just make a nice wall enclosed meeting area above ground and you're good to go. Unfortunately, you can't roof over the area to make it totally secure. Such a roofed over area is still useful in that cave adaptation won't get worse while within it, but on the other hand, cave adaptation won't get better. And you don't need 10% of their time to be spent outside, only 9.09%....

Are you sure you won't be able to roof over it? I dug through a 3 layer aquifer and even after putting 3 ceilings over it (archer tower kinda thing) it still counts as light, outside, and freezes in the winter.
Logged
(╯°□°)╯︵ ┻━┻ BoogieMan, Forumscrub cancels tantrum: Seeking Dr. Pepper

jcochran

  • Bay Watcher
    • View Profile
Re: Cave Adaptation Questions
« Reply #10 on: June 23, 2014, 08:55:33 am »

Are you sure you won't be able to roof over it? I dug through a 3 layer aquifer and even after putting 3 ceilings over it (archer tower kinda thing) it still counts as light, outside, and freezes in the winter.

Are you sure you're reading it right?
You'll find that there are three attributes
Inside/Outside
Light/Dark
Above Ground/Subterranean

A dug out area that is subsequently roofed over becomes Inside/Light/Above Ground and yes, if you're in a temperate or colder climate, water will freeze there from time to time.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Cave Adaptation Questions
« Reply #11 on: June 23, 2014, 10:32:08 am »

Out of curiosity, Quietust, do you know if the sun exposure symptoms have a set duration? Or do they persist until the dwarf either goes inside or has their adaptation reduced below the thresholds for symptoms?
I can't check right now, but I believe it's a percent chance to trigger during each tick, so a long string of unlucky rolls could make it persist until they go back inside.

If a dorf's adaptationometer goes below the "nauseated" threshold while still outside, will it become stunned and receive an additional unhappy thought for being "irritated"?
Yes on becoming stunned, not sure about the thought - there are some thoughts which are mutually exclusive (such as "depressed about being confined"/"is happy to be free" and "suffered minor wounds lately"/"suffered major wounds lately"), but I'm not sure if irritated/nauseated are in that list.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Cave Adaptation Questions
« Reply #12 on: June 24, 2014, 01:20:06 pm »

I've just checked the code in 0.34.11 and discovered several interesting things:

1. As I suspected, negative effects of cave adaptation have a percentage chance to trigger (1/1000 per tick) and they are cumulative, so a sufficiently long string of unlucky rolls can actually cause a cave-adapted dwarf to pass out from exhaustion upon stepping outside.
2. In the current version (and likely all the way back to 0.31.01), cave adaptation causes Fatigue and nothing more - due to what I can only assume is a bug, the usual Pain, Stunning, and Nausea are never applied at all.
3. It is possible to get both cave adaptation thoughts at the same time - as in previous versions, only the MajorInjury/MinorInjury and Jailed/Free thoughts are mutually exclusive.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

m-logik

  • Bay Watcher
    • View Profile
Re: Cave Adaptation Questions
« Reply #13 on: June 24, 2014, 03:01:13 pm »

edit: wrong topic, ignore

edit edit:
On topic, I've had my current fort's cavern defense squad on surface patrol watching for the (now confirmed to exist by Quietust's code diving) double-negative thought. I couldn't figure out why they weren't vomiting despite all being "nauseated by the sun lately." So that's two mysteries solved. Thanks for the investigative work, Quietust.
« Last Edit: June 24, 2014, 03:34:39 pm by m-logik »
Logged

falcn

  • Bay Watcher
    • View Profile
Re: Cave Adaptation Questions
« Reply #14 on: June 27, 2014, 09:53:59 pm »

Make the main stairs constructed (b-C-) instead of carved (d-).

This is z-7
Logged