Cities: Skylines

Cities: Skylines

298 ratings
Campus Industries Housing Mod
2
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
198.868 KB
25 Aug, 2022 @ 2:48pm
15 Nov, 2024 @ 4:57pm
14 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Campus Industries Housing Mod

Description


Campus Dorms and Industry Barracks Housing

New Update 12.11.2024
* Fix people not moving into industry and campus housing.
* Fix saving and loading mechanisem.

New Update 13.09.2024
* Locked button to avoid type changes.
* Refresh panel UI look.
* New saving and loading mechanisem.

New Update 30.03.2024
* Dorms are now housing only and students will no longer study in them.and they will not add to the student count.

New Update 14.03.2024
* You can now adjust the apartment numbers for dorms and barracks, workers have been removed completly without affecting the bonus you get for placing the buildings.

Existing Dorms/Barracks
You will need to use the moveit mod to reset the buildings for them to start accept workers/students.

Summary
Free up some space and make your workers and their families move to a workers barracks, at least one family member must work in the same industry area for the family to stay. If no one in the family works in the industrial area no more, the entire family will move out.

Student are different - they will leave their family and move alone, every apartment will hold 5 students (roomates) and once they finish university they will leave and find a new place to live in. while living in the dorms students will not marry and have children and move away.

Dorms and barracks acts a s residential buildings and will have all the colors and data of a normal residential building.
The dorms and barracks of the industries and campus dlc's has been updated to have apartments which house workers and students accordingly.

Panel Buttons:
* save building - save specific values for this building
* return to default - same as save building, but with the default game values
* save prefab - set the data as prefab data according to building AI and building info name
* save global - same as save prefab but with global values
* apply prefab - delete all records of buildings of the same info name and AI and set them to the prefab
* apply global - delete all records of buildings and prefabs of the same info name and AI and set them to the global

What does a Barracks do?
Barrackses will:
  • Identify workers around the city that work in the same industrial area as the barracks
  • Offer the worker and his family to move in to the barracks (dynamic probability)
  • Act as a fully fledged residential building for the workers and their families to living there
  • Provide workplaces for the community

What does a Dorm do?
Dorms will:
  • Identify student around the city that study at the same campus as the dorm
  • Offer the student the opportunity to move into the dorm (dynamic probability)
  • Act as a fully fledged residential building for the student to living there with other roomates
  • Provide workplaces for the community

Other Details:
  • wealth and distance are taken into account
  • wealthier sutdents/worker families will be less likly to move, while meduim and low has normal chance.
  • students/worker families are less likely to move if they live closer to the industry/campus area
  • Dorms/Barracks Assets can be made by anyone (see below)

Customizable Menu Options
There are currently two key areas of this mod you can customize:
Capacity - Increase or Decrease the capacity of your Dorms/Barracks to fit your play style
Income - Dorms/Barracks can earn income for your city from the sutdents/worker families living in them, you can customize how much or turn it off.

Custom Assets:
  • The word "Dormitory" or "Dorm" or "Barracks" must be in the name.
  • They need to be of type CampusBuildingAI or AuxiliaryBuildingAI.

Important Notes if you will be creating an Asset:
Keep the Room Capacity of your asset realistic for its size, people can scale the capacity by using the Mod's Menu Options.

Source Code
Git Hub Repository:
https://github.com/t1a2l/CampusIndustriesHousingMod

Special thanks to krzychu124 and Chamëleon TBN for assistance with the mod.



[ko-fi.com]
97 Comments
Wabbafett 8 Feb @ 8:58pm 
Aww man this mod conflicts with Advanced Building Level Control. Cant use them together.
jac96 22 Jan @ 7:07am 
in <filename unknown>:0
at System.Collections.Generic.List`1[System.UInt32].Add (UInt32 item) [0x00000] in <filename unknown>:0
at CampusIndustriesHousingMod.Managers.WorkerManager.RefreshWorkers (UInt32 step) [0x00000] in <filename unknown>:0
at CampusIndustriesHousingMod.Managers.WorkerManager.RefreshWorkers () [0x00000] in <filename unknown>:0
at CampusIndustriesHousingMod.Managers.WorkerManager.ProcessFrame (UInt32 frameIndex) [0x00000] in <filename unknown>:0
at CampusIndustriesHousingMod.Managers.WorkerManager.OnBeforeSimulationFrame () [0x00000] in <filename unknown>:0
at HealkitMod.Patches.ThreadingWrapperOnBeforeSimulationFramePatch.Prefix (System.Collections.Generic.List`1 ___m_ThreadingExtensions) [0x00000] in <filename unknown>:0
jac96 22 Jan @ 7:07am 
Great mod! And it seems to be working properly except I am getting this error occasionally:

An error has occured in mod's OnBeforeSimulationFrame method.
Mod name: Campus Industries Housing Mod - Turn the Dorms and Barracks to actual living spaces apart from their other functions
Assembly: CampusIndustriesHousingMod, Version=1.0.9086.4829, Culture=neutral, PublicKeyToken=null
Severity: Medium

System.OutOfMemoryException: Out of memory
at (wrapper managed-to-native) object:__icall_wrapper_mono_array_new_specific (intptr,int)
at System.Array.Resize[UInt32] (System.UInt32[]+ array, Int32 length, Int32 newSize) [0x00000] in <filename unknown>:0
at System.Array.Resize[UInt32] (System.UInt32[]+ array, Int32 newSize) [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[System.UInt32].set_Capacity (Int32 value) [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[System.UInt32].GrowIfNeeded (Int32 newCount) [0x00000]

continued ...
a0909505075 24 Dec, 2024 @ 7:35am 
Although the workers have been removed, the jobs still show up on the unemployment rate. Please fix it. Thanks.
albambinaz 19 Nov, 2024 @ 7:58am 
excellent! Thanks!
rhmgerards 16 Nov, 2024 @ 3:43am 
Thanks for the fix, everything seems to work now!
t1a2l  [author] 15 Nov, 2024 @ 4:58pm 
@terryfromoz @albambinaz @rhmgerards - bugs fixed.
terryfromoz 15 Nov, 2024 @ 4:28am 
I am having the same problem as albambinaz
albambinaz 14 Nov, 2024 @ 9:18am 
build a new farm barack, but

An element with the same key already exists in the dictionary. [System.ArgumentException]

Details:
No details

save, exit e reload and work fine for me
rhmgerards 13 Nov, 2024 @ 1:23pm 
I tried the new update, I keep getting an error when I try to build any dorm:

System.ArgumentException: An element with the same key already exists in the dictionary.
at System.Collections.Generic.Dictionary`2<uint16, CampusIndustriesHousingMod.Managers.HousingManager/BuildingRecord>.Add (uint16,CampusIndustriesHousingMod.Managers.HousingManager/BuildingRecord) <0x002d5>
at CampusIndustriesHousingMod.Managers.HousingManager.CreateBuildingRecord (uint16) <0x002d8>
at CampusIndustriesHousingMod.AI.DormsAI.CreateBuilding (uint16,Building+) <0x0004a>
at BuildingManager.CreateBuilding (uint16+,ColossalFramework.Math.Randomizer+,BuildingInfo,UnityEngine.Vector3,single,int,uint) <0x00cab>
at (wrapper dynamic-method) BuildingTool.BuildingTool.CreateBuilding_Patch2 (BuildingTool,BuildingInfo+,UnityEngine.Vector3,single,int,bool,bool) <0x00531>
at BuildingTool/<CreateBuilding>c__Iterator0.MoveNext () <0x00706>
at AsyncTask.Execute () <0x000a8>