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 / how do I use dbpcompiler outside of DBP?

Author
Message
Digital Dragon
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 26th Jul 2005 06:02
I am thinking of making a GUI engine to make gui's for dbp but i need to find out how to execute files with the dbp compiler!

I have searched around but most of the stuff doesn't usually work so if anyone would be so kind in helping me to understand how to make exe files with the dbpcompiler.exe without pressing f5 or execute buttons. Thank you

P.S - Have read something about _temp.dbsource, but not sure what it does,anyone know?

Nitrox is the new and improved me
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Jul 2005 07:00
Search again.

Search for 'Calling the compiler from the commandline or an IDE' and you'll find *all* of the details you need, from someone who has already done this.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
Digital Dragon
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 26th Jul 2005 07:08
lol I litteraly just went from tht thread to this one I get it but i am still not sure on how to execute the dbpro file using dbp commands, is it `execute file "dbpcompiler.exe","c:\game.dbpro",""?

I'm sorry if it is on the thread it just that i tired

Nitrox is the new and improved me
Digital Dragon
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 26th Jul 2005 08:17
cmon someone please help what dbp commands to I use to execute a .dbpro file in the compiler?


Or is that right!

How do I do this?

Nitrox is the new and improved me
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Jul 2005 08:46 Edited at: 26th Jul 2005 08:50
http://forum.thegamecreators.com/?m=forum_view&t=56639&b=1

That is EVERYTHING you need to know.

edit:
http://forum.thegamecreators.com/?m=forum_view&t=56370&b=1

Look what else turned up in the search

edit 2:
basically, you need to chuck all the source into 1 dba file called "_Temp.dbsource" and put that in the same folder as the .dbpro file, then run the compiler with the .dbpro as an arguement.

My Website:
Digital Dragon
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 26th Jul 2005 09:14
This might be because it's late but I used ur exaple and I opened up cmd and put in DBPCompile.exe i:\project.dbpro but it couldn't regonise command, could you please tell me

Nitrox is the new and improved me
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Jul 2005 09:20
What folder were u running DBPCompile.exe from? You either need to add the compiler folder (C:\Program Files\Dark Basic Software\Dark Basic Professional\Compiler) to the system path or you need to CD into that folder before you run the command...

My Website:
Digital Dragon
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 26th Jul 2005 20:55
Right, This is what I have done.
I have made a folder C:\Program Files\The Game Creators\Dark Basic Professional Online\Projects\hello.

In that file I have made 3 files.
_Temp.dbsource
a.dba
a.dbpro


The _Temp.dbsource has the dba in it, but when I put the full directory into cmd but it dosn't recognis the command c:\. What do I do!

Nitrox is the new and improved me
ZioNz
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location:
Posted: 26th Jul 2005 21:47
The compiler exe is named DBPCompileR.exe NOT DBPCompile.exe.

-
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Jul 2005 23:20
do you even know how to use DOS?

do CD "c:\program files\..blah..\..blah..\"

c:\ is not a command, its a folder

My Website:
Digital Dragon
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 26th Jul 2005 23:27 Edited at: 26th Jul 2005 23:32
I did what u said but it said "The Filename,Direvotry name or syntax labl is incroeect but the directrys are right!

Nitrox is the new and improved me
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Jul 2005 23:28
use speech marks - the space sepeates the path

either that or convert the long dir's and file's into 8 characters.. its easier to use speechmarks tho

My Website:
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 28th Jul 2005 09:09 Edited at: 28th Jul 2005 09:12
The command line should read:

DBProCompiler "C:\Program Files\The Game Creators\Dark Basic Professional Online\Projects\hello\a.dbpro", "C:\Program Files\The Game Creators\Dark Basic Professional Online\Projects\hello\"

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
21
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Jul 2005 09:20 Edited at: 28th Jul 2005 09:20
Keaz, your ''s didn't copy correctly, and you're ': P's in 'C: Program' turned into smileys
Here is what Keaz meant to say (with correct code syntax, paths, ''s, and without s)

Or:


-Xol

Login to post a reply

Server time is: 2025-06-07 09:37:37
Your offset time is: 2025-06-07 09:37:37