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 / DBA compiler

Author
Message
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 11th Nov 2004 01:29
I guess i didnt post that topic of me very clearly earlier.

Can anyone help me to find to find an external DBA compiler of the DarkBasic Classic 1.13 ?

I need it for my external editor. Now if you save things you still need to make the exe file in the darkbasic editor.

Is there a way to do this outside of the DarkBasic Classic editor?

- Harold.
Tainer
20
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 11th Nov 2004 07:55
well if its an external compiler for DarkBasic classic that you want (which apperently u do, its just that im getting a little thrown off by your wording, sorry...) then you could possibly try DarkEdit!
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 11th Nov 2004 08:36
An external compiler?

You do realise that a compiler is what takes the source code that the user has written, and then converts that into a .exe, right?

Cos if you do, then you must also realise that if there was another "external" compiler out there, then it would belong to someone, and they would be makeing a fair bit of money just like TGC did.

What exactly are you after?

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 11th Nov 2004 09:54
I think what he's asking is how to use a third party editor
to compile DBC code like Dark Edit does ....

Basically, you use the standard DB compiler but you'll
need to pass the appropriate "switches" to get it to
recognise your editor. If you provide the name of your editor,
I'm sure help will show up quickly.
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 11th Nov 2004 23:01
Jess,

Its indeed what i'm searching for. But it isnt something like that you dont need darkbasic for it.

I want a way, to compile DBA files to executables without entering darkbasic. If darkbasic should be required for it, and it should be, then i have no problems with it. But is there no paramater for the DBC editor to just build executables from dba files?

Thats the only thing i'm searching for.

What i'm after is:

I'm making an external editor for my Engine: Ive-3 Advanced Engine.

What i want even more is just one executable that runs an external dba file. But this isnt working so i'm searching an external compiler now or just a program written in darkbasic that does it for me.

As far as i heard its impossible to make just one executable that runs an external DBA file. If you build the EXE it compiles all the dba files in it.

I hope you understand what i'm really looking for.

Regards, Harold.
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 11th Nov 2004 23:21 Edited at: 12th Nov 2004 09:33
Now we all are confused ....

Do you simply want to compile without running?
or Make Exe without executing ?
A post below has instructions on this ...
Its just a call like dbcompile myfile -c

These things are already supported..


Or are you trying to do something "sophisticated"
like build each include file to an .obj file
to be linked later to speed up compile times ....
DB does not support that option in any way and its
just not possible.

Or are you trying to create a full level editor that executes
external code ... someone else had that idea below too...
Yes, that you must code yourself too. In GameMaker, Mark
has a function called (execute code "any code from a file")
that makes level editors a snap to make, but the only way
to do that in DBC or DBPro is to have all scripts compiled as
DLL files and have DB simply pass a pointer to a memblock
that contains all game data. Then, the DLL could do anything.
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 12th Nov 2004 02:24
basically, he wants to compile his file through a command line. No sure if DBC has any command line arguments or not, but if it does, then you can make a small batch program to utilize that.

"eureka" - Archimedes
Damokles
21
Years of Service
User Offline
Joined: 28th May 2003
Location: Belgium
Posted: 12th Nov 2004 04:20
Well, you maybe want to know how Darkedit was created ... It is an alternative editor that compiles files.
You could ask Guy Savoie

- Mind the gap -
o0 Static 0o
21
Years of Service
User Offline
Joined: 27th Aug 2003
Location: Belgium
Posted: 12th Nov 2004 04:37
I think there was something about it in the help files of DBC.
Dark Basic Software\Dark Basic\help\compiler.html
Thats wat Darkedit uses i think.
Louiz ofRohr
20
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 12th Nov 2004 05:45
Man... I'm sorry... There is no way for update external codes... When you build final or just "exe" file... The DB really includes de dba file in the executable.. Obviously, the DB team would not make a software that lets you to create a compile without the compiler. That would be "software hacking". I did try to use the "move file "Test.dba", "Test.exe"" but that is a fruitless trying... The only way to update the code is:

Into the project (compiler on future) you put "some" codes .
You can use the command "open to read" an simple txt file... And do like this:

open to read 1, "name.txt"
read string 1, a$
close file 1

if a$="sync" THEN sync

Can you see? Can you imagine how you will code for each line, with all conditions and parameters? And if you if you get it.... kkkkkk
you'll have problems with in what line to put the "DO" and "LOOP" commands... Tha is impossible
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 12th Nov 2004 07:30 Edited at: 12th Nov 2004 07:33
There is a bit of CL i believe, i read it in DarkEDIT i think...

[edit] All i could find was this...

-c = compile
-x = execute
-b = make exe
-f = build final

I know what this means, but dont know how to use it. Maybe a more advanced CL programmer could help him out [/edit

Song of the whenever i feel like updating it....
Where dead bullies go, by Sugarplastic
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 12th Nov 2004 07:37
There is a file called Compiler.html in the HELP directory. Suggest you read it.


Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 12th Nov 2004 07:59
I just did, said the same exact thing I just said.

Song of the whenever i feel like updating it....
Where dead bullies go, by Sugarplastic
Damokles
21
Years of Service
User Offline
Joined: 28th May 2003
Location: Belgium
Posted: 12th Nov 2004 08:33
What's up with this thread ? everytime I come on it, I have a popup that wants to connect me at br.msnusers.com
Grrrr

- Mind the gap -
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 12th Nov 2004 10:03
possibly someones avater...

Song of the whenever i feel like updating it....
Man in a Dream, by Stew
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 12th Nov 2004 10:11
i think it's someones sig ...
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 12th Nov 2004 12:53
What Lou is talking about is simply a scripting engine... Although, somthing like that isn't easy.

You have to open a file, read in all the string data, then parse that ( read each character to split it up ) and do what is required by the script.

Now, if Dif is after something like this for his Ive-3 engine, then what you're after isn't something that will turn the script into a .exe ( a compiler ), but, rather, a scripting engine as part of the Ive-3 engine that simply reads in the script file, and does what is needed ( an interpreter )...

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 12th Nov 2004 20:38 Edited at: 12th Nov 2004 20:43
Jess is right.

I just need a DBC program, that executes an external dba file.

The possibiblty of darkedit is also an option. Such as that is exactly what i need.

I'm not after such things as hacking and stuff. The way i want is just that you will need DB or darkedit to compile an exe file.

I just want to make a fucntion in my editor to build exe files.

[EDIT]

OMFG!!!!
i found it !!

in that help file about compiling theres a line:

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

thats exactly what i need!

i'll try this right now.

brb.


í didnt read that help file about compiling yet. I'm gonna do it right now

[EDIT2]

Its working exaclty as i want
Thanks everyone that helped me out!

* does a happyness dance *
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 12th Nov 2004 22:29
could you tell when how you went about doing it? Did you run that command in a batch file or what?

Thanks,
Matt

Song of the whenever i feel like updating it....
Man in a Dress, by Stew
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 13th Nov 2004 02:25
I made a program in VB6.0 called Ive-3 Compiler.

just add a line in vb6:

shell "db.exe -x testfile.dba"

and it runs
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 13th Nov 2004 04:50
okay, thanks

Song of the whenever i feel like updating it....
Man in a Dress, by Stew

Login to post a reply

Server time is: 2025-05-24 12:18:47
Your offset time is: 2025-05-24 12:18:47