I'm trying to create a mod using the Sprites in Detail tool but I'm running into an issue. The mod I made is functioning however when the new sprite is supposed to be triggered by passing the seasons from Spring to Summer the new sprite does not update. If I restart my game completely and reload the save then the new sprite is shown correctly. I have tried everything I can think of to get the new sprite to load without a restart but I can't figure it out.
I was wondering if anyone can help me figure out the issue.
I am currently having the same issue that Drapsheik mentioned in a comment earlier. The Giant Crazy Mustache Gus mod works correctly by itself on my end. However when I try to use a mod that I am working on using SpritesInDetail. I get the same error. I'm using the current version of Sprites In Detail. Stardew ver. 1.6.15, Content Patcher 2.6.1 and SMAPI 4.2.1.
Here is the error in SMAPI [SpritesInDetail] Mod crashed on entry and might not work correctly. Technical details: NullReferenceException: Object reference not set to an instance of an object. at SpritesInDetail.ModEntry.Entry(IModHelper helper) in C:\Users\alexd\source\repos\SpritesInDetail\ModEntry.cs:line 131 at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1862
I don't know if it's something on my end or if it's a version conflict but I've tried everything I can think of to fix it. I am not much of a programmer so this issue is beyond me.
This mod tool would be perfect for what I'm doing if I can get it to work. Thank you for all the hard work you did to make this tool.
It wasn't any version conflicts. The issue was with the code I wrote, it wasn't anything else. I'm just not good at at coding. I don't know if this will help anyone else but I managed to solve my issue.
Hi! I'm happy to use your very useful mod. Thank you for making such a wonderful mod!
I would like to use this mod in version 1.5.6 as well. In version 1.6, both v0.5.0 and v0.6.1 of the mod have fully detailed character sprites applied. However, in version 1.5.6, v0.5.0 was used, and the sprites are not applied.
For reference, I made a mod that replaces the sprites of my custom NPCs with detailed sprites, based on your "Giant Crazy Mustache Gus in the Rain" mod. It works fine in version 1.6, but I wonder why it doesn't work in version 1.5.6. Do you know the reason for the problem?
And there is another problem separate from the above. There is an error with the animated NPC character that appears when you click on the Custom NPC in the social tab. The animated character sprite is positioned in the upper left corner, out of the profile background. Is this happening because I have the settings wrong? If this is an error and you have time, I hope you will correct it. It's not a part that interferes with the gameplay, but it is slightly bothers me. If you could fix this, I would be very happy.
Hmmm strange that version v0.5.0 isn't working correctly for 1.5.6. v0.6.0/1 is definitely Stardew 1.6 exclusive, and 0.5.0 didn't look like it worked for me in 1.6.
As far as the social tab... are you seeing it in the wrong spot in the social tab itself, or is it when you open up another menu? I think I fixed an issue in v0.6.1 in regard to where it was rendered and how, but it is assuming specific values for the Origin and is very specific to the actual render location (I had to figure out the values for the Calendar as well), so if the sprite is appearing elsewhere I may need to make adjustments (the same may be the case in other mods).
If you provide me your example of the values you specified and the size of your sprite I can take a look
Thank you for your help! After downloading the "Custom NPC Crawling - SID and Scarletella" mod that I'm distributing, could you take a look at "[SID] Resize Crawling" inside the mod?
I have prepared SpritesInDetail 0.5.0. And I modified the Characters.json file to fit the format of version 1.5.6, and I started the game in version 1.5.6 without modifying "[SID] Resize Crawling". But the high-quality characters were not applied. Why is "[SID] Resize Crawling" not applied?
Second issue, as shown in the 11th picture attached to the mod distribution post, the character sprite is located in the upper left corner outside the profile background. Is there a way to fix this?
[SpritesInDetail] Mod crashed on entry and might not work correctly. Technical details: NullReferenceException: Object reference not set to an instance of an object. at SpritesInDetail.ModEntry.Entry(IModHelper helper) in C:\Users\alexd\source\repos\SpritesInDetail\ModEntry.cs:line 131 at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in /home/pathoschild/git/SMAPI/src/SMAPI/Framework/SCore.cs:line 1861
Does anyone know how the mod finds which sprite sheet to edit? I used this on the Mister Ginger mod because I wanted to see if i could turn Mister Ginger into Crazy Gus. This is was my content.json
And it worked. How did it find what sprite sheet to replace with crazy gus? theres no plain 'misterginger' file. I want to replace mister ginger's fish sprite sheet too, which is a seperate file. How do I get it to recognise that too?
hi!!! thank you for this mod. i have a question. what should i do if i want to change size of my custom npc, not sv character?? what should i write in "target"??
54 comments
I was wondering if anyone can help me figure out the issue.
This is the code in the content.json
{
"Sprites": [
{
"Target": "Characters/Abigail",
"FromFile": "assets/Abigail1.png",
"When": {
"Season": "spring"
}
},
{
"Target": "Characters/Abigail",
"FromFile": "assets/Abigail2.png",
"When": {
"Season": "summer"
}
}
]
}
Here is the error in SMAPI
[SpritesInDetail] Mod crashed on entry and might not work correctly. Technical details:
NullReferenceException: Object reference not set to an instance of an object.
at SpritesInDetail.ModEntry.Entry(IModHelper helper) in C:\Users\alexd\source\repos\SpritesInDetail\ModEntry.cs:line 131
at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1862
I don't know if it's something on my end or if it's a version conflict but I've tried everything I can think of to fix it. I am not much of a programmer so this issue is beyond me.
This mod tool would be perfect for what I'm doing if I can get it to work. Thank you for all the hard work you did to make this tool.
It wasn't any version conflicts. The issue was with the code I wrote, it wasn't anything else. I'm just not good at at coding. I don't know if this will help anyone else but I managed to solve my issue.
I would like to use this mod in version 1.5.6 as well.
In version 1.6, both v0.5.0 and v0.6.1 of the mod have fully detailed character sprites applied.
However, in version 1.5.6, v0.5.0 was used, and the sprites are not applied.
For reference, I made a mod that replaces the sprites of my custom NPCs with detailed sprites, based on your "Giant Crazy Mustache Gus in the Rain" mod.
It works fine in version 1.6, but I wonder why it doesn't work in version 1.5.6. Do you know the reason for the problem?
And there is another problem separate from the above.
There is an error with the animated NPC character that appears when you click on the Custom NPC in the social tab.
The animated character sprite is positioned in the upper left corner, out of the profile background.
Is this happening because I have the settings wrong?
If this is an error and you have time, I hope you will correct it.
It's not a part that interferes with the gameplay, but it is slightly bothers me. If you could fix this, I would be very happy.
v0.6.0/1 is definitely Stardew 1.6 exclusive, and 0.5.0 didn't look like it worked for me in 1.6.
As far as the social tab... are you seeing it in the wrong spot in the social tab itself, or is it when you open up another menu?
I think I fixed an issue in v0.6.1 in regard to where it was rendered and how, but it is assuming specific values for the Origin and is very specific to the actual render location (I had to figure out the values for the Calendar as well), so if the sprite is appearing elsewhere I may need to make adjustments (the same may be the case in other mods).
If you provide me your example of the values you specified and the size of your sprite I can take a look
After downloading the "Custom NPC Crawling - SID and Scarletella" mod that I'm distributing, could you take a look at "[SID] Resize Crawling" inside the mod?
I have prepared SpritesInDetail 0.5.0.
And I modified the Characters.json file to fit the format of version 1.5.6, and I started the game in version 1.5.6 without modifying "[SID] Resize Crawling".
But the high-quality characters were not applied. Why is "[SID] Resize Crawling" not applied?
Second issue, as shown in the 11th picture attached to the mod distribution post, the character sprite is located in the upper left corner outside the profile background.
Is there a way to fix this?
NullReferenceException: Object reference not set to an instance of an object.
at SpritesInDetail.ModEntry.Entry(IModHelper helper) in C:\Users\alexd\source\repos\SpritesInDetail\ModEntry.cs:line 131
at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in /home/pathoschild/git/SMAPI/src/SMAPI/Framework/SCore.cs:line 1861
Anyone else getting this issue?
I've updated the mod to hopefully work with 1.6 and the corresponding SMAPI, I suspect that to have been the cause of the crash.
to clarify this is for a cat/dog sprite
{
"Sprites": [
{
"Target": "Characters/MisterGinger",
"FromFile": "assets/CrazyMustacheGus.png",
"breathtype": "none",
},
]
}
And it worked. How did it find what sprite sheet to replace with crazy gus? theres no plain 'misterginger' file. I want to replace mister ginger's fish sprite sheet too, which is a seperate file. How do I get it to recognise that too?