• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

SkiRich

First Lieutenant
76 Badges
Aug 27, 2017
232
25
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Crusader Kings II: Jade Dragon
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Campus
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Battle for Bosporus
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Victoria 3 Sign Up
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
Description
Missing code from Residence:IsSuitable(colonist)
Windows
SteamWhat is your game version?
1001539Do you have Space Race installed?
YesPlease explain your issue is in as much detail as possible.
Adults are occupying buildings that have the children_only = true parameter.
Nurseries are the big ones everyone notices.
I traced this to a change that was made in the code for Residence:IsSuitable(colonist)
There is no longer a check for children. Instead is was replaced with some exclusivity code.

So I combined the old code with your new code and made a mod to fix this.
You may want to revisit that code
Mod is here ...
Can you replicate the issue?
It affects everyone. Folks on the forums are complaining.Attachments
File(s) attached
 

Attachments

  • FCOB_Init.zip
    759 bytes · Views: 0
  • 3Like
Reactions:
I updated the mod to add a routine to test all colonists once, in a save game for missing age traits in the regular trait table and fix that per colonist.
What is also going on is folks with save games prior to your hotfix that fixed that have colonists running around with no age traits in the traits table.

The filter system based on age is not working as a side effect and folks are not understanding why.

So when you guy put out a hotfix that changes or repairs thinigs like this, please add savegamefixup routines to retro fix any asset that may be flawed.
 
@Aiwyth have you got this one? Or did you want me to log it as a new bug?
 
Devs and @Aiwyth

I found another spot where the code is missing consideration for children only.

Old code:
function Residence:CanReserveResidence(unit)
if self.children_only and not unit.traits.Child then
return false
end
return self.reserved[unit] or self:GetFreeSpace() > 0
end

New code missing the check:
function Residence:CanReserveResidence(unit)
if self.exclusive_trait and not unit.traits[self.exclusive_trait] then
return false
end
return self.reserved[unit] or self:GetFreeSpace() > 0
end