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 / Is DBP_OOP still supported?

Author
Message
Digi tronic
21
Years of Service
User Offline
Joined: 20th Aug 2004
Location: The Poconos, Pennsylvania, USA
Posted: 7th Mar 2014 12:10 Edited at: 8th Mar 2014 06:46
I saw this post http://forum.thegamecreators.com/?m=forum_view&t=121860&b=5 from several years ago. I'm relatively new to the DBP scene, so, I'm wondering..is this still supported, if so, where can I find some instructions on how to use it?
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 8th Mar 2014 02:10
To be honest, DBPro hasn't changed all that much since 2008, so it's almost definitely still supported
I'm not sure where there are any tutorials to help you, sorry. It basically gives you the option of object-oriented programming in DBPro, so it might help to look up tutorials on object oriented programming in general!
Digi tronic
21
Years of Service
User Offline
Joined: 20th Aug 2004
Location: The Poconos, Pennsylvania, USA
Posted: 8th Mar 2014 06:48
Sam thanks for your response, but, what I'm looking for is more on how to configure the DBP compiler to use the Addon rather than a lesson on OOP.
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 9th Mar 2014 03:29
I'd say your best bet is to try and track down somebody with the original archive, as the attachment seems to only include to the pre-processor without template code. It's also using some plug in for DBP (probably Ian's which are easy to find)

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Mar 2014 12:54
Contact Diggsey himself via the email button.

You might also like to click on his Profile button and search for all his posts and look at those which seem to be related.

It's quite possible it never got completed though. Either way, contacting Diggsey directly is your best bet.



Powered by Free Banners
Digi tronic
21
Years of Service
User Offline
Joined: 20th Aug 2004
Location: The Poconos, Pennsylvania, USA
Posted: 22nd Apr 2014 23:31
I tried contacting Diggsey via email, I didn't get a response back. If anyone happens find out any more info on this project please post here?

Thanks guys.
Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 21st May 2014 00:38
Sorry I must have missed your email.

The version from this download link should work: https://forumfiles.thegamecreators.com/download/1556686

I'm afraid there was never a very good work-flow for using the precompiler - it was intended for use with an IDE which had precompiler support, and such an IDE never really materialised.

Instead, you have to drag your .dba code file onto the precompiler executable. This will create a new .dba file in the same directory, and that should compile and run.

[b]
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 24th May 2014 05:50 Edited at: 24th Jun 2014 03:43
Hey Diggsey, thank you for giving us the link!
OOP is something DBPro has always really needed, and I think your system is genius!
You might wanna know, I spent the evening working on project to improve the ease of use, because like you say the only problem is the fact that you have to convert files before compiling them. My solutions is kind of hacky and definitely not as good as an actual IDE with support, but it works! It's basically a pre-precompiler which sends the .dba file to DBP_OOP, then sends the converted file to the main DBP compiler, which compiles the end result. It also catches and generates errors for common mistakes like the header file being in the wrong place or not existing

Download: https://www.mediafire.com/?bs12hr76tehhnck

To use it, copy and paste DBP_OOP.exe into the main Compiler folder. Rename the standard DBPro compiler from 'DBPCompiler.exe' to 'DBPCompiler_main.exe', and copy the preprecompiler in instead. Everything should work fine

Of course, if you want to go back to standard DBPro programming, you've got to rename the compiler again, which is a little annoying. I have an idea for a way around that, but I'll work on that tomorrow, cuz it's 3:45 Am here, and I need sleep! [Fixed that! The renaming problem, not me getting sleep]
The only other issue is that the DBP_OOP box stays open after each compile, and needs to be closed manually. If you've got the time Diggsey, and you could update DBP_OOP to close automatically when done, that'd make the workflow pretty much seamless

Anyways, I hope it helps someone

The code never bothered me anyway...
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 24th Jun 2014 03:37 Edited at: 24th Jun 2014 03:44
Finally got around to updating this, you can download the newer version from the same link above
Improvements:
The compiler can now set to ignore the OOP Precompiler so ordinary DBPro projects can be run without having to rename everything. If you want to disable OOP, add the line 'disable_oop' to your project, before the rest of the code

As well as being declared in an external file by using 'declare "headerfile.txt"', headers can now be declared from within your program. To do this, add the header to the beginning of your program, enclosing it with the lines 'header_start' and 'header_end'.
Example:


Header declarations don't have to be placed on the very first line of your program anymore - they must be placed before any code, but can be placed after comments and blank spaces

Generally better error handling

The code never bothered me anyway...
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 25th Jun 2014 22:52 Edited at: 25th Jun 2014 22:54
Sorry to keep bumping this! I should probably make a thread for it, but it doesn't really feel like a big enough project for that
Fixed a major bug with the compiler which meant that anyone using the free version of DBPro couldn't run it - If you tried it before and it told you it couldn't find DBP_OOP.exe even after you put it in the compiler folder, this version should work
Also, removed the popups with syntax errors, because they were far more annoying than helpful :/

The code never bothered me anyway...

Login to post a reply

Server time is: 2026-07-07 09:51:05
Your offset time is: 2026-07-07 09:51:05