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 / I can run my .exe file

Author
Message
Jmahmood
18
Years of Service
User Offline
Joined: 3rd Apr 2007
Location: not sure
Posted: 29th May 2007 06:43
Hi everyone
I am having a big problem over here!
when i make a final i can't run it.But when it's put into my source folder it runs perfectly.What should i do?
I am useing DB version 1.56 (Downloaded from the forum)


indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 29th May 2007 08:15
checklist some things

[?] Is every media element / 3d models / 2d images / textures / sounds etc in the same folder as the exe.

[?] Is the media elements called from the games exe pointing to the correct path location.

eg

[ GAMEFOLDER]
mygame.exe
folder[media] - all the media in here
so you would have "media/medianame" in the path of the media element.

Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 29th May 2007 11:12
Also, make sure that what you have built is the FINAL .exe, as opposed to the exe requiring the media eelements. Final exes don't need that.

The below sentance is true.
The above sentance is false.
Paradox!
NanoGamez guy
18
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 29th May 2007 11:54
I had that same problem. I made sure that it was a FINAL.exe


Nothing is impossible...
No really, it is.
Jmahmood
18
Years of Service
User Offline
Joined: 3rd Apr 2007
Location: not sure
Posted: 29th May 2007 14:41
Hi again
i did built final(not exe). therefor i dont think media files are needed, but it wont work.
I am useing DarkEDIT ver 1.56,Maybe i should try DB original editor.Hope it will work then.


Thanks for your help
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 30th May 2007 04:07
Quote: "Maybe i should try DB original editor. Hope it will work then."


You can try, but it probably won't make any difference.

You say that it works OK if you run the exe in the project folder, so what is the error you are getting when you run it outside?

I agree with the others that it is most likely a media problem.

Dark Basic Classic is well known for 'losing' media when it's not in the same folder as the .DBA file.

So, to test this, copy all the images, sounds, models etc. that your program uses into the folder with your DBA source file and change all your Load 'X' lines to just have the filename (without the path) like this example:

Load Image "Filename.jpg",1

Then use Build Final again and see what happens.

TDK_Man

Jmahmood
18
Years of Service
User Offline
Joined: 3rd Apr 2007
Location: not sure
Posted: 31st May 2007 06:39
Problem solved!

Thanx guys,for ur help

Login to post a reply

Server time is: 2025-05-28 20:54:27
Your offset time is: 2025-05-28 20:54:27