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 / Can I make a STAND ALONE single file executable with Free version of DB Pro??

Author
Message
Zaxtor99
14
Years of Service
User Offline
Joined: 27th Jul 2011
Location: Boise, Idaho, USA
Posted: 29th Jul 2012 14:19
I thought I had read somewhere that you didn't need to purchase DB Pro to make a stand alone executable.. a single file that includes all the media and graphics files.

I cannot seem to create such a file however, as it seems to require the media folder to work.. and this is not a "stand alone" executable.

Do I need to purchase DB Pro to do this?

Thanks, Zaxx
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 29th Jul 2012 15:49 Edited at: 29th Jul 2012 15:49
The editor has a setting somewhere that allows you to do that. I use indigo and have this option:



TheComet

Zaxtor99
14
Years of Service
User Offline
Joined: 27th Jul 2011
Location: Boise, Idaho, USA
Posted: 30th Jul 2012 00:42 Edited at: 30th Jul 2012 00:46
I'd sure love to know how to make that stand alone executable that includes all the media files and all... Because I've looked at all the menus I see, and don't see any such option anywhere.

Now that I've logged in, I see your photo of those options.. Uhhh. Where and how do I get the "indigo" or how can I do the same with the just basic free DB Pro that you download right from the Game Creators website?

If I gotta buy the program, I will, the $49.99 bundle deal is a great deal, but I'm kinda short of 'fundage' at the moment.


- Zaxx
Maindric
16
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Zaxtor99
14
Years of Service
User Offline
Joined: 27th Jul 2011
Location: Boise, Idaho, USA
Posted: 30th Jul 2012 09:54
Thanks for that link Maindric, but I had already seen that thread and it doesn't help me at all.

I'm used to DB Classic that makes it so easy to make a stand-alone executable that actually works, I guess.

I have tried downloading Indigo and using that, I change the option as he showed above to "EXE with media". I have also tried making a copy of my media folder inside the Game Creators/DB pro/Projects folders so it's a project only folder on my desktop... but the problem is when I try to copy the exe to anywhere but inside the media folder to run it, it always gives me an error that it cannot find the media files.

I'm sure It's something small that I'm missing, but I just don't know what it could be.

If someone could give me a step by step process on how to do that either from Indigo or the DB Pro free version, it would be very helpful to maybe see what I am missing here.


Thanks!


- Zaxx
Dimis
15
Years of Service
User Offline
Joined: 12th Jun 2011
Location: Athens, Hellas
Posted: 31st Jul 2012 20:55
Maybe this helps. Make a folder just for your project and save all your project files into that folder. Make sure that you also compile your .exe in that folder too. Inside that folder make another folder where you put all your media files only.
Lets say for example that you have created: "c:\project\media\"
and that you have an image file "image1.png" in the media folder.
Compile your .exe, including the image as media, from the media folder.
When you load that image from your program make sure that you use

and not

That could be the reason for your problem.
Also if you have many media files to include don't select them all at once. Select less that 10 files every time, because sometimes files are skipped if you select many of them.


Zaxtor99
14
Years of Service
User Offline
Joined: 27th Jul 2011
Location: Boise, Idaho, USA
Posted: 1st Aug 2012 07:44 Edited at: 1st Aug 2012 08:45
Okay thanks Dimis, that fixed it.

^5 Much appreciated.

ADDED 15 MINUTES LATER:

UGH. WTH. Soooo frustrating. I used View --> Toolbars and then selected Properties to see the properties of the compiled project and change the changed application in the properties to EXE.

I had already moved all my project files from the C:/Programs/The Game Creators/DarkBasic Pro/Projects folder to a new folder as you suggested which I put right on my desktop. I made a media folder which I placed all my media files into, and I copied my .dbpro program file to the folder, so I had just my .dbpro file and my media folder with all media files inside. I also changed my program code that read the files from load "sound1.wav",1 to load "media\sound1.wav",1 as you advised.

And when I compiled it, the compiled project now appeared in my new project folder. I drug it out of the folder and to the desktop as it should have been my standalone executable. The first several times I double clicked it, it worked flawlessly no problems.

I made no changes to this icon, its properties or anything else. After a few moments, my kid tried to double click it to play it, and it came up with the same old "Runtime Error 3002: object could not be found at line 192". I tried it again, same error.

So, I deleted it off my desktop, double checked that the property settings were the exact same in my DBPro program, and compiled it again. Drug it out to my desktop again, dbl click, same error.

Deleted executable. Closed DBPro. Opened DBPro again, re-compiled with same setting that worked before. No dice. Changed application to all 4 possible settings, alone, media, installer, and exe. Nothing is working now to create the stand alone exe without getting the 'no media' runtime error now.

First of all, can anyone possibly explain why the standalone exe I made worked 4 or 5 times fine, then suddenly stopped and started getting the runtime error? And how to I do this? What am I missing here, because this is getting beyond frustrating.

I am running Windows 7 64 bit, and I have changed the compatibility on both DBPro and the exe I made to "Run Program as Administrator". I have also checked for any updates to the free DB Pro I downloaded from the Game Creators website (june 2010 I do believe) and if I use the options to check for updates, it tells me that no updates are available.

I never had problems compiling an executable with DB Classic, but after playing with DB Pro, I really hope I don't have to go back to the Classic just to compile my projects successfully.


Thanks,


- Zaxx
Dimis
15
Years of Service
User Offline
Joined: 12th Jun 2011
Location: Athens, Hellas
Posted: 1st Aug 2012 13:03
That is strange, if there was a problem then the program shouldn't run from the desktop even the first time. Are you sure that your program is not looking for any file from a specific folder path (c:\ something)? Also check in your project file at the media panel, if all the files that your program loads at run time are included in the list.
I have also seen this error happening when I run a DBPro exe in fullscreen mode, then open another program (alt+tab) and then return back to the DBpro exe. All media seem to have unload from the exe and I get this error message.


Zaxtor99
14
Years of Service
User Offline
Joined: 27th Jul 2011
Location: Boise, Idaho, USA
Posted: 1st Aug 2012 19:16
Naw, no specific path, and if I run the game from DBPro it runs perfectly, so all the media files are certainly there.

It IS really weird, especially since my stand alone exe worked the first few times them magically just started getting the runtime error.. and that I couldn't even recreate a working standalone the exact same way.


- Zaxx

Login to post a reply

Server time is: 2026-07-08 05:37:15
Your offset time is: 2026-07-08 05:37:15