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

Hi there, I've recently started a new game in the Steam version of Academagia and I'm in the same situation--the game crashed while trying to load a save from within the game, and now all of my game saves refuse to load while giving the error "Value cannot be null. Parameter name: key". I've only been playing for 2 in-game weeks so it's no big deal if I have to trash these saves and start over, but I would like to take steps to ensure this doesn't happen again. However, I'm a Mac user playing in Boot Camp and I have very little familiarity with Windows, so even something simple like finding the Steam game files is a challenge for me. So is there anything I can do to prevent this problem from reoccurring (what's the "wrong uploaded DLC"?), and if I need to delete any files beyond uninstalling the game from within Steam, can someone kindly explain how to do that? 😓

Share this post


Link to post
Share on other sites

Schwarzbart was referring to the DLC, which may not be the root of this issue- can you send us the log file? Unfortunately, you will have to navigate 'Windows' in order to find it! :)

Share this post


Link to post
Share on other sites

@Toast For a short time  there was a wrong DLC delivered with the game at Steam, but that is a long time ago already. Only for games started with this DLC there could be the problem I mentioned as the used DLC would be no where to get anymore but the game would need the right DLC to reconstruct the temporary files.

Legate I really hope once Year 2 is out the team mange to find the time to fix this save game error and the adventure CTD error for Year 1.

Share this post


Link to post
Share on other sites

Thanks for replying. I'd be happy to send the log file but I fear I may have already deleted it, as I have already uninstalled and reinstalled the game in Steam. If you tell me where to find it, I will send it along should this happen again.

So to be clear, I have 2 options when starting the game, "Summer's First Blush" and "The First Touch of Summer," should both of them be selected or just one?

Share this post


Link to post
Share on other sites

You have to select only one because the newer one contain everything of the old one + new content + fixes, the old one is just there to continue past games. I think Summer's Blush is the new one but not 100% sure my self right now.

In Windows 7 & 10 the log is at the hidden folder ProgramData > Academagia and is called Academagia.log

Have a look at the 1st posting of the link below for other troubleshoot help 

 

Share this post


Link to post
Share on other sites

OK... so I restarted the game using only the Summer's Blush mod. Got halfway through the year, then upon attempting to reload a save from within the game I got a terrible dark magics crash. Attempting to load any save gave the error "Unable to find mod: Summer's Blush" although that mod was definitely there. Following the above post by Rydenius I created a new game but backed out of creation process after the first step. Without exiting the game, attempted to load previous saves. Previous saves will now load properly. So... it works, hooray. But also, do you want me to provide logs to assist in addressing the issue?

Share this post


Link to post
Share on other sites

Isn't this save bug from toast now the one that can get past when you start a new game and load your old game from there?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...