when saving to temp file

Bugs will be moved here once resolved.

Post » Wed Feb 22, 2012 3:21 pm

like i said, it was a file from the website, i opend it and did some work on it, it wasn't saved anywhere before, so i wouldnt know where to look, but when pressing ctrl-s i expected to get a save dialog
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Thu Feb 23, 2012 2:04 am

Ah, I see - does it happen on files saved normally to Documents though?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,554

Post » Sun Jul 29, 2012 12:37 am

Got Error: 'Error saving project' with 'Message: Failed to move .capx.tmp to .capx!' a number of times in this 'How to make a Platform game' tutorial especially when I made a complete platform on page 8 of the tutorial and tried saving the file a few times.

In all but one case, I corrected the problem by making a small change in the layout such as moving a 'Tile' instance back-and-forth and then I was able to save the project.

In one case, I had to save the file to another filename and then save it again to the previous filename, but again I was able to save the file with no loss of work.

For the sake of completeness I am posting this comment in the tutorial at: http://goo.gl/lKXg0.
B
28
S
4
G
3
Posts: 70
Reputation: 4,879

Post » Sun Jul 29, 2012 12:18 pm

@jwjb - which folder are you saving to? Are you sure you have permission to access that folder?

This error occurs if Construct 2 is unable to delete and then rename a file. So it is very strange if this fails. The most likely cause would probably be that you don't have full permission to access the folder you are saving to.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,554

Post » Sun Jul 29, 2012 2:03 pm

@Ashley, I am running Construct 2 as an administrator on my laptop and saving to my own reverse domain folder designation to keep everything organized with the many engines I have used in the past at: C:\Users\John\Desktop\source\projects\com\scirra\tutorials.

In light of your post, even though I am logged into my laptop as an administrator, I just went to C:\Program Files\Construct 2\Construct2.exe and set Construct2.exe Properties > Compatibility tab > Privilege Level -> Run this program as an administrator.

Hopefully, this will force my administrative privileges for running Construct 2 if for some reason running as an administrator does not work as default.

I am running Windows 7 Home Premium (6.1.7601 Service Pack 1 Build 7601 ) and have not noticed this problem like I did running Windows Vista in the past where I had User Account Control (UAC) problems all the time.

After making this change I see 'Construct 2 (Administrator)' displayed in the top of the Construct 2 program window which I did not see before "forcing" this program to run in Administrative mode.

Thanks for your reply Ashley and for letting me know if there is anything I should be doing more than what I just set in the UAC and I will let you know if I continue to have this problem after making the above change.

I am really enjoying using Construct 2 r95 since July 19 and purchasing it on July 25. Running a quick search in my evernote account I see that I originally ran across Construct 2 this past November 22, 2011 and again on December 15, 2011 when I was looking at various other platforms (Corona, Moai, Unity, Unreal, Stencyl, Game Salad, and others) in the early adopter stage of Construct 2 to augment / replace what I was doing in Flash and wish I had started using Construct 2 back then as it seems a lot more intuitive to me which I hope to use for quickly prototyping and then building games.
B
28
S
4
G
3
Posts: 70
Reputation: 4,879

Post » Sun Jul 29, 2012 11:58 pm

@Ashley, I have been using Construct 2 for a number of hours today and have not had any problems after following the procedure in my previous post so it looks like it is smooth sailing here on out for this issue. Thanks.
B
28
S
4
G
3
Posts: 70
Reputation: 4,879

Post » Mon Jul 30, 2012 7:48 pm

@Ashley, I just wanted to let you know that I had a repeat of the error today 'Error saving project' with 'Message: Failed to move .capx.tmp to .capx!' with all the conditions the same as before.

So apparently running Construct2.exe as an administrator per the above posts has not fixed this issue in my case.

As before, I had to save the file to another filename and then save it again to the previous filename, but again I was able to save the file with no loss of work.

Again, no hurries or worries here, but I did want to post this to the forum for completeness sake.
B
28
S
4
G
3
Posts: 70
Reputation: 4,879

Post » Mon Jul 30, 2012 7:50 pm

@jwjb - I'm afraid I'm at a complete loss as to how this could happen. It seems Construct 2 with administrator privileges is unable to delete a file from the Desktop folder (which it should have permission to access anyway).

I can only suggest that you try to find a way to reliably reproduce the problem and send me the project and steps to reproduce so I can see if I can get it to happen my end.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,554

Post » Mon Jul 30, 2012 10:00 pm

@Ashley, as the problem is intermittent at best it will be hard to do this I think, but if I can reliably reproduce the problem I will email you a shared link where you can download the project which is just my file working through the Building a platform game - a beginner's guide tutorial.

By the way, in the interim is there a log file that Construct 2 logs errors to which might give you an error signature to help with your analysis.

On a completely different error, but for the same .capx file I just received this error when I tried to run the game which I cannot fix by saving to another filename etc as I did before:

'HTML5 exporter - Error during export: Cannot open file 'C:\Users\John\AppData\Local\Temp\c2-2BD38M\html5\data.js'

So then I saved this .capx and tried to open it and and I got another error:

'Failed to load texture - Error loading texture 'C:\Users\John\AppData\Local\Temp\cap2MF79F\Animations\Flooring\Default\000.png': Failed to read image file data. This may indicate a corrupt PNG file in the project directory. The image will not be able to be displayed in the editor.'

To this end, I am emailing you a shared link where you can download the .capx file so you can see where I am at now.
B
28
S
4
G
3
Posts: 70
Reputation: 4,879

Post » Tue Jul 31, 2012 6:55 am

@Ashley, Still not able to reliably reproduce the problem and not sure what was the problem that caused the errors in my posts above and in the files I emailed you the shared link for, but I think I will do the following workaround which I have been using for the last few hours with no recurrence of any errors.

Whenever I save a file, I will do a 'Save As Single File' which I will append the date (YYYYMMDD) and time (HHMM) to giving me a filename such as: file_YYYYMMDDHHMM which should alleviate 'Error saving project' with 'Message: Failed to move .capx.tmp to .capx!' since it seems to me a new .capx will be created every time it is saved without having to save the same .capx over and over again which seems to be one of the ways the problem crops up especially for files I have saved over and over again many times without exiting Construct 2 which was the scenario for the most recent case.

Then at the end of the day, I can just delete all but the latest .capx.

Again, no hurries or worries here, just wanted to post the latest for completeness sake.

Construct 2 Rocks!
B
28
S
4
G
3
Posts: 70
Reputation: 4,879

PreviousNext

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests