Version 2.0.0 has been released! This follows a suggestion from dyanosis about breaking the compatibilities into their own files with subkeys. I decided to follow this to:
Make it easier on myself with updating and versioning
Easier on all of you so that you don't need to update just for a new compatibility or update to a compatibility you don't use
Cleaner documentation with each compatibility version so that it's focused just on that specific mod
Cleaner and smaller example-content.json and configuration options
The previous version (1.4.2) will continue to work but will not be updated further. I recommend you download the version of this mod that fits with the farmhouse mod that you may be using!
Some other changes that made it into 2.0.0:
Fixed the placement for ATC default positioning
A toggle to enable/disable the mod in its entirety (this is in all compatibility versions)
As always, if you see something that doesn't work, have a suggestion or need to get in touch, submit a bug report or leave a comment! Thank you all and hope you have a great time playing with the update!
----------------------------------
What I'm working on for the next version
Looking into why spouses spawn in the void and how to stop it (#3)
Adding option to fix height of default spouse rooms when it's too short (specifically in ATC) (#5)
See how it might be possible to add support for recolors (#6)
Hey, I've been tinkering with this for a few hours, and I keep getting the same error over and over again.
[PolyamorySweet Rooms] This mod failed in the GameLoop.GameLaunched event. Technical details: NullReferenceException: Object reference not set to an instance of an object. at PolyamorySweetRooms.ModEntry.GameLoop_GameLaunched(Object sender, GameLaunchedEventArgs e) in C:\Users\Apryll\source\repos\PolyamorySweetRooms\ModEntry.cs:line 269 at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in /home/pathoschild/git/SMAPI/src/SMAPI/Framework/Events/ManagedEvent.cs:line 101
I only know a little bit of coding knowledge, but I noticed that its trying to go to a user that doesn't exist? from what I've gathered beyond the missing/incorrect user, is that It's saying that an object reference isn't set to an object. I've only had this error since I added this mod, and I really don't want to have to go digging for a different one that works. any help would be appreciated.
the only way i found (and i had to get help from a coding friend to figure this out) is to literally ask an ai to "fix" it. there's literally one invisible space and i don't remember exactly where it is.
To darkzirconia; Both the developer of the mod and starter of this thread wasn't fully helpful to diagnose the problem so here's what you should do;
First install the mod from the Source > Then open manifest.json files for 2 directories and change Version number to 2.0.3 from 2.0.1 if you're playing on the Vanilla Farm House (developer put wrong versioning of other farmhouses) > now head to (PSR)... Folder and find example-content.json file > Copy it and rename the copy to content.json, this is the source of the error as SMAPI expects the content.json but developer leave it to your interpretation > Now READ the file carefully and make necessary changes to the file and DELETE unnecessary content lines > now open https://smapi.io/json/none on your browser and feed the content.json you edited into there > Site will Re-Format the text and REMOVE the invisible gaps he's talking about > Copy Paste corrected code into content.json file, save and close > You're done and upon next Stardew Modded running, game no longer will show any errors for the thing user shazorwyn posted here.
But even if you past that error, this mod is still in-game erroneous as I only chosen the "Lower Left" template in example-content.json file to edit it into content.json file and now game do "Not" have access to the spouse room even if it's location is right with no paths to access it. It can be due to Game has changed a lot as of 1.6.15 as this mod belongs to 1.6.7-8 era due to its last update date being April 2024. So if you do my instructions, you'll get past the initial SMAPI error but this mod isn't truly working for 1.6.15 at all. I'll try other combinations that may have non-blocked paths but it looks like, I'm going to Park this mod (add . to the beginning of the folder name, SMAPI will skip loading it) until it's updated for 1.6.15 content properly.
jencarlos, I tried your fix and got this SMAPI error message:
[PolyamorySweet Rooms] Error adding SpouseName room data, template start pos {X:30 Y:33}: System.ArgumentException: An item with the same key has already been added. Key: SpouseName at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at PolyamorySweetRooms.ModEntry.GameLoop_GameLaunched(Object sender, GameLaunchedEventArgs e) in C:\Users\Apryll\source\repos\PolyamorySweetRooms\ModEntry.cs:line 273 [PolyamorySweet Rooms] Error adding SpouseName room data, template start pos {X:49 Y:33}: System.ArgumentException: An item with the same key has already been added. Key: SpouseName at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at PolyamorySweetRooms.ModEntry.GameLoop_GameLaunched(Object sender, GameLaunchedEventArgs e) in C:\Users\Apryll\source\repos\PolyamorySweetRooms\ModEntry.cs:line 273
I've been trying to get this mod to load without giving me a big red error message in the console, and I think I've done everything right, but I just want to make sure: Do I have to be married and have the fully upgraded house before I use this mod? Cause I normally add my mods before starting a new game, so I haven't done either yet. If so, that should probably be added to the description or the pinned comment. If not, I'm just messing something up.
Can someone give me coordinates that will work with Seasonal Garden Farmhouse v2, its fully upgraded but im using polyamarysweet so the spouse rooms are clipping over the farmhouse map
No idea what's the problem, but trying to put the location of Sophia's room from SVE while using the 'Lnh's First Farmhouse' mod seems to cause a bit of an issue by turning the room empty and putting her in a wall. I've tries following the instructions provided, but can' do anything about it. Posted below is the smapi log, the file, its instructions, and an image. Can anyone help? https://smapi.io/log/99b75f66b4974086b7942c8a8b76d7f3 file:///C:/Users/eyada/Downloads/Genesis_12-18-2024_75114614.png file:///D:/SteamLibrary/steamapps/common/Stardew%20Valley/Mods/Custom%20Spouse%20Room%20Locations%20-%20LFF-21525-2-0-3-1713928840/Custom%20Spouse%20Room%20Locations%20@LFF/(PSR)%20Custom%20Spouse%20Room%20Locations/example-content.json file:///D:/SteamLibrary/steamapps/common/Stardew%20Valley/Mods/Custom%20Spouse%20Room%20Locations%20-%20LFF-21525-2-0-3-1713928840/Custom%20Spouse%20Room%20Locations%20@LFF/(PSR)%20Custom%20Spouse%20Room%20Locations/content.json
hello, I would like to know if someone could give me the x and y coordinates of the room that I mark in the picture ): or how to do it myself, it is the first farm lnh it does not appear in the tutorial added by the moderator, or if so, I can not find it ):
I'll give you the simplest step to begin and you can experiment with it later.
Here's what you have to do:
Copy and paste the example-content.json at the same exact mod folder, Folder name: (PSR) Custom Spouse Room Locations
Rename the pasted example-content.json (Should be named example-content(1).json or something similar) into content.json
Open the content.json using a text editor application, I'm sure it's possible to edit a json file with a notepad or notepad++
Delete every code on the file and paste the code I provided below into the content.json file opened on the notepad
Mess around with the coordinates to place the spouse room to wherever you like it to be
NOTE: I'm not a modder nor understand anything about modding Stardew, I just downloaded this mod yesterday, I haven't mess around with it as much but this step is what I did and it worked for me.
For this step, I have fully upgraded and renovated vanilla farmhouse, the code below should place the spouse room on the right or around the attic for this step (might be unreachable without no clip so you have to really mess around with the coordinates), Screenshot.
In my case, the original coordinate from the mod place the spouse room on the right of the upgraded extra corner room, I'm still unable to find a tool to see coordinate for the vanilla farmhouse so I can't provide it on this step so you really have to mess around with it.
ADDITIONAL NOTE: If you don't know how coordinates work, you can always start at X:0 and Y:0, X for horizontal coordinate and Y for vertical coordinate, X:0 should place the room at left and Y:0 at top so X:0 and Y:0 = top left of the house.
421 comments
Version 2.0.0 has been released! This follows a suggestion from dyanosis about breaking the compatibilities into their own files with subkeys. I decided to follow this to:
The previous version (1.4.2) will continue to work but will not be updated further. I recommend you download the version of this mod that fits with the farmhouse mod that you may be using!
Some other changes that made it into 2.0.0:
As always, if you see something that doesn't work, have a suggestion or need to get in touch, submit a bug report or leave a comment! Thank you all and hope you have a great time playing with the update!
----------------------------------
What I'm working on for the next version
You can keep up with all of what's in the works or being looked at in the Github Issues list for this mod.
And thank you for the continued love, support, and feedback! <3
[PolyamorySweet Rooms] This mod failed in the GameLoop.GameLaunched event. Technical details:
NullReferenceException: Object reference not set to an instance of an object.
at PolyamorySweetRooms.ModEntry.GameLoop_GameLaunched(Object sender, GameLaunchedEventArgs e) in C:\Users\Apryll\source\repos\PolyamorySweetRooms\ModEntry.cs:line 269
at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in /home/pathoschild/git/SMAPI/src/SMAPI/Framework/Events/ManagedEvent.cs:line 101
I only know a little bit of coding knowledge, but I noticed that its trying to go to a user that doesn't exist? from what I've gathered beyond the missing/incorrect user, is that It's saying that an object reference isn't set to an object. I've only had this error since I added this mod, and I really don't want to have to go digging for a different one that works. any help would be appreciated.
{
"data": [
{
"name": "Haley",
"startPos": {
"X": 40,
"Y": 0
},
"spousePosOffset": {
"X": 42,
"Y": 3
},
"shellType": "custom_spouse_room_open_right"
},
[
}
that had been making it an invalid file that was causing all of my problems.
First install the mod from the Source > Then open manifest.json files for 2 directories and change Version number to 2.0.3 from 2.0.1 if you're playing on the Vanilla Farm House (developer put wrong versioning of other farmhouses) > now head to (PSR)... Folder and find example-content.json file > Copy it and rename the copy to content.json, this is the source of the error as SMAPI expects the content.json but developer leave it to your interpretation > Now READ the file carefully and make necessary changes to the file and DELETE unnecessary content lines > now open https://smapi.io/json/none on your browser and feed the content.json you edited into there > Site will Re-Format the text and REMOVE the invisible gaps he's talking about > Copy Paste corrected code into content.json file, save and close > You're done and upon next Stardew Modded running, game no longer will show any errors for the thing user shazorwyn posted here.
But even if you past that error, this mod is still in-game erroneous as I only chosen the "Lower Left" template in example-content.json file to edit it into content.json file and now game do "Not" have access to the spouse room even if it's location is right with no paths to access it. It can be due to Game has changed a lot as of 1.6.15 as this mod belongs to 1.6.7-8 era due to its last update date being April 2024. So if you do my instructions, you'll get past the initial SMAPI error but this mod isn't truly working for 1.6.15 at all. I'll try other combinations that may have non-blocked paths but it looks like, I'm going to Park this mod (add . to the beginning of the folder name, SMAPI will skip loading it) until it's updated for 1.6.15 content properly.
[PolyamorySweet Rooms] Error adding SpouseName room data, template start pos {X:30 Y:33}:
System.ArgumentException: An item with the same key has already been added. Key: SpouseName
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at PolyamorySweetRooms.ModEntry.GameLoop_GameLaunched(Object sender, GameLaunchedEventArgs e) in C:\Users\Apryll\source\repos\PolyamorySweetRooms\ModEntry.cs:line 273
[PolyamorySweet Rooms] Error adding SpouseName room data, template start pos {X:49 Y:33}:
System.ArgumentException: An item with the same key has already been added. Key: SpouseName
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at PolyamorySweetRooms.ModEntry.GameLoop_GameLaunched(Object sender, GameLaunchedEventArgs e) in C:\Users\Apryll\source\repos\PolyamorySweetRooms\ModEntry.cs:line 273
https://smapi.io/log/99b75f66b4974086b7942c8a8b76d7f3
file:///C:/Users/eyada/Downloads/Genesis_12-18-2024_75114614.png
file:///D:/SteamLibrary/steamapps/common/Stardew%20Valley/Mods/Custom%20Spouse%20Room%20Locations%20-%20LFF-21525-2-0-3-1713928840/Custom%20Spouse%20Room%20Locations%20@LFF/(PSR)%20Custom%20Spouse%20Room%20Locations/example-content.json
file:///D:/SteamLibrary/steamapps/common/Stardew%20Valley/Mods/Custom%20Spouse%20Room%20Locations%20-%20LFF-21525-2-0-3-1713928840/Custom%20Spouse%20Room%20Locations%20@LFF/(PSR)%20Custom%20Spouse%20Room%20Locations/content.json
it does not appear in the tutorial added by the moderator, or if so, I can not find it ):
Here's what you have to do:
NOTE:
I'm not a modder nor understand anything about modding Stardew, I just downloaded this mod yesterday, I haven't mess around with it as much but this step is what I did and it worked for me.
For this step, I have fully upgraded and renovated vanilla farmhouse, the code below should place the spouse room on the right or around the attic for this step (might be unreachable without no clip so you have to really mess around with the coordinates), Screenshot.
In my case, the original coordinate from the mod place the spouse room on the right of the upgraded extra corner room, I'm still unable to find a tool to see coordinate for the vanilla farmhouse so I can't provide it on this step so you really have to mess around with it.
ADDITIONAL NOTE:
If you don't know how coordinates work, you can always start at X:0 and Y:0, X for horizontal coordinate and Y for vertical coordinate, X:0 should place the room at left and Y:0 at top so X:0 and Y:0 = top left of the house.
Code:
{
"data": [
{
"name": "Haley",
"startPos": {
"X": 40,
"Y": 0
},
"spousePosOffset": {
"X": 42,
"Y": 3
},
"shellType": "custom_spouse_room_open_right"
}
]
}