Issue Event Script Errors

AnnieMason

Greenhorn
Good morning. I've had several Event Script Errors recently, but I've just rolled with it as it's only a casual playthrough while I test mods to see if I like them or not! I've tried looking at what could be causing the errors when they've happened just in case I could see an easy fix, but I can't quite see what the problem is and how to fix it, and it's starting to get a little irritating now as it seems to be almost every major heart event! If someone could please have a look at my SMAPI log and help I'd be very grateful. Thank you.

https://smapi.io/log/1822f62f84bc4fa39bf8b0f6f523c608
 
Thanks for the log.
Uh, for some reason it says you're missing the file for Jodi.
Try resetting your content files first: https://stardewvalleywiki.com/Modding:Player_Guide/Troubleshooting#Reset_your_content_files

Code:
:39:16    ERROR    game    Event script error: The content file was not found.
07:39:16    ERROR    game    In event #94 for location SamHouse
07:39:16    ERROR    game    On line #0: 50s
07:39:16    ERROR    game    Microsoft.Xna.Framework.Content.ContentLoadException: The content file was not found.
 ---> System.IO.FileNotFoundException: Could not find file 'C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Content\Characters\Jodi·.xnb'.
File name: 'C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Content\Characters\Jodi·.xnb'
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor_PatchedBy<Platonymous.PyTK>(FileStream this, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at Microsoft.Xna.Framework.TitleContainer.PlatformOpenStream(String safeName) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\TitleContainer.Desktop.cs:line 29
   at Microsoft.Xna.Framework.TitleContainer.OpenStream(String name) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\TitleContainer.cs:line 37
   at Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String assetName) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 276
   --- End of inner exception stack trace ---
   at Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String assetName) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 289
   at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String assetName, Action`1 recordDisposableObject) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 319


07:39:16    TRACE    SMAPI    Content Patcher edited Data/Events/SamHouse (for the 'Stardew Valley Expanded' content pack).
07:39:16    TRACE    SMAPI    Content Patcher edited Data/Events/SamHouse (for the 'Xtardew Valley - SVE version' content pack).
07:39:16    TRACE    SMAPI    Content Patcher edited Data/Events/SamHouse (for the 'LewdDew Valley' content pack).
You do have a couple mods editing events at SamHouse, but try the reset first.
 

AnnieMason

Greenhorn
Thank you for your reply. I tried the 'Verify Integrity of Game Files' on steam earlier this morning and it didn't solve it sadly. I noticed it saying about the missing file when I started looking closer at the SMAPI log again a few hours ago. I checked all the other logs I had that showed the same type of error for different events, as I'd saved them to a txt file to see if at some point I could work out what was wrong, and they all said they were missing a character file for that particular event, and yet when I went to the location it said it was missing from, there was always a file there!

The only difference I could see which I wondered if it would cause the error was that SMAPI said the missing file (in this instance) was the Jodi·.xnb file, whereas the file in the folder location says Jodi.xnb (without the "·" immediately after Jodi)! Would that cause that error, because all the other instances of apparent missing files were the same?

Anyway, for now I've found a solution that seems to be working! I just need to test a few more events to be sure! I removed the Event Repeater mod a couple of hours ago as I started wondering if maybe that was causing the 'event' errors I was having, and obviously also the mods which depended on it (which were all Xtardew mods), and so far all those errors seem to be gone (fingers crossed)! I can live without those mods if I have to. Maybe I'll try them again if they get a future update? For now though, as long as my game stays error free I'm happy.

Once again, thank you for your reply. I appreciate you taking the time to help. Hope you have a good day.
 
Oh, nice catch! I totally missed that.
Yea, that little dot basically makes that Jodi a whole new NPC.

Since you said removing it fixed the errors; it sounds like Xtardew is providing the data for those characters, and that specific event that's breaking.
Perhaps it was missing an extra dependency or something. Or a typo in the mod; you may want to report it to the mod author.

No prob; glad I could help point you in the right direction. And, thanks, hope you have a lovely day as well.
 
Top