Issue Custom NPC won't move from starting location (schedule issue?)

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.
 

mouse

Farmer
It would probably save some time to just zip and upload your entire mod, along with a SMAPI log from the last time you saw the problem in-game :)
 

Nyro

Greenhorn
Okay well . . . as I was about to put together the zip and stuff I decided to try once again changing the capitalization of "Schedule.json" in the content.json file to "schedule.json" (which is how the actual file is titled). I thought I did this already before wondering if it was a capitalization issue with the .json files but it didn't change anything before, when I resaved it later it (the NPC maker program) switched it back. So, it might have just been a combination of wrong capitalization and maybe using spots on the map / starting locations that disallowed the NPC to move. Because after I did this and started up the game again, he was following Abigail's rain schedule (walking around in the seed shop).

Apologies for posting over what appeared to be a simple issue. Hopefully now I can get his schedule to work properly. ^^;
 

Eniitime

Greenhorn
I...am actully having the same problem. I think I am putting in wrong numbers and my npc wont show up in the mod.
 

Johndead

Greenhorn
I had this same issue with my custom NPC. I checked capitalization and everything in my content file but nothing seems to work? Any help appreciated
 

ignisring

Greenhorn
I had this same issue with my custom NPC. I checked capitalization and everything in my content file but nothing seems to work? Any help appreciated
is your NPCs schedule complete? they'll just stand in their starting position if they don't have a complete schedule for all 4 seasons. i would implement a temporary schedule for every season and then try again.
 

Johndead

Greenhorn
is your NPCs schedule complete? they'll just stand in their starting position if they don't have a complete schedule for all 4 seasons. i would implement a temporary schedule for every season and then try again.
Just did, didn't seem to work. Beforehand I've tried just putting in an existing NPC's schedule and that didn't work, so I'm thinking it's something to do with the content file or something, but I've checked and triple checked and there's nothing like any spelling errors and my files are all in the correct places.
 

Johndead

Greenhorn
Just did, didn't seem to work. Beforehand I've tried just putting in an existing NPC's schedule and that didn't work, so I'm thinking it's something to do with the content file or something, but I've checked and triple checked and there's nothing like any spelling errors and my files are all in the correct places.
Update! I just deleted and redid the content json file (So I was right!) and its working fine. Thank god lol
 

mrsovern

Newcomer
Update! I just deleted and redid the content json file (So I was right!) and its working fine. Thank god lol
That didn't work for me and I don't understand (sad). is there something I'm doing wrong here? Heres what I have in my content json.
{
"Format": "1.30.0",
"Changes": [
{
"Action": "Load",
"Target": "Characters/AM",
"FromFile": "assets/AM-v2(spring-character).png"
},
{
"Action": "Load",
"Target": "Portraits/AM",
"FromFile": "assets/AM-v3(spring-portraits).png",
},
{
"Action": "Load",
"Target": "Characters/Dialogue/AM",
"FromFile": "assets/dialogue.json"
},
{
"Action": "Load",
"Target": "Characters/Dialogue/MarriageDialogueAM",
"FromFile": "assets/marriageDialogue.json"
},
{
"Action": "Load",
"Target": "Characters/schedules/AM",
"FromFile": "assets/schedule/schedule.json"
},
{
"Action": "EditData",
"Target": "Data/NPCDispositions",
"Entries": {
"AM": "adult/neutral/outgoing/positive/female/datable/null/Town/spring 13//BusStop 20 23/Am"
}
},
{
"Action": "EditData",
"Target": "Data/NPCGiftTastes",
"Entries": {
"AM": "Are you sure? This means a lot! Thank you!/330 60 258 82 155 169 206 614 815/Ooh I can't wait to make this @!/176 180 182 442 139 192 260/Hey @, thanks.$s/296 72 165/This sucks./167 168 170 171 172 441/Hey thank's you didn't need to get me a gift!//"
}
},
{
"Action": "EditData",
"Target": "Data/EngagementDialogue",
"Entries": {
"AM0": "I can't believe I am about to be married!$1",
"AM1": "Te amo, mi amor! I can't wait to be married to you.$6"
}
},
]
}

And here's what I have in my schedule json (I might have taken it from Abigails thing)
{
"rain": "900 SeedShop 9 5 0/1100 SeedShop 13 20 0/1300 SeedShop 39 5 0/1500 SeedShop 7 9 2/1900 SeedShop 6 4 0/2200 SeedShop 1 9 3",
"fall": "900 SeedShop 39 5 0/1030 SeedShop 2 20 3/1300 BusStop 22 5 2/1700 SeedShop 3 6 0/1930 SeedShop 1 9 3",
"winter": "900 SeedShop 39 5 0/1030 ScienceHouse 5 19 1/1430 SeedShop 3 6 0/1930 SeedShop 1 9 3",
"summer": "900 SeedShop 39 5 0/1030 Railroad 30 45 0/1400 Mountain 49 31 1/1740 SeedShop 3 6 0/1930 SeedShop 1 9 3",
"spring": "900 SeedShop 39 5 0/1030 SeedShop 2 20 3/1300 Town 73 54 2/1630 SeedShop 3 6 0/1930 SeedShop 1 9 3"
}

//(0 = up, 1 = right, 2 = down, 3 = left)
 

Chancecomic

Newcomer
{
"Action": "EditData",
"Target": "Data/NPCDispositions",
"Entries": {
"AM": "adult/neutral/outgoing/positive/female/datable/null/Town/spring 13//BusStop 20 23/Am"
}
{
"rain": "900 SeedShop 9 5 0/1100 SeedShop 13 20 0/1300 SeedShop 39 5 0/1500 SeedShop 7 9 2/1900 SeedShop 6 4 0/2200 SeedShop 1 9 3",
"fall": "900 SeedShop 39 5 0/1030 SeedShop 2 20 3/1300 BusStop 22 5 2/1700 SeedShop 3 6 0/1930 SeedShop 1 9 3",
"winter": "900 SeedShop 39 5 0/1030 ScienceHouse 5 19 1/1430 SeedShop 3 6 0/1930 SeedShop 1 9 3",
"summer": "900 SeedShop 39 5 0/1030 Railroad 30 45 0/1400 Mountain 49 31 1/1740 SeedShop 3 6 0/1930 SeedShop 1 9 3",
"spring": "900 SeedShop 39 5 0/1030 SeedShop 2 20 3/1300 Town 73 54 2/1630 SeedShop 3 6 0/1930 SeedShop 1 9 3"
}
Try changing the schedule so the first position/command for each schedule matches your NPC's default map and position.
So "spring": "900 BusStop 20 23/1030 SeedShop 2 20 3" might work.
I've been messing around with my own custom NPC for the last few hours, and it seem that if the two aren't matching, the schedule breaks.
I hope it works!
 

mrsovern

Newcomer
Try changing the schedule so the first position/command for each schedule matches your NPC's default map and position.
So "spring": "900 BusStop 20 23/1030 SeedShop 2 20 3" might work.
I've been messing around with my own custom NPC for the last few hours, and it seem that if the two aren't matching, the schedule breaks.
I hope it works!
I downloaded a mod that was made to fix NPC schedule problems and stuff and it worked, but If I ever try making it again without that mod I'll try that.
 

Velocityissin

Farmhand
Try changing the schedule so the first position/command for each schedule matches your NPC's default map and position.
So "spring": "900 BusStop 20 23/1030 SeedShop 2 20 3" might work.
I've been messing around with my own custom NPC for the last few hours, and it seem that if the two aren't matching, the schedule breaks.
I hope it works!
Thank you so much, I was stuck on it for almost the whole day and the schedule finally worked.
 
Top