An odd (and probably pointless) problem

New releases and general discussions.

Post » Sat Nov 17, 2007 11:36 am

I decided to try using Construct's physics engine to make a fancy screen saver, since a screen saver is basically just an .exe labeled as an .scr. And hey, what do you know... it works.

Just one problem though, and that's when I install the .scr in my system32 folder and go to select it in my screen properties, the name doesn't show up in the screen saver list properly. Instead, it's labeled as a number. The first time I did it, it showed up as "3." I exported another .exe, making sure to label all my layouts and such properly, thinking that maybe it was just because I left the program title blank in Construct, but then when I checked my screen saver list again it showed up as "4."

I can select this number and set it as my screen saver, and it works fine, but it was kinda bugging me that it didn't show the actual name.

Anyway, I opened up the .scr in Resource Hacker to check the string tables and see if it was pulling the 4 from one of them. The only listing in the string table is this:

[code:2wrptwbe]
STRINGTABLE
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
{
1, "4"
}
[/code:2wrptwbe]

I guessed that this was where Windows pulls the name of the application from, so I changed the string with ResHack. Sure enough, it showed up in the screen saver list properly... but changing the table also made my screen saver crash.

Should Construct be filling this spot on the string table with the app name when it exports an .exe? Is this a bug, or am I just being fussy?
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat Nov 17, 2007 2:47 pm

Heh, I haven't gotten round to doing screensavers. That's actually the number of plugins stored in your EXE, so changing it is definitely going to mess up your application. I didn't know Windows would take that as the screensaver name :)

Maybe I'll tweak it to put the application name there instead, and put the count somewhere else, so it might work for screensavers.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Sat Nov 17, 2007 6:46 pm

Ah, I see. Well, I was way off. But hey, we both learned something today :)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests