aliens

Author Topic: Odd Gender Ratios  (Read 22973 times)

Offline moghopper

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Odd Gender Ratios
« on: October 07, 2014, 03:10:23 am »
Something odd is going on, I am getting a really weird ratio of women to men. I'm getting around six women to one man.

I have tried starting multiple games and it this keeps happening. Any idea what is going on and how I can get it to a 1 to 1 ratio?

Offline shinr

  • Colonel
  • ****
  • Posts: 140
    • View Profile
Re: Odd Gender Ratios
« Reply #1 on: October 07, 2014, 09:25:27 am »
RNG decided to give more women than men several times in the row?

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Odd Gender Ratios
« Reply #2 on: October 07, 2014, 10:48:53 am »
weird
this is the only part in the code i could find in regard to gender creation
Code: [Select]
_gender = (SoldierGender)RNG::generate(0, 1);
_look = (SoldierLook)RNG::generate(0,3);
the ruleset has
Code: [Select]
soldiers:
  - type: XCOM
#...
    genderRatio: [3, 1]
but this number is never used at least as far as i can see

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Odd Gender Ratios
« Reply #3 on: October 07, 2014, 11:58:09 am »
lucky guys :)

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Odd Gender Ratios
« Reply #4 on: October 07, 2014, 03:32:23 pm »
lucky guys :)

I like working with women but being in a place with a 1 to 6 gender ratio wouldn't be exactly my dream job...

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Odd Gender Ratios
« Reply #5 on: October 08, 2014, 10:35:25 pm »
weird
this is the only part in the code i could find in regard to gender creation
Code: [Select]
_gender = (SoldierGender)RNG::generate(0, 1);
_look = (SoldierLook)RNG::generate(0,3);
the ruleset has
Code: [Select]
soldiers:
  - type: XCOM
#...
    genderRatio: [3, 1]
but this number is never used at least as far as i can see
It's always been a 50:50 ratio. I have no idea where the ruleset thing comes from because it has no effect.
« Last Edit: October 08, 2014, 10:37:49 pm by SupSuper »

Offline Mackus

  • Sergeant
  • **
  • Posts: 48
    • View Profile
Re: Odd Gender Ratios
« Reply #6 on: October 09, 2014, 07:40:23 am »
It's always been a 50:50 ratio. I have no idea where the ruleset thing comes from because it has no effect.
Well, this would explain why when I tried to modify the ratio game ignored any changes.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5460
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: Odd Gender Ratios
« Reply #7 on: October 19, 2014, 11:33:58 am »
There's lookWeights line in the .nam files, but it's only for skin color, not gender.

I've always thought the gender ratio was something like 2:1 in favor of men, at least that's what I've been constantly getting in the original.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11738
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Odd Gender Ratios
« Reply #8 on: October 19, 2014, 11:37:13 am »
There's lookWeights line in the .nam files, but it's only for skin color, not gender.

I've always thought the gender ratio was something like 2:1 in favor of men, at least that's what I've been constantly getting in the original.

The latest nightly makes it customizable. Default is 3:1.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Odd Gender Ratios
« Reply #9 on: October 19, 2014, 12:18:24 pm »
default is 1:1, xcom1ruleset makes it 3:1, we're not gender biased, vanilla ruleset is.
these ratios can also be overridden by the .nam files, so recruits from the planet amazonia can have a 100% female ratio.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11738
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Odd Gender Ratios
« Reply #10 on: October 19, 2014, 12:53:15 pm »
default is 1:1, xcom1ruleset makes it 3:1, we're not gender biased, vanilla ruleset is.

Ugh, sorry. I... didn't think this through. :P

Offline darkestaxe

  • Colonel
  • ****
  • Posts: 254
  • Emissary of the Brain
    • View Profile
Re: Odd Gender Ratios
« Reply #11 on: October 19, 2014, 01:56:25 pm »
default is 1:1, xcom1ruleset makes it 3:1, we're not gender biased, vanilla ruleset is.
these ratios can also be overridden by the .nam files, so recruits from the planet amazonia can have a 100% female ratio.

Just in case there's still some confusion for other readers: Warboy is saying that vanilla x-com had a 1:3 ratio (1/4 female and 3/4 male) and Openxcom also has a 1:3 ratio now (in the ruleset).

If you remove the 1:3 ratio rule from the ruleset then Openxcom's engine will default to 1:1 (1/2 Male and 1/2 Female) because Openxcom isn't sexist, only vanilla x-com and the default ruleset.

Also .nam files give name-sets for different countries and modders can add new .nam files for new countries too. A .nam file can be set to have it's own gender ratio, for example if someone added Planet Amazonia they would want all soldiers with Amazonia names to be female.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Odd Gender Ratios
« Reply #12 on: October 19, 2014, 05:08:18 pm »
yes, that's it exactly, darkestaxe. thanks for clarifying.

Offline Sturm

  • Colonel
  • ****
  • Posts: 132
    • View Profile
Re: Odd Gender Ratios
« Reply #13 on: October 20, 2014, 04:54:12 am »
If you remove the 1:3 ratio rule from the ruleset then Openxcom's engine will default to 1:1 (1/2 Male and 1/2 Female) because Openxcom isn't sexist, only vanilla x-com and the default ruleset.
It's not "sexist" since it doesn't ban women from X-Com. Though it could be accused of pandering to fantasies as it would be pretty hard to find 1:3 women to men ratio in elite combat units, not to speak of the tiny percentage of female recruits that would actually get through physical tests.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Odd Gender Ratios
« Reply #14 on: October 20, 2014, 07:56:05 am »
well, i'll be honest, i'm not really WORRIED about being accused of being sexist or misogynistic in any way, but shall we not go down this route of discussion? we all know where it leads.