Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Final build problems on my friends computer

Author
Message
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 15th Jan 2009 14:14 Edited at: 15th Jan 2009 14:15
Hey guys!

I haven't mentioned this for a long time, I must have just forgotten it the whole time. Anyway, here is my problem: Whenever my friend receives my latest games and tries to execute them, a blue box turns up and has some text and two buttons on it:



When he clicks "Visit us", the exe shuts down and opens the game creators website.

When he clicks cancel, the exe closes, WITHOUT opening the game creators website.

But it never, EVER, runs the game.

He is using vista, I think some weird quad-8GHz processor, 16 GB of ram and a 512GB hard disk (You need all of this crap to get vista running at a reasonable speed. He told me his computer takes 24 minutes to load all of his data after it has started up, which takes another 7 minutes...).

So, is this some joke from lee? Because it is built into the executable... How can I fix this?

TheComet

Peachy, and the Chaos of the Gems

Robert The Robot
19
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 15th Jan 2009 17:01 Edited at: 15th Jan 2009 17:01
Two suggestions:

1) Have you changed the default DB.exe icon? If so, then you need the icon to be 32x32pixels, in 16 colours (Might be 256, but I think it's 16). If you supply a different type of icon, then the exe will be completely messed up and you see the effect you've described.

2) Are you using DB1.20? If so, then the exe needs to create a folder called "<drive exe is on>:\dbtemp" when it runs. If it cannot create that folder, then the program will behave in the manner you described.

I once tried to run an exe that had been burnt to a cd-r, straight from disc. It went funny because it was unable to create "D:/dbtemp", but it worked fine when I took it over to the C drive.

Hope this helps!

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
Caleb1994
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 15th Jan 2009 17:39
off topic:

How would you change the icon? i did it once but i can't find it! aaahhhh!
Code eater
18
Years of Service
User Offline
Joined: 17th Feb 2008
Location: Behind You!
Posted: 15th Jan 2009 18:51
I also had this when I ran a program I wrote on a Vista machine. Can't remember the specs or anything. sorry.

thanks,,,

codeeater
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 15th Jan 2009 20:05
Too bad... You must have eaten them!

Peachy, and the Chaos of the Gems

Robert The Robot
19
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 16th Jan 2009 16:39 Edited at: 16th Jan 2009 16:40
@Caleb1994
I use ResHacker - have a read of this topic, look at the next to last post for a download.

@TheComet
I've had another thought - after what CodeEater said, I'm thinking this is purely to do with Vista so... are you building exes with DB1.2 or DB1.13?

If you are using DB1.13, then when an exe is run it will attempt to write to the "C:WindowsTemp" folder, which in Vista is locked down unless you are logged in as an Administrator or something (you need certain security privilages to access it). With DB1.20, it creates a folder called "C:dbTemp" which it can always access (replace "C" with the drive letter that the exe is located on).

Hope this helps - I haven't experienced any of this as I'm still using good ol' Windows XP, but I seem to remember reading about something like this shortly after DB1.2 came out.

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 16th Jan 2009 17:15 Edited at: 16th Jan 2009 17:17
OK, I will try it out. I am using both versions, but because of DLL's mainly v1.2. Thanks a lot, Robert!

BTW, how do you know all of this stuff?

theComet

Peachy, and the Chaos of the Gems

Robert The Robot
19
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 16th Jan 2009 17:46 Edited at: 16th Jan 2009 17:49
Quote: "BTW, how do you know all of this stuff?"

Actually, there were loads of posts about DBC1.20 when it came out - one big feature was the new "Vista-compatability" that it brought. A lot of it was taken up with the need for the D3drm dll to be supplied with final exes, but one thing that was mentioned was the "lockdown" of the Windows temp folder.

I just read, and remembered!


[Edit] Just found this, part way through the first sticky on the DBC board:
Quote: "DBC is now compatible with Vista's UAC, so you no longer have to expect your users to run your program in admin mode.
DBC no longer requires the windowstemp folder. It uses a folder named dbTemp on the root, which Vista allows. It is recommended that you clear this folder and delete it when your application closes, just as a cleanup operation. The following code can be used to do this when your application closes:
sdir$=left$(windir$(),3)+"dbTemp"
if file exist(sdir$+"_virtual.bmp")=1 then delete file sdir$+"_virtual.bmp"
if file exist(sdir$+"_virtual.dat")=1 then delete file sdir$+"_virtual.dat"
if file exist(sdir$+"_virtual.jpg")=1 then delete file sdir$+"_virtual.jpg"
if path exist(sdir$)=1 then delete directory sdir$"


"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 17th Jan 2009 00:18
Shame it doesn't store its stuff under <user>/AppData, but I guess it's better than nothing.

Login to post a reply

Server time is: 2026-07-06 17:12:17
Your offset time is: 2026-07-06 17:12:17