Songs of Syx

Songs of Syx

Apartment Buff (v66)
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
Guanglai Kangyi 25 May, 2024 @ 2:43pm 
So I loaded an old save before I upgraded all my houses, some are still upgraded but I'm no longer crashing, how would i give you that save cause I still have the brokey one if you wanted to troubleshoot. I'm thinking it might be a different mod, I also have Furniture Buff, Shapes Extended, Spoilage Plus and 2x Food and Raw resource.
Duny  [author] 25 May, 2024 @ 9:52am 
@Guanglai Kangyi
Well I don't modify any of those classes so I guess this is another case of the base game not being able to handle houses getting more occupants. Not as easy a fix as I had hoped. Any chance I could get a save file?
Guanglai Kangyi 25 May, 2024 @ 12:51am 
cont

at settlement.room.main.ROOMS.render(ROOMS.java:746)
at settlement.tilemap.SRenderer.renderTheRest(SRenderer.java:45)
at settlement.tilemap.TileMap.renderTheRest(TileMap.java:123)
at settlement.main.SETT.render(SETT.java:645)
at settlement.main.SETT.render(SETT.java:498)
at view.sett.SettView.render(SettView.java:125)
at view.main.VIEW.render(VIEW.java:292)
at snake2d.Updater.render(Updater.java:83)
at snake2d.Updater.run(Updater.java:58)
Guanglai Kangyi 25 May, 2024 @ 12:51am 
He hasn't got back to you yet, but I added your mod to my main save and broke it, here are my log
java.lang.ArrayIndexOutOfBoundsException: 213554
at settlement.entity.ENTETIES.getByID(ENTETIES.java:458)
at settlement.room.home.house.HomeHouse.occupant(HomeHouse.java:237)
at settlement.room.home.house.HomeHouse.resCount(HomeHouse.java:354)
at settlement.room.home.house.HomeHouse.resourceAm(HomeHouse.java:339)
at init.race.home.RaceHomeClass.floor(RaceHomeClass.java:150)
at settlement.room.home.house.Sprites$11.render(Sprites.java:365)
at settlement.room.main.RoomSingleton.render(RoomSingleton.java:72)
at settlement.room.home.house.InstanceHome.render(InstanceHome.java:57)
Duny  [author] 17 May, 2024 @ 1:15pm 
@H A L #9000
I'm not getting any crashes on my end so I have no idea what's causing it.
Mind sending me the part just under ERROR LOG in the log the crash generates? (including the lines that start with "at")
H A L #9000 16 May, 2024 @ 3:26pm 
I added your mods to an existing save and it was causing a crash after a few minutes running in the game. After a process of elimination I noticed that it was this mod causing it. I suppose it isn't the wisest thing to add mods to existing saves in general, but I just wanted to let you know that.
Duny  [author] 5 May, 2024 @ 8:37am 
@눈꽃
I tried but I'm afraid it's not as simple as modifying the values I'm already modifying, as such high numbers cause issues with how the game handles people moving into and out of housing, among other things. No matter how much I tiptoe around it it keeps causing crashes.
Personally I think of the basements and second floors as clumsily added on top of an already existing house rather than perfectly planned floors identical to the main floor.

@krunjar
We do love neat even numbers. Dunno why we can't just choose any number as the immigration cutoff though, we shouldn't need modded housing for this. Which gives me a new mod idea...
krunjar 5 May, 2024 @ 4:24am 
This should really read .. house and longhouse buff. Because it makes the house 10 and the longhouse 20 fully upgraded. And that gives me nice neat little decimalized housing numbers for auto immigration cutoff XD
설화 5 May, 2024 @ 2:20am 
Could you please create a mod that increases to 5 -> 9, 9 > 15, 18 > 30? I don't like the 1.5x jump every time a layer is added. If there are 3 layers like 1B, 1F, 2F, I think we should have 3x the habitable population from the beginning.
Duny  [author] 4 May, 2024 @ 9:13am 
@ZaGeR
There isn't (not yet at least, it should allow more things by the time the game comes out of EA), that's why I had to use scripts. If you want to do any of the many things the txts don't allow you'll have to deal with java programming.
ZaGeR 4 May, 2024 @ 8:30am 
@Duny
"Why do you want to edit it?"

I don't. I created several mods for myself but I used to work only with txt-files.

Also I've already thought about increasing houses capacity and changing some another things connecting to houses but never saw how to use scripts.

Is there any way to change capacity using only txt without scripts?
Duny  [author] 4 May, 2024 @ 7:44am 
@ZaGeR
Yes it's pretty much just the jar file, it was a simple change but required modifying the game's code which thankfully the dev lets us do. You can simply extract the contents of the .jar and open said contents in something that can read java classes to see what I changed and edit it yourself if you so wish.
Why do you want to edit it?
ZaGeR 4 May, 2024 @ 7:19am 
Is this just jar file? How to open it and edit?
Duny  [author] 3 May, 2024 @ 8:26am 
@WeWeKeNeMen
Are you playing on the v66 beta? I don't know if the mod works on v65.
WeWeKeNeMen 3 May, 2024 @ 8:02am 
it shows as unsupported mod?
AlexJones1776 3 May, 2024 @ 6:20am 
Aw man i designed my city around apartments without knowing they were inferior.
Welp, time to rebuild half a map worth of buildings.
Skarborr 3 May, 2024 @ 12:04am 
Finally, apartments really got the short end of the stick when the privacy stat got removed.
Thanks for the great mod.