Songs of Syx

Songs of Syx

Not enough ratings
Apartment Buff (v66)
   
Award
Favorite
Favorited
Unfavorite
Tweaks and Balance: Tweaks
File Size
Posted
14.846 KB
2 May, 2024 @ 1:34pm
1 Change Note ( view )

Subscribe to download
Apartment Buff (v66)

Description
Apartment Buff v1.1.0

Affects all housing

  • Buffs the last housing upgrade in order to make apartments equal to houses and longhouses once fully upgraded
  • Apartments get a 20% buff from 5 to 6 max residents
  • Houses and longhouses get a ~11% buff from 9 to 10 and 18 to 20 respectively

Apartments are slightly worse than houses and longhouses on top of being less dense. It annoyed me and there is no real reason for it as the dev stated his idea was to make the difference purely cosmetic, so I made this mod for myself and figured I'd upload it in case anyone who feels similarly wants to use it.

Reasoning, for those who care:
Fully upgraded vanilla apartments provide housing for one pop per 1.8 tiles, while houses and longhouses do so for 1.667 tiles, making them better in 99% of scenarios. Making apartments 1.667 too is impossible with their current layout unless you start to cut people in half, undoubtedly affecting their productivity.
I didn't want to straight up just make apartments better since the goal is to make the difference cosmetic, so this mod simply changes it to 1.5 tiles per pop for them all, which is the simplest solution I could think of with a very negligible effect on balance, if any.

Compatibility:
  • Script mod, may conflict with other mods/temporarily break after game updates
  • v66 only
  • Will affect any other indoor pasture from potential other mods
  • May cause a crash in saves with high population (trying to fix it), removing it from an ongoing save requires extra steps:
    You have to first empty all your fully upgraded homes (click on one -> assign -> set permission for none -> drag over the entire map, you don't have to unpause the game). Otherwise the game will crash because it apparently can't gracefully handle there being more than the max residents in a home. If you do this beforehand there shouldn't be any issues.


And yes, I've been using garthimi in my labs.
27 Comments
king ko 9 Jul, 2024 @ 4:37pm 
Note: Incompatible with Technology Expanded (V66)
Duny  [author] 26 Jun, 2024 @ 6:02am 
@EvilCrayfish
It's all explained in the description, and no the niche crash isn't fixed since nobody has provided a save in which it happens or been able to reproduce it.
EvilCrayfish 23 Jun, 2024 @ 10:49am 
Hello! Can you please explane, this mod add pop to alll housings? Is crash issues solved?
Duny  [author] 30 May, 2024 @ 5:04am 
If anyone else is getting a crash related to "ENTETIES" or "occupants" it is very highly likely it's due to this mod, in which case please share your save here or on discord (I'm in the game's official server under the same name, feel free to ping me) because so far I've been unable to reproduce it (Astarvox's save is unusable due to it using a mod that no longer exists because they were in the middle of developing it).
The problem is quite tricky to fix and pretty much impossible without a way to test potential solutions.

I've tried everything I could think of in a save with 8k pop and no matter what I do I don't get any crashes so it must be happening under rather specific circumstances.
Astarvox 28 May, 2024 @ 6:54am 
Yeah get in touch with Argoon on the discord he sees that something is wrong but this is all beyond me. Good luck :D
Astarvox 28 May, 2024 @ 2:44am 
Ah and I now I read up now that my brain isn't mush and the last guy had a similar issue. My names the same on discord if you want a save file :) I'm in the SoS modding discord.
Astarvox 27 May, 2024 @ 3:56pm 
(CONT)
at settlement.entity.ENTETIES.update(ENTETIES.java:348)
at settlement.main.SETT.update(SETT.java:734)
at game.GAME.update(GAME.java:308)
at view.main.VIEW.update(VIEW.java:250)
at snake2d.Updater.update(Updater.java:106)
at snake2d.Updater.run(Updater.java:54)
Astarvox 27 May, 2024 @ 3:56pm 
java.lang.RuntimeException: 4 snake2d.util.datatypes.Rec x1:222 x2:225 y1:54 y2:57 null
at settlement.room.home.house.HomeHouse.occupant(HomeHouse.java:244)
at settlement.room.home.house.HomeHouse.vacate(HomeHouse.java:146)
at settlement.stats.colls.StatsHome$StatHome.set(StatsHome.java:528)
at settlement.path.finder.SFinderHome.find(SFinderHome.java:82)
at settlement.entity.humanoid.ai.home.AIModule_Home.getPlan(AIModule_Home.java:79)
at settlement.entity.humanoid.ai.main.AIModules.getNextPlan(AIModules.java:199)
at settlement.entity.humanoid.ai.main.AIManager.newPlan(AIManager.java:437)
at settlement.entity.humanoid.ai.main.AIManager.setNextState(AIManager.java:399)
at settlement.entity.humanoid.ai.main.AIManager.update(AIManager.java:322)
at settlement.entity.humanoid.Humanoid.update(Humanoid.java:220)
Astarvox 27 May, 2024 @ 3:56pm 
I've been trying to trace down a bug and I think it might be coming from your mod.

I'm not sure how to look further though as well, i'm not quite advanced enough to have an IDE yet. But maybe soon.
If you need anything else or can confirm this isn't from you let me know :)
I"ve had this happen in 2 saves now on fairly developed cities so i'm hoping to find a solution.
Cheers!
Had to split up comment sorry error log in next.
Duny  [author] 26 May, 2024 @ 3:46am 
@Guanglai Kangyi
You can find the save in AppData/Roaming/songsofsyx/saves/ (you can just type %AppData% in the file explorer to get in there) and then upload it with something like file.io or send it to me directly on discord
It's good if the crash can be bypassed but it's even better if I can manage to figure it out and fix it