tModLoader

tModLoader

Roommates
This topic has been locked
Pixus 31 Mar, 2024 @ 5:00pm
"Require a chair for each roommate" setting not working
I've been playing with the option to require a chair for each roommate turned on and it's causing an issue that refuses to let the player reorganize NPC housing or even let NPCs spawn into your world, with the game saying this in its log:

[19:54:53.128] [Main Thread/WARN] [tML]: Silently Caught Exception: System.InvalidOperationException: Sequence contains no matching element at System.Linq.ThrowHelper.ThrowNoMatchException() at Roommates.Roommates.RequireCorrectChairCount(orig_RoomNeeds orig, Int32 npctype) in Roommates.cs:line 32 at Hook<System.Boolean Roommates.Roommates::RequireCorrectChairCount(Terraria.On_WorldGen+orig_RoomNeeds,System.Int32)>(Int32 ) at SyncProxy<System.Boolean Terraria.WorldGen:RoomNeeds(System.Int32)>(Int32 ) at Terraria.WorldGen.MoveTownNPC(Int32 x, Int32 y, Int32 n) in tModLoader\Terraria\WorldGen.cs:line 1172 at Terraria.Main.DrawInterface_38_MouseCarriedObject() in tModLoader\Terraria\Main.cs:line 38289 at Terraria.Main.<SetupDrawInterfaceLayers>b__1627_35() in tModLoader\Terraria\Main.cs:line 38009 at Terraria.UI.GameInterfaceLayer.Draw() in tModLoader\Terraria\UI\GameInterfaceLayer.cs:line 45 at DMD<System.Void Terraria.Main:DrawInterface(Microsoft.Xna.Framework.GameTime)>(Main this, GameTime gameTime) at Hook<System.Void DragonLens.Content.GUI.Tooltip::Reset(Terraria.On_Main+orig_DrawInterface,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime ) at DragonLens.Content.Tools.Visualization.HitboxSystem.DrawHitboxes(orig_DrawInterface orig, Main self, GameTime gameTime) in DragonLens\Content\Tools\Visualization\Hitboxes.cs:line 82 at Hook<System.Void DragonLens.Content.Tools.Visualization.HitboxSystem::DrawHitboxes(Terraria.On_Main+orig_DrawInterface,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime ) at SyncProxy<System.Void Terraria.Main:DrawInterface(Microsoft.Xna.Framework.GameTime)>(Main , GameTime ) at Terraria.Main.DoDraw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 53588 at Terraria.Main.Draw_Inner(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52866 at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52853 at Microsoft.Xna.Framework.Game.Tick() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 562 at Microsoft.Xna.Framework.Game.RunLoop() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 878 at Microsoft.Xna.Framework.Game.Run() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 419 at Terraria.Program.RunGame() in tModLoader\Terraria\Program.cs:line 266 at Terraria.Program.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 240 at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs) in tModLoader\Terraria\Program.cs:line 213 at Terraria.MonoLaunch.Main_End(String[] args) in tModLoader\Terraria\MonoLaunch.cs:line 78 at Terraria.MonoLaunch.<>c__DisplayClass1_0.<Main>b__1() in tModLoader\Terraria\MonoLaunch.cs:line 64 at System.Threading.Thread.StartCallback()

I am aware DragonLens is mentioned in there, but I got impatient and used it to spawn in town NPCs to see what would happen, in which the game bugs out.
< >
Showing 1-6 of 6 comments
Blank 31 Mar, 2024 @ 6:50pm 
I've ran into the same issue of NPCs not moving in or re-spawning.

I have 10 NPCs who has not spawned despite meeting the criteria with plenty of suitable housing. Currently testing to see if the chair option is what is causing it or the mod itself.
Blank 31 Mar, 2024 @ 7:10pm 
Update: Turning off the chair option has solved the issue, NPCs are re-spawning and moving in now
NotLe0n  [developer] 1 Apr, 2024 @ 1:42am 
Ah yeah it's an issue in my code. I'm gonna fix that
NotLe0n  [developer] 5 Apr, 2024 @ 12:06pm 
This exception is fixed now, I don't know if this fixes the NPCs not spawning issue. I think it does, but please tell me if it's still an issue.
Stepahich 6 Apr, 2024 @ 5:00am 
Originally posted by NotLe0n:
This exception is fixed now, I don't know if this fixes the NPCs not spawning issue. I think it does, but please tell me if it's still an issue.
theres still NPCs not spawning issue with chair option enabed
NotLe0n  [developer] 6 Apr, 2024 @ 7:54am 
Originally posted by Stepahich#BloodRust:
Originally posted by NotLe0n:
This exception is fixed now, I don't know if this fixes the NPCs not spawning issue. I think it does, but please tell me if it's still an issue.
theres still NPCs not spawning issue with chair option enabed
I just tested on a new world without any other mod and NPCs like the nurse, dryad, merchant or demo spawned normally. Can you tell me which NPCs weren't spawning?
< >
Showing 1-6 of 6 comments
Per page: 1530 50