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 / External DBA Executing

Author
Message
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 10th Nov 2004 18:27
Hi,

I'm making an external editor for my engine. Its called Ive-3 ADVANCED ENGINE.

Now, is there a way to load an external DBA file ?

This is what i have now:
--------------------
The Main Executable:
#include "file.dba"
--------------------
File.dba:
#include "runscript.dba"
--------------------
in the runscript.dba is the darkbasic code.

BUT, if i run the main executable file in DBC itself, it runs correctly. But if i create the executable, it compiles all dba files into the exe. So i cant update the runscript.dba file.

Is there a way to compile executables without using the darkbasic editor? Or the way as i actually need, just create one executable that you can run to execute the runscript.dba file.

Thanks.

Regards, Harold.
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 10th Nov 2004 21:57 Edited at: 10th Nov 2004 22:00
Hi Harold.

I have the same problems here http://forum.thegamecreators.com/?m=forum_view&t=42390&b=1

they gave in in depth discription on includes so now to compile im trying to use some code from the forum, (Beta of the Blue IDE Editor)

Its in VB6, But I Can't get it to Work when removing the code from the ide, (Must be some globals or something thats required), But im still Trying.

If you look on the forums you should find it, (I think it was in Dll Talk).

I would post it but its about 5MB and I dont have a way to post that much...
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 10th Nov 2004 22:10 Edited at: 10th Nov 2004 22:39
I Think I found it Again, In WIP

Blue IDE Beta V2
http://forum.thegamecreators.com/?m=forum_view&t=21465&b=8

If you go to the Form Called [MAIN], in the Compile Menu and Click on Any of the Menu Items you will see the Code that Triggers [triggerCompile()]

This is Assuming you have VB?

It Requires Dark Basic to be Installed as it uses The DB Compiler


Im Trying to Get this Line to Work externally, Ie, Outside the BlueIDE
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 10th Nov 2004 22:59 Edited at: 10th Nov 2004 23:01
hmm... this isnt really what i'm searching

I dont want to use extra programs to run an external dba file.
Besides, that bluegui is as far as i know for DBP.

Isnt there a way to auto-compile a dba file to exe ?
like this:

dbacompiler.exe [filename.dba]

That would be perfect!

btw. i will try that compiler for VB.. if that doesnt work.. well too bad then.

I cant test it now, because i'm on school on this moment. I'll try it later today.

Thank you very much
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 17th Nov 2004 03:39
DarkBasic can handle command line options 'n' stuff...

So, say for example your copy of DarkBasic is in C:\program files\dark basic software\dark basic\db.exe. (Most are.)

Open up in a web browser c:\program files\dark basic software\dark basic\help\compiler.html.

It contains the complete list of command line switches

(Excerpts (?) (okay, the whole thing) for your viewing pleasure:

COMMAND LINE COMPILER


If you prefer to use an external editor to edit your programs, you can use the command line compiler. The command line compiler allows you to compile, run and build executables without entering DarkBASIC.

1. Compiling Externally
DB.EXE -c test.dba

2. Running Externally
DB.EXE -x test.dba

3. Building An Executable Externally (no media)
DB.EXE -b "small.exe" test.dba

4. Building An Executable Externally (with media)
DB.EXE -f "large.exe" test.dba

5. Using Relative and Absolute Paths
C:\Program Files\Dark Basic Software\Dark Basic\DB.EXE -f "d:\mywork\large.exe" test.dba

When using relative paths, ensure your current directory is the project directory containing the DBA program. Your current directory will be used to write the final executable and DBCompile.LOG file. You can override this behaviour by using Absolute paths when asked for a filename in the command line. The DBCompile.LOG file contains any error messages, or completion strings returned by the compiler. The file will also include the line number at which the syntax/runtime error occurred.)

Login to post a reply

Server time is: 2025-05-24 13:34:25
Your offset time is: 2025-05-24 13:34:25