Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Sex ratio at birth  (Read 1701 times)

Maur

  • Bay Watcher
    • View Profile
Sex ratio at birth
« on: August 21, 2012, 11:05:52 pm »

Is there a way to mod it? Basically, i'm thinking of making Dwarves sort of Tolkienesque with 2:1 m:f ratio.

(the aim is to limit the number child rearing couples. The monogamy for life already fits it and the Tolkien dwarves very well)
Logged

Dwarfu

  • Bay Watcher
  • Dwarven Advisor
    • View Profile
Re: Sex ratio at birth
« Reply #1 on: August 21, 2012, 11:24:18 pm »

You can try the CASTE level tag of POP_RATIO.  Just set a number in each of the MALE/FEMALE casts.

I tried this with hinds/harts to rarely have a white stag as a child, but they seemed way too common no matter what I set the numbers at...

Let me know if it has the desired effect.
Logged

Maur

  • Bay Watcher
    • View Profile
Re: Sex ratio at birth
« Reply #2 on: August 21, 2012, 11:46:13 pm »

You can try the CASTE level tag of POP_RATIO.  Just set a number in each of the MALE/FEMALE casts.

I tried this with hinds/harts to rarely have a white stag as a child, but they seemed way too common no matter what I set the numbers at...

Let me know if it has the desired effect.
Hmm, reading creature tokens wiki i get i should insert [POP_RATIO:100] under male caste and [POP_RATIO:50] under female caste entries of creature_standart file?

EDIT/Masterwork has a golden goose as a rare goose caste.

And the absolute numbers not relevant and only the ration is important, right?

I'm running no-immigration fort so i should get lots of kids. But I'll savescum a bit anyway and see if this change did affect the ratio.
« Last Edit: August 21, 2012, 11:49:00 pm by Maur »
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Sex ratio at birth
« Reply #3 on: August 22, 2012, 12:00:42 am »

POP_RATIO should do what you want, a number of mods use this successfully.  And yeah, as far as I know, only the ratio matters.

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Sex ratio at birth
« Reply #4 on: August 22, 2012, 03:36:04 am »

Ratio is the only important thing here. So 1 and 2 will function identical to 100 and 200, or 1000 and 2000. The only advantages to large numbers is that sometimes it makes getting certain ratios easier to accomplish.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Maur

  • Bay Watcher
    • View Profile
Re: Sex ratio at birth
« Reply #5 on: August 22, 2012, 05:19:29 am »

Weird. I added poprations 100 for males and 50 for females and for now it's:

12 girls and 9 boys born. Yes, not a huge number, but still. (and of the last 11 births 10 were female. Is my RNG broken or something?)
Logged

Maur

  • Bay Watcher
    • View Profile
Re: Sex ratio at birth
« Reply #6 on: August 22, 2012, 05:43:28 am »

Hm, rechecked the file and seems i missed a ] somehow

   [CASTE:MALE
      [CASTE_NAME:dwarf:dwarves:dwarven]
      [POP_RATIO:100]
      [MALE]
   [CASTE:FEMALE]
      [CASTE_NAME:dwarf:dwarves:dwarven]
      [POP_RATIO:50]
      [FEMALE]


Logged

mastahcheese

  • Bay Watcher
  • Now with 20% less sanity and trans fat!
    • View Profile
Re: Sex ratio at birth
« Reply #7 on: August 26, 2012, 06:56:09 pm »

Hm, rechecked the file and seems i missed a ] somehow

   [CASTE:MALE
      [CASTE_NAME:dwarf:dwarves:dwarven]
      [POP_RATIO:100]
      [MALE]
   [CASTE:FEMALE]
      [CASTE_NAME:dwarf:dwarves:dwarven]
      [POP_RATIO:50]
      [FEMALE]

Well, there's your problem, as for ending up with still a bunch of females, it's like flipping a coin, it may be a small chance, but there is still a chance of flipping tails twenty times in a row, just keep at it, or make the ratio slightly smaller.
Logged
Oh look, I have a steam account.
Might as well chalk it up to Pathos.
As this point we might as well invoke interpretive dance and call it a day.
The Derail Thread