Creating files/folders on Windows 7

For questions about using Classic.

Post » Tue May 11, 2010 10:58 pm

I have a little problem. The game I just released doesn't work properly on Windows 7.

The reason appears to be the following: it cannot create folders or files. It uses the INI object, the HashTable object and the File object (as well as the Path object) to create a folder for its save and temp files; without these, it cannot function. On Vista and XP, no problem; on 7, nothing happens. No folder, no nothing. (It's not the admin privileges, either.)

Any ideas or suggestions?
B
2
G
3
Posts: 50
Reputation: 950

Post » Wed May 12, 2010 3:55 am

Is a simple Construct game, with only the Path and File objects in the project, able to create a folder on Windows 7?

[quote="JonasKyratzes":vvnubo95]It's not the admin privileges, either[/quote:vvnubo95]
I guess this means it is not a permissions issue? I'm assuming you have tried it as admin and it fails as well.
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Wed May 12, 2010 9:50 am

[quote="scidave":33hzoxts]
I guess this means it is not a permissions issue? I'm assuming you have tried it as admin and it fails as well.[/quote:33hzoxts]

Yes, several people have tried it.
B
2
G
3
Posts: 50
Reputation: 950

Post » Wed May 12, 2010 10:23 am

Are the folder names always the same? Couldn't you just create them beforehand with the installer or something?
B
16
S
8
G
4
Posts: 136
Reputation: 3,144

Post » Wed May 12, 2010 10:53 am

I could. I've tried manually creating them, too - but the game still can't create any files, so the problem remains.
B
2
G
3
Posts: 50
Reputation: 950

Post » Wed May 12, 2010 12:04 pm

Well, this is certainly weird, because I'm on Windows 7 and for example INI file can create files, but not folders. File object can create folders just fine.

What version of Construct did you build your game in?

Also, for the record, when I try to run your game, it just stays in black screen and nothing happens. Also, as a recommendation, please don't make the game run fullscreened on first startup.
B
16
S
8
G
4
Posts: 136
Reputation: 3,144

Post » Wed May 12, 2010 4:51 pm

[quote="Daiz":16y94x8c]Well, this is certainly weird, because I'm on Windows 7 and for example INI file can create files, but not folders. File object can create folders just fine.

What version of Construct did you build your game in?

Also, for the record, when I try to run your game, it just stays in black screen and nothing happens. Also, as a recommendation, please don't make the game run fullscreened on first startup.[/quote:16y94x8c]

Hmmm. Weird. I'll run a couple more tests.

The current build was made with 0.99.94.
B
2
G
3
Posts: 50
Reputation: 950

Post » Wed May 12, 2010 6:52 pm

You mean 0.99.84 right?

Anyway, the game runs for me, looks like I was just having some sort of weird problem earlier. Though I can't say anything about the saving yet since I didn't get so far yet.
B
16
S
8
G
4
Posts: 136
Reputation: 3,144

Post » Wed May 12, 2010 7:54 pm

[quote="Daiz":37mmjds0]You mean 0.99.84 right?

Anyway, the game runs for me, looks like I was just having some sort of weird problem earlier. Though I can't say anything about the saving yet since I didn't get so far yet.[/quote:37mmjds0]

Yes, I do mean that. I am a silly man.

More tests indicate the problem may be with the path object. We'll see. It may all be solved soon.
B
2
G
3
Posts: 50
Reputation: 950

Post » Thu May 13, 2010 10:49 am

If you right click and 'Run as administrator', does it work? Windows Vista/7 have protected file systems, so if you try to write to a protected directory (eg. in Program Files), access is denied unless the application has administrative privileges. For example if your game is installed to Program Files and tries to write files to its own folder, it will be denied access.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests