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 Professional Discussion / DarkBasic Pro Free simple code not working, keeps making 100 tmp files ??

Author
Message
Zaxtor99
14
Years of Service
User Offline
Joined: 27th Jul 2011
Location: Boise, Idaho, USA
Posted: 5th Aug 2011 00:54
Okay, I'm playing around with DB Pro now, went through some tutorials and trying to replicate a tutorial EXACTLY.

I have started a new project, and in that project folder inside of the DBPro folder I have created a media folder and put in my two PNG files.

It won't execute tho, and keep highlighting different lines as having errors, but I have checked and rechecked all the code and everything looks good to me. I have also checked the media file names and placement and everything looks good.

I'm hoping someone can check my code out here and go AH HA and show me where I am messing up.




- Zaxx
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th Aug 2011 00:59
You'll need to post the error messages. From what you have posted so far:

1. Have you saved the project (i.e have a dbpro file?)
2. Is 1024x768x32 a valid resolution?

Zaxtor99
14
Years of Service
User Offline
Joined: 27th Jul 2011
Location: Boise, Idaho, USA
Posted: 5th Aug 2011 01:05 Edited at: 5th Aug 2011 01:06
Error reads as
"Could not create C:\Program Files\The Game Creators\Dark Basic Professional\Projects\Space Blast\Application.exe"

And also on the warning tab I get:
" No icon is specified for the final exe "

Is this because it's the free version and I need to run it a different way perhaps?

And the resolution should be fine as it is what my computer is set to right now.

{shrugs}


- Zaxx
Bluespark
15
Years of Service
User Offline
Joined: 18th Mar 2011
Location:
Posted: 5th Aug 2011 01:34
I made a working version using your same code.
To compile, you must open the DBPRO file, not the DBA file.
Download it and let me know whether it works.
Mr Bigglesworth
18
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 5th Aug 2011 03:02
It sounds like windows is preventing dbp from creating the exe. Try putting your project in "C:\" instead of "Program Files"
Zaxtor99
14
Years of Service
User Offline
Joined: 27th Jul 2011
Location: Boise, Idaho, USA
Posted: 5th Aug 2011 08:51 Edited at: 5th Aug 2011 08:53
I dunno.

Thanks for all your responses. I simply decided to delete all the stupid tmp files DBPro was making in the project folder, gave my computer a reboot, and loaded up the same code (after saving before the reboot)... and all is good again.

Sometimes I guess even computers need to "reset" or "clear their heads" hehe.

No, I'm sure it was something stupid now that I think about it. Perhaps another DarkBasic project was running in the background that I didn't see in the task bar or something like that.. that maybe got cleared out when I rebooted my computer.

(shrugs)

Anyhow, thanks for the replies here.

One thing that I am LOVING about DarkBasic already is the overly friendly community here. I'm gonna put some money (and effort) into DarkBasic and it will likely be as much or perhaps more for the people HERE then the DarkBasic tools. I can find "tools" anywhere. {grin}

Anyhow thanks people.


- Zaxx

Login to post a reply

Server time is: 2026-07-10 14:34:38
Your offset time is: 2026-07-10 14:34:38