Crash corrupted my .capx file :(

Forum Home Forum Home > Construct 2 Development > Bugs > Closed bugs
 Post Reply Post Reply
Author
5,497 Rep
Post Options Post Options   Quote gillenew Quote  Post ReplyReply Direct Link To This Post Topic: Crash corrupted my .capx file :(
    Posted: 02 Mar 2012 at 3:51am
Damn man... my game was going so well, suddenly a negligible error and crash corrupted my file, now I can no longer open the project in Construct2 ... this is making me very frustrated with the tool (which I insisted on buying this week).

I would like to help to recover the project, otherwise I will leave the tool: (

the error is this image below:


and this is the capx file
thegipiciu.capx

thegipiciu.capx.backup1

thx

Edited by gillenew - 02 Mar 2012 at 3:53am
Back to Top
5,194 Rep
Post Options Post Options   Quote SamCartagenaPR Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 7:01am
You need a XML editor and then delete or edit the code from line 941.. You can use NotePad or WordPad! Find the current folder on your computer...\\?\C:\Users\LUIZCARLOS\AppData\Local\Temp\cap121TJQ\Teste.caproj open it and edit on WordPad or NotePad. I had the same problem with my game when I deleted an event sheet with a global variable that I used in other event sheet. In my case, I only delete in the XML code the Actions and Conditions that was using the variable and save the XML code again... then the capx open but I had to redo the actions and conditions in Construc that was removed in the XML code! ... -.- then I realized that all I had to do was create a new global variable in the XML code instead of removing the actions and conditions that had the variable on it!

Edited by SamCartagenaPR - 02 Mar 2012 at 7:40am
Back to Top

Scirra Developer
78,301 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 7:06am
Here's the recovered project

.capx files are really just .zip files with a different name, containing a folder project. So you can rename it to .zip, extract all the files, and locate line 941 in Teste.caproj. There you can see the object "espinhosqsaem" has only two collision polygon points (there must be at least 3 to make a triangle), so I added another one at (0, 0) to fix the project, then saved as .capx again and it works.

Can you remember if you were doing something with the collision polygon of the object "espinhosqsaem" just before this happened? We'd like to fix this to prevent it ever happening again. @SamCartagenaPR, please also report any similar issues you find as bugs, we really want to fix these issues rather than having to resort to editing project files like this!

Edited by Ashley - 02 Mar 2012 at 7:08am
Back to Top
5,497 Rep
Post Options Post Options   Quote gillenew Quote  Post ReplyReply Direct Link To This Post Posted: 02 Mar 2012 at 12:23pm
Ohh thx for this, I was really very sad thinking about not being able to recover :(

thx so much @Ashley, I really didn't know about this three points polygon collision, but I'm sure didn't move anything in the object "espinhoqsai", so much that I had saved the project and compiled it for html5 several times after having programmed and created the "espinhoqsai" object.

I don't know how to add points in mask collision sprite editor.
Back to Top
5,194 Rep
Post Options Post Options   Quote SamCartagenaPR Quote  Post ReplyReply Direct Link To This Post Posted: 03 Mar 2012 at 7:06am
@Ashley, ok no problem, I'll do it next time!
@gillenew, in the sprite editor right click above any collision point, then select Add Point

Edited by SamCartagenaPR - 03 Mar 2012 at 7:07am
Back to Top
5,497 Rep
Post Options Post Options   Quote gillenew Quote  Post ReplyReply Direct Link To This Post Posted: 03 Mar 2012 at 11:59am
@SamCartagenaPR: It's impossible to do this on my own, I find it strange because even doesn't show the buttons mask collision or origin point.
They are "invisible" and I found just watching some videos, so I clicked in the place where they shall beand and it worked, but no icon on the buttons.

see screenshot:
- no icon


- with invisible icon


Edited by gillenew - 03 Mar 2012 at 12:02pm
Back to Top

Scirra Developer
78,301 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 04 Mar 2012 at 4:29pm
@gillenew, that's a known issue, so I'm closing this thread since the original issue appears to be resolved.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down