Help us improve Answers HQ! Take Survey No, Thanks

[NEEDS INPUT] [DU] Incorrect played household count on world selection screen

by elelunicy
Reply

Original Post

Highlighted

[NEEDS INPUT] [DU] Incorrect played household count on world selection screen

[ Edited ]
★ Guide

Product: The Sims 4
Platform:PC
Which language are you playing the game in? English
How often does the bug occur? Every time (100%)
What is your current game version number? 1.58.63.1010
What expansions, game packs, and stuff packs do you have installed? All
Steps: How can we find the bug ourselves? Play a household in a university housing lot. Check the number of played households in the world on the world selection screen .
What happens when the bug occurs? The world selection screen displays an incorrect played household count. Played households living in a university housing lot don't count as a played household.
What do you expect to see? The correct played household count.
Have you installed any customization with the game, e.g. Custom Content or Mods? Not now. I've removed them.
Did this issue appear after a specific patch or change you made to your system? No

This can be easily fixed by changing the GetNumPlayerHouseholds function in gamedata.GameEntry.Neighborhood.NeighborhoodData from

 

protected function GetNumPlayerHouseholds() : int
{
 var _loc3_:NeighborhoodLotData = null;
 var _loc1_:uint = 0;
 var _loc2_:Array = this.lots;
 for each(_loc3_ in _loc2_)
 {
  if(_loc3_.mLotType == NeighborhoodLotData.MY_PLAYABLE_LOT)
  {
   _loc1_++;
  }
 }
 return _loc1_;
}

to

protected function GetNumPlayerHouseholds() : int
{
 var _loc3_:NeighborhoodLotData = null;
 var _loc1_:uint = 0;
 var _loc2_:Array = this.lots;
 for each(_loc3_ in _loc2_)
 {
  if(_loc3_.mLotType == NeighborhoodLotData.MY_PLAYABLE_LOT || (_loc3_.mLotType == NeighborhoodLotData.MY_PLAYABLE_UNIVERSITY_HOUSING_LOT || _loc3_.mLotType == NeighborhoodLotData.MY_PLAYABLE_UNIVERSITY_HOUSING_LOT_INCOMPLETE))
  {
   _loc1_++;
  }
 }
 return _loc1_;
}

so that it would also check the two new lot types in DU.

Message 1 of 1 (95 Views)