[r64] Image file "left open" when imported

Bugs will be moved here once resolved.

Post » Sat Oct 29, 2011 8:30 am

During the c2 contest I had to import sequences and sometimes modify them. But almost each time I tried to overwrite the files, windows scolded me telling me they was "used or left open".
I had to either create other files or close c2.

c2: r64 64bit
system: windows server 2008 r2Yann2011-10-29 08:33:48
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri Nov 04, 2011 3:40 pm

I don't think we can get around this, Windows is holding the image files open. You probably shouldn't modify them while C2 is open anyway, it might confuse it... so I'm going to close this as won't fix.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Nov 04, 2011 4:20 pm

Hmm, if I may add something - C2 keeps the files hostage even between sessions - you can close C2 (saving as a single file so your images should be contained in there). Then you open C2 later, try to export your image files and still get "files in use" the message from the other app. One would assume the files were imported and that's it?

This seems super-ridiculous and is quite annoying when you have to close C2 every time you make a little edit to your animation sequence and want to re-import.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Fri Nov 04, 2011 4:21 pm

To be sure we are talking about the same thing, I didn't use the "save as project" and then change a the png of a sprite.
I used the "save as single file" during all the production of the game.

So I guess changing a png I imported, to reimport a modified version afterward shouldn't confuse C2.
As far as I understand how C2 works, once you load a png C2 isn't supposed to keep any link to the file... is it ?
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri Nov 04, 2011 5:45 pm

Saving as a single file is no different from saving as a project file in terms of files being used - when you use a .capx, C2 extracts it to an ordinary folder project in your temporary files and reads it from there. So don't expect the files-in-use to be any different just because you saved as a single file.

I'm not sure I understand though - unfortunately Windows likes to keep image files open when asked to load image files, but it should release them once the program is closed, and any images you exported via the save icon in the picture editor should be free to edit (I just tested it and it seemed to work). So is it a reasonable workaround to save as a folder project then just close C2 if you want to edit the images in something else?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Nov 04, 2011 6:04 pm

Ashley - I can understand a temp folder and the files being in use there... BUT - if I have a set of images in the same folder as C2, load them into an animation, then close C2 and later open it again. And THEN as you try to overwrite the files it says they are in use... Does this mean C2 actually somehow stores the paths and filenames of all the imported frames?
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Fri Nov 04, 2011 6:13 pm

Yeah it was just to make things clear about the fact that it wasn't a project image file that I tried to change but the image files from which I created the sprite by loading them.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri Nov 04, 2011 7:45 pm

Ok, just so several opinions are represented on this issue here's how I see the situation:



Yes, the guys from the chat apparently haven't got anything better to do.

Edit: I have been told that some people exist who are unaware of what the awesomely dressed C2 references. Unthinkable! So here's the explanation.Somebody2011-11-04 19:51:47
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Fri Nov 04, 2011 9:14 pm

I think you're forgetting an important step as illustrated here.

Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Fri Nov 04, 2011 9:26 pm

But why would Windows take a file after a program restart? So I suspect it's still C2 trolling us.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests