Crash upon selecting saved game

Tyke

Greenhorn
EDIT: Figured it out! I didn't capitalize "cat" in xsi:type="Cat"
Totally forgot capitalization mattered in that particular piece of code even though it doesn't in other code.

Hello,

Would be very grateful to whomever can assist me with this.

Platform: Windows 7
Game version: 1.5.6 Hotfix #3
SMAPI log: https://smapi.io/log/37bf67e3d27249508f99fc53a563e881
Steps to reproduce: From the main menu I select "Load". It brings me to the saved game selection screen. I select my modded save, it briefly starts loading and then crashes. The game doesn't shut down or anything, it just restarts from the very beginning starting at the concernedape logo and heading back into the main menu screen.
Expected vs actual results: Self explanatory - trying to enter my saved game to play and it won't allow me to.

Probably relevant note considering the SMAPI log refers to the word 'cat' as being part of the problem: I did attempt at one point to adjust which pet I had on my farm by editing my world save file in notepad. When originally creating my new modded playthrough I had the golden cat selected as my pet (the one with the gold collar piece), but later on in the notepad file, I changed "catperson" to "dogperson" and changed xsi:type="cat" to xsi:type="dog". For the "whichpetbreed" code I think it was originally "0", but I adjusted that to either 1 or 2. For quite a while the game still ran no problem, despite my pet avatar in my menu screen showing a cat and the actual pet sprite in-game being a dog, but as of this morning, the saved game completely refuses to load. I tried changing everything I just mentioned back to 'cat' in the files. I forget if it was 0,1,2, or 3 as the original whichpetbreed value, but I tried loading the game with each value to rule that out as the problem, but it still crashes every time.

I'm not a pro with coding files by any means, only having basic knowledge of how to edit stuff, so I probably effed it up. Thanks again if anyone can help!
 
Last edited:
Thanks for the log, and posting all that extra information! It's very helpful!

The current error appears to be from your edit to revert your changes. The XSI type is case-sensitive; so "Cat" or "Dog", but not lower-cased versions:
Code:
11:35:29    TRACE    game    getLoadEnumerator('Honeysuckle_337035511')
11:35:29    TRACE    game    regular stream detected...
11:35:29    TRACE    SMAPI    Synchronizing 'Load_Deserialize' task...
11:35:29    TRACE    SMAPI       task complete.
11:35:29    TRACE    game    deserializeTask failed with an exception
11:35:29    ERROR    game    InvalidOperationException: There is an error in XML document (1, 61459).
 ---> InvalidOperationException: The specified type was not recognized: name='cat', namespace='', at <NPC xmlns=''>.
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read100_NPC_PatchedBy<Platonymous.PyTK.Rev>(XmlSerializationReaderSaveGame this, Boolean isNullable, Boolean checkType)
For the "catperson" section. It should stay "catperson", but for dogs it's set to "false" instead of "true".
Dog:

<catPerson>false</catPerson>


Cat:

<catPerson>true</catPerson>



You can edit that back, or if you'd like post your save here. I can fix that, and see if there's anything else wrong.
 

Tyke

Greenhorn
Thanks for the log, and posting all that extra information! It's very helpful!

The current error appears to be from your edit to revert your changes. The XSI type is case-sensitive; so "Cat" or "Dog", but not lower-cased versions:
Code:
11:35:29    TRACE    game    getLoadEnumerator('Honeysuckle_337035511')
11:35:29    TRACE    game    regular stream detected...
11:35:29    TRACE    SMAPI    Synchronizing 'Load_Deserialize' task...
11:35:29    TRACE    SMAPI       task complete.
11:35:29    TRACE    game    deserializeTask failed with an exception
11:35:29    ERROR    game    InvalidOperationException: There is an error in XML document (1, 61459).
---> InvalidOperationException: The specified type was not recognized: name='cat', namespace='', at <NPC xmlns=''>.
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read100_NPC_PatchedBy<Platonymous.PyTK.Rev>(XmlSerializationReaderSaveGame this, Boolean isNullable, Boolean checkType)
For the "catperson" section. It should stay "catperson", but for dogs it's set to "false" instead of "true".
Dog:

<catPerson>false</catPerson>


Cat:

<catPerson>true</catPerson>



You can edit that back, or if you'd like post your save here. I can fix that, and see if there's anything else wrong.
Thanks very much!
 
Top