Was working on my game, went to preview, got an error. I didn't mind it and just restarted C2. Now I can't load my game. I get the following error and then C2 crashes.
Construct 2 Check failure
Check failure! This is probably a bug:
Cannot find project file for animation frame
Function: void __cdecl AnimationFrame::Load(const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)
Build: release 69 (64-bit) checked
Component: Construct 2 IDE
(Last Win32 error: 3)
You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.
Abort Retry Ignore
Please help! I can PM the .capx if necessary.
Also, if I click retry or ignore then C2 doesn't crash, but I get like 3 other errors. 1 refers to a possibly corrupted .png used in one of my background objects. I didn't understand the others.
I have a previous version I can restore but it's about 3 days old. There's quite a bit missing. (I should start working slower :P) Also there's no guarantee I won't end up getting the same error a while after restoring it, right?
Send me your .capx and I can recover it, can you remember what you did immediately before this happened?
Develop games in your browser. Powerful, performant & highly capable.
Dunno exactly how much info you need, so here's exactly what I did a few minutes before the error started appearing.
I had just started on the winter level ("Level_4" layout name). I had copied over some essential objects from Level_1. I then added a level image from Tiled. For some odd reason its size made C2 distort the image in the preview, so I deleted it, resized the image, then added it again. I then went to add the music (Level_1_Intro , Level_1_Main) but discovered I already did that, so I deleted the duplicates. I then added the events to play & loop the music at the start of the layout, then went to preview.
It was at this time I got an error and the preview wouldn't load. I think I just lost my internet connection so I shrugged it off, saved my project, and closed C2. When I went to open it later I got the error I posted above and now the game won't load.
Sending you the .capx now. Thanks for looking into it!
The title says "Solved", what was the problem?
Seems some animation frames for one of my objects got corrupted or something and were removed. All I had to do was click "Retry" which let me bypass the errors and replace the animation frames.
One of the errors referred to a possibly corrupted .png used by 'bird', which was the affected object. Keep that in mind if this ever happens to you!
Thanks again to Ashley for figuring this out.