Jump to content
Black Chicken Studios Forums
Sign in to follow this  
CarolineHart

Error when trying to load saves

Recommended Posts

My game recently crashed when attempting to load a save in-game. Upon restarting, I am unable to load any of my saves due to an error (Value cannot be null. Parameter name: key). I tried reinstalling the game and deleting the Cache_V3 folder, but no luck so far. I also do not think it is due to save-game corruption, since I am unable to load even known bug-free saves that I re-pasted into the savegame folder from a backup. Any tips on how to resolve this error?

Thanks for your help!

Share this post


Link to post
Share on other sites

CH;

If other, bug-free, saves do not load, I think our first suggestion would be to delete and then reinstall Academagia. This really sounds like corruption, if that's the case with known good saves!

Share this post


Link to post
Share on other sites

This is really strange - I uninstalled from the Steam menu, went into my Steam/commonapps folder and deleted the Academagia folder entirely, then reinstalled from Steam. But I'm still getting the error, even with the known uncorrupted saves. Maybe I'm missing something that I should also be deleting with the install?

Share this post


Link to post
Share on other sites

I just hope it wasn't a game with the wrong uploaded DLC because then deleting both directories would be the last coffin nail to her save when steam is on autoupdate.

Share this post


Link to post
Share on other sites

Finally had a chance to try this out today - unfortunately, it didn't work :( Here is the output from the log:

Parameter name: key
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Academagia.AI.AIStateBag.LoadFromStream(Stream stream)
   at Academagia.Storage.RepositorySerializer.Deserialize(Dictionary`2 contentObjects, String headerFileName, String dataFileName)
   at Academagia.Storage.RepositorySerializer.LoadGameFromFolder(String folderName, String cacheLocation, GameInfo info)
   at Academagia.Storage.RepositorySerializer.LoadGame(GameInfo gameInfo)
   at Academagia.UI.Views.LoadGameControl.Worker_DoWork(Object sender, DoWorkEventArgs e)
[Academagia 3.0.12.0] - [2017-07-09T12:52:21.3620926-04:00] - [Error] - System.ArgumentNullException: Value cannot be null.

 

And here's the log covering what happened during the crash (can't find any info logged on what cause it):

[Academagia 3.0.12.0] - [2017-07-09T12:50:00.0574418-04:00] - [Info] - System Error. Restarting application C:\Program Files (x86)\Steam\steamapps\common\Academagia The Making of Mages\Academagia.exe with clear cache
[Academagia 3.0.12.0] - [2017-07-09T12:50:01.1956459-04:00] - [Error] - System.NullReferenceException: Object reference not set to an instance of an object.

 

Any suggestions on possible reasons for this?

 

Share this post


Link to post
Share on other sites

I just had this problem where I couldn't load known good saves. I haven't played in a while and when I went to open my save, it crashed with a "system error".

After deleting the cache, I tried to load the save file again and it gave me an error saying it couldn't find a mod and crashed. (The exotic familiar mod) The mod was present in the mods folder.

Deleting the hidden GCC folder in the mods directory didn't solve it, but creating a new game with same mod configuration rebuilt the cache and let me open the save file. 

Shouldn't the game be able to rebuild the cache from the save?

(Also the game should have a "reset cache" button on the initial menu screen. Most users probably don't have the computer skills needed to manually delete the cache.)

Share this post


Link to post
Share on other sites

Rydenius;

Hear, hear on the cache deletion! That is actually on the roadmap, I think even for Year 1.

The save should have the information on the mods necessary to rebuild, but it can be finicky- let me note that to the Team, thank you!

Share this post


Link to post
Share on other sites

Hi Legate, I got the cache corruption issue again where the game crashes when I try to load a save that was just fine the night before. No updates to the game that I'm aware of. Version is: 3.0.12

Couple of things that might help track it down:

1. When it happens, the splash screen with the boat shows for the old (longer) time and not the new (shorter) time. 
2. When trying to create a new game to fix the cache, the Omen: Three Suns was missing. 

Also weird is the things I did to get it to work this time:

1. Start creating a new game, but back it out and exit before the final step. (Omen: Three Suns missing)
2. Load different save. Succeeded.
3. Without exiting, load save that failed to load initially. Succeeded.
4. Without exiting, start creating new game. (Omen: Three Suns is there.)

I'm guessing that part of this problem is that the mods aren't being properly loaded from the save if they are not already in the cache.

Also, just a guess and it might be coincidental, but could there be an issue with starting a session before midnight (12:00 AM) and then saving after midnight? 

The midnight thing might affect the random number generator as well, since (anecdotally) I've found that sometimes if a session passes through 12:00 AM, checks that should have a good chance (blue) sometimes always fail (20+ reloads), and my detection rate for trespassing and skipping seem to increase as well.

Share this post


Link to post
Share on other sites

Ry;

Hmmm- these factors don't *sound* like issues we've seen prior related to cache corruption, but I'll pass this to the Team. The steps you took to get it to work is of particular interest.

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×