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.

Newcomers DBPro Corner / PLEASE: tutorial on creating sharable EXE

Author
Message
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 28th Sep 2004 17:24 Edited at: 28th Sep 2004 17:26
i am asking some of the experienced people to put together
a complete, step-by-step tutorial on how to make a working
and SHARABLE .exe file.

my recent attempts have failed miserably, and even caused some fatal errors where it took my computer 45 minutes to just SHUT DOWN after they happened.

i have seen many bits and pieces of information on creating .EXE files using dark basic. and lots of "i've never tried this but it should work..."

but i have never read a full explanation of exactly how to create an executable file using dark basic.

i am asking for DETAILS.
where do i need to put my media files? sure i need to 'ADD' them, but where do they need to go when i give the file to someone else? in a folder? do i need to put this folder in the same folder that the project compiles to? and do i then need to use SET DIR? and then, when the 3rd party gets the game, where do THEY need to put the media? do i need an "installer"? what does an installer really do, anyway? i have 100's of media files necessary to my project; can they all be ADD'ed as a single folder? but then would i need to use some thing like LOAD IMAGE "BTF\IMAGENAME.BMP",13 ? or would it just know?

assume i have the code and the media.
PLEASE ASSUME I KNOW NOTHING ELSE ABOUT THE PROCESS.

this is something that is severely lacking.
FULL DETAILS I BEG YOU!

thanks,
bob
(and i'm using DBPro)
Mizipzor
20
Years of Service
User Offline
Joined: 24th May 2004
Location: Sweden
Posted: 28th Sep 2004 23:47
Uhm... the "check syntax/make exe" key? F4? Places a working sharable exe in the project folder for me :S

Dreaming of creating a highly advanced AI mind
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 29th Sep 2004 05:44
YEAH, OK, thanks for going so in depth.
what about ALL MY MEDIA-RELATED QUESTIONS?

what do you do with media?
in absolute detail.
as i said, when i do it , my computer crashes.

what are your fancy tricks?
what are your basic procedures?

come on, experienced guys and girls.
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 29th Sep 2004 05:46
OMG.
Really you just have all the media in the same folder and you have the load commands be:
load image "hiro.bmp"
rather than
load image "C:/Myprograms/TheGameCretors/Xbox/projects/hiro.bmp"
then you do what Mizipor said.

Got anime?I do.
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 29th Sep 2004 05:51
Okay...

This is not gonna be easy...

When you choose 'Make EXE with Media' or 'Make Full EXE' or whatever the hell it's called again, anything in the same folder as the .DBA file with the following extensions:

.BMP, .X, .3DS, .AVI, .WAV, .MID, .MIDI

...will be compiled into the EXE also.

And that's it. It's not very smart, or complicated.

So I reckon you should try and keep all your media files in the same folder as the .DBA, and put everything else somewhere else.....

(NOTE: EVEN IF THE MEDIA FILES WILL NOT BE USED, THEY WILL BE COMPILED ANYWAY! NOT-VERY-SMART-DETECTOR-THINGY!!!)

If you just choose 'Make EXE' or whatever, then it makes an EXE with the code in. Full stop.

And oh yeah, if an EXE has got media in it, if there's a file it's told to load that's not in with it, it's where-the-hell-is-that-damn-file feature is the same as a normal EXE.

(e.g, if told to load README.TXT, it will load, outside of the EXE, README.TXT)

[img src=http://blanky.pt-web.net/ddd.gif] >::p
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 29th Sep 2004 06:43
all right guys,
try this file i made available for download,
and see if it runs on YOUR machine...

http://free.hostdepartment.com/i/ibolrecords/index.html

if it does, use the arrowkeys to move, the mouse to aim,
and the mouse button to shoot.
this is something i threw together to see if it would work.

let me know if it works,
and where you placed the files and things.

thanks,
bob
OldTifu
21
Years of Service
User Offline
Joined: 10th Jan 2003
Location: Scotland
Posted: 29th Sep 2004 08:10
Just unzipping the .zip to a folder, it works. See, DBpro is genius!!

Your site is evil though, if I wanna left click to save my files I should have that right! VIVA LE LEFT CLICK!
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 29th Sep 2004 11:24
hey, OK!

do you know what kind of frame rate you got?
(it is the number under the scores at top center)

i get ~18 fps...
but i wonder if my machine is just way slower than
everyone else's ...

thanks again or the confirmation.
now i can get back to PROGRAMMING.

bob
mezron
20
Years of Service
User Offline
Joined: 12th Jul 2004
Location:
Posted: 29th Sep 2004 15:29
WoW! Game went so fast all I ever was your dead your dead your dead! I was going from 112-128 fps. Need to slow it down a bit

IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 29th Sep 2004 17:42
oh, yeah,
i changed the available game...

but damn, you get 100fps???

i only get 20!!!!

thanks though...
OldTifu
21
Years of Service
User Offline
Joined: 10th Jan 2003
Location: Scotland
Posted: 30th Sep 2004 05:24
I seem to get around 22 meself... wow I need an upgrade
mezron
20
Years of Service
User Offline
Joined: 12th Jul 2004
Location:
Posted: 30th Sep 2004 12:58
Whats the specs on your machine IBOL. The trick is you want it a playable speed on all machines. I have little experence with this since I'new but I know it has to do with timing how long it takes to run then slowing it down probably with waits or something of the nature.

I dunno someone educate he please

OldTifu
21
Years of Service
User Offline
Joined: 10th Jan 2003
Location: Scotland
Posted: 30th Sep 2004 20:01
Isn't this what the 'sync rate' command is for? Or am I horribly confused
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 1st Oct 2004 06:15 Edited at: 1st Oct 2004 06:18
[after experimenting...]
yes,
the SYNC RATE command can do that,
though i find that it actually SYNCs at a LOWER rate than the one i specify, even though i have seen it capable of achieving a HIGHER rate than i type...
i would initially say to avoid that.

i am now looking into TIMER-BASED MOVEMENT,
and as it just so happens,
andy igoe has posted today in the DBPro forum about just that...

thanks guys,
bob

[edit]
and hey,
ACTUALLY ON TOPIC:
it seems that i can make a sharable .exe
with just a few steps.
BUT i still don't know what was causing those fatal errors
when i started trying to make them...
just one more thing i am scared of about dark basic
(tied for first on my list of what i'm afraid of about dark basic:
<getting the updates
<using the IDE to save my work.

ok,
now really,
thanks,
bob
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 1st Oct 2004 06:22
I got 220 FPS ... You really must slow down it a bit.

Put in your code somewhere this(not in the loop):
sync on
sync rate 75

and then the sync command in the loop, maybe that helps

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 1st Oct 2004 07:37 Edited at: 1st Oct 2004 13:22
SEE ABOVE

[edit from here

ok,
so i did make a slower version for all you people out there.
it's up at the same site,
http://free.hostdepartment.com/i/ibolrecords/index.html
and it DOES use the sync rate command,
but that is NOT what i'm going to use permanently

thanks,
bob

Login to post a reply

Server time is: 2024-11-27 10:44:19
Your offset time is: 2024-11-27 10:44:19