Nyro
Greenhorn
So I'm trying to make a custom NPC, and this is my first time doing so (or really making any mod for Stardew Valley besides just simple sprite editing). Maybe it seems like much to be starting off with an NPC when new to modding, but I was using a tool from NexusMods called "Miss Coriel's NPC Creator", which is a pretty straight-forward tool for beginning to make a simple NPC. It uses Content Patcher.
So, I can get the NPC to load into the game, and the dialogue, gifting, etc. seems to work fine, but for some reason the schedule doesn't want to work? My NPC will load in at the starting location, but he will just stand there in the 0 facing position (facing up, with his back turned to the viewer) and will not move the entire day. It doesn't matter which day/season it is, as I've tried in different save files. I've tried moving his starting position, changing some areas he goes to, etc. but nothing makes any difference. Also, when I go to sleep at night, the game crashes before it can save. I'm assuming this might just be related to the schedule issue though and once I get it to work the crashes will (hopefully) cease.
I've tried looking it up, but can't seem to find anyone having the same issue as me. I've read somewhere that certain maps aren't "pathed" for NPCs, so I tried to make sure all the areas he goes to are normal NPC locations. I've looked at both the schedule guide on the wiki as well as looked at another custom NPC someone else made but I can't identify anything wrong with it. This is what I had for his schedule last night when I was trying to figure it out:
This is just a temporary schedule until I can get it figured out, which is why the fall and summer and spring and winter are the same. Originally I had him ending inside the Community Centre at the end of the day (because he doesn't have his own house at this point) but I took it out wondering if it was causing the issue.
(And if anyone is wondering about the Railroad - I was planning on changing his schedule later so that he only goes there after the railroad is accessible. The save files I've tried this on though either were in spring (so he doesn't go there) or after the railroad has been opened, so I don't think it's relevant to the issue).
Today, I replaced his spring schedule with exactly Abigail's rain schedule, and made his starting location in the SeedShop in a spot where other NPCs can access, to make sure if it was a problem with me putting him in areas the game can't allow NPCs to walk to. I tested it on a file where the day was in Spring, but not raining (so he wouldn't overlap Abigail). However, he still doesn't move, so it doesn't seem to be an issue with the areas I'm making him walk to...
I have also checked the content.json file to make sure it is loading in the schedule.json, which it is. So it shouldn't be a problem with that either. Unless there is some other step I am entirely missing, I don't know. SMAPI doesn't throw me any errors when running, and if there is some other error log that it creates I don't really know where to view that. The content.json file is also generated by the NPC creator tool I was using.
(Ignore the blank spaces, that's where the character's name is. I just blanked it out after taking the screenshot because it's a character from a series but I'm not planning on making the mod public... the part in the file that's cut off on the right is just the loves/likes/neutral/dislikes/hates which is a lot of text and shouldn't be affecting the rest of the file anyway.)
Lastly, I tried removing ALL my other mods (which I don't have a lot of anyway) except for the ones I needed like ContentPatcher, to see if it was some conflict with another mod, but that didn't make any difference either.
As for specs -
I am on Windows 10, the game version is 1.5.4, SMAPI version is 3.10.1, ContentPatcher version is 1.22.0
Any help to get this NPC to finally start moving would be greatly appreciated.
So, I can get the NPC to load into the game, and the dialogue, gifting, etc. seems to work fine, but for some reason the schedule doesn't want to work? My NPC will load in at the starting location, but he will just stand there in the 0 facing position (facing up, with his back turned to the viewer) and will not move the entire day. It doesn't matter which day/season it is, as I've tried in different save files. I've tried moving his starting position, changing some areas he goes to, etc. but nothing makes any difference. Also, when I go to sleep at night, the game crashes before it can save. I'm assuming this might just be related to the schedule issue though and once I get it to work the crashes will (hopefully) cease.
I've tried looking it up, but can't seem to find anyone having the same issue as me. I've read somewhere that certain maps aren't "pathed" for NPCs, so I tried to make sure all the areas he goes to are normal NPC locations. I've looked at both the schedule guide on the wiki as well as looked at another custom NPC someone else made but I can't identify anything wrong with it. This is what I had for his schedule last night when I was trying to figure it out:
This is just a temporary schedule until I can get it figured out, which is why the fall and summer and spring and winter are the same. Originally I had him ending inside the Community Centre at the end of the day (because he doesn't have his own house at this point) but I took it out wondering if it was causing the issue.
(And if anyone is wondering about the Railroad - I was planning on changing his schedule later so that he only goes there after the railroad is accessible. The save files I've tried this on though either were in spring (so he doesn't go there) or after the railroad has been opened, so I don't think it's relevant to the issue).
Today, I replaced his spring schedule with exactly Abigail's rain schedule, and made his starting location in the SeedShop in a spot where other NPCs can access, to make sure if it was a problem with me putting him in areas the game can't allow NPCs to walk to. I tested it on a file where the day was in Spring, but not raining (so he wouldn't overlap Abigail). However, he still doesn't move, so it doesn't seem to be an issue with the areas I'm making him walk to...
I have also checked the content.json file to make sure it is loading in the schedule.json, which it is. So it shouldn't be a problem with that either. Unless there is some other step I am entirely missing, I don't know. SMAPI doesn't throw me any errors when running, and if there is some other error log that it creates I don't really know where to view that. The content.json file is also generated by the NPC creator tool I was using.
(Ignore the blank spaces, that's where the character's name is. I just blanked it out after taking the screenshot because it's a character from a series but I'm not planning on making the mod public... the part in the file that's cut off on the right is just the loves/likes/neutral/dislikes/hates which is a lot of text and shouldn't be affecting the rest of the file anyway.)
Lastly, I tried removing ALL my other mods (which I don't have a lot of anyway) except for the ones I needed like ContentPatcher, to see if it was some conflict with another mod, but that didn't make any difference either.
As for specs -
I am on Windows 10, the game version is 1.5.4, SMAPI version is 3.10.1, ContentPatcher version is 1.22.0
Any help to get this NPC to finally start moving would be greatly appreciated.