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.

Dark GDK / DB Pro to GDK Converter

Author
Message
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 13th Feb 2007 20:21
We are interested in looking at the possibility of getting a program set up that will take DB Pro source code and convert this into code that will compile with the GDK. Is anyone interested in writing such a program?
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 13th Feb 2007 20:48
Although a very interesting project to take on, there's no way I could commit the time to it Mike, (with everything else that needs to be done). It would prove an interesting learning exercise for people who would want to learn about parsing and conversion etc.

Paul.

kBessa
18
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 13th Feb 2007 23:49
That would be a great program, but I don't know if I'd have the time necessary to make one, and anyways, It would difficult to make a DGDK (as I don't own it and am not willing to buy it), just for DGDK.NET. At least if I hadn't to go to my computer science classes...

Hope there is a version to generate C# code aswell.

Thiago Bessa
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 14th Feb 2007 10:27
Interesting project. Cant wait till there will be a VB.NET version

I'm working 16 hours per day so I dont have time for it

Niels Henriksen
Working on a (MMO)RPG right now in DarkEngine
http://yourmmo.wikispaces.com/
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 14th Feb 2007 10:49
If anyone writes a .net version (for VB 2005 express), I'll buy it.

Same goes for the DGDK (C++ 2005 Express), when I get it lol.

Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 14th Feb 2007 15:21
Would be something I would not mind to embark on, but I just have no time at all.
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 14th Feb 2007 15:28
I'd be very interested in writing a DBP to GDK convertor. I've sent you an e-mail Mike.



A book? I hate book. Book is stupid.
(Formerly Yellow)
gameboy
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location:
Posted: 15th Feb 2007 14:59 Edited at: 15th Feb 2007 15:00
Some tools that may help in the job:
Visual Parse++
CodeSmith

If you convert DB Pro into XML files, then these tools may help:
Visual Studio XGen
SoProMach (Software Production Machine)
Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Hobgoblin Lord
19
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 27th Feb 2007 21:10
Most of this would not be to hard, except I think Array lists which are absent(as far as I have seen) from the DarkGDK, that would lead to having to create a bunch of linked lists for the GDK.

Zumwalt
17
Years of Service
User Offline
Joined: 1st Feb 2007
Location: Tampa, FL
Posted: 27th Feb 2007 23:13
Its not that hard, just time consuming, add to the fact you need the method comparison chart as in:

MethodA = CMethodA

Without this chart, its near to impossible. I got something started but gave up since I don't know hardly 10% of the list of objects and all I have is the .Net version to work against and no method comparison charts.
kkubasik
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location:
Posted: 7th Mar 2007 09:56
Just a note, I would also be willing to sponsor a bounty for a bi-directional converter.
Dark Intruder Returns
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Marlborugh. MA
Posted: 12th Mar 2007 05:18
Well I can take a stab at it.. it would be helpful to have the DB Pro grammar and stuff available

"In order to understand recursion, one must first understand recursion"
y2ksw
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location:
Posted: 20th Mar 2007 19:27
I'm interested in writing a converter. I've done this kind of application several times, and in this case I believe it is a pretty easy job, since DBPro matches almost the SDK syntax. The only big differences are with DATA statements and strings - but nothing is impossible
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 21st Mar 2007 21:10
Check out http://forum.thegamecreators.com/?m=forum_view&t=102507&b=29&p=0 for my beta convertor using ANTLR as the tokenizer.

Get the new DarkBasic Professional IDE for only $19.99/~£9.85
Http://synergyide.thegamecreators.com
Http://www.digitalzenith.net
y2ksw
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location:
Posted: 22nd Mar 2007 00:40
Looks quite good, although it has a strong tendency to hang when files become a little larger
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 22nd Mar 2007 13:20
Quote: "ooks quite good, although it has a strong tendency to hang when files become a little larger"


Rebuild the syntax file, and make sure all keywords turn blue. Then it won't hang.

Get the new DarkBasic Professional IDE for only $19.99/~£9.85
Http://synergyide.thegamecreators.com
Http://www.digitalzenith.net
x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 22nd Mar 2007 18:47
still hanging for me.

John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 22nd Mar 2007 19:23
Well, the next version will allow 10 iterations before giving up, and hence doesn't crash. Will let you know when it's up.

Get the new DarkBasic Professional IDE for only $19.99/~£9.85
Http://synergyide.thegamecreators.com
Http://www.digitalzenith.net
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 22nd Mar 2007 22:47
John Y, I've also found that it hangs also, but if you want me to supply you with the source for the file I was trying to translate, it may help in diagnosing the problem?

Paul.


Abundance = Choice = Freedom - Scarcity = Dependancy = Control, Truth!
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 23rd Mar 2007 14:05
It's not necessarily crashing here, just seems to be wicked slow. I left it running for a while earlier and the progress bar moved a little and the memory usage was still jumping around, but no output code in sight. Of course I was running it on an 1800 line code.

John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 23rd Mar 2007 14:14
New version uploaded that doesn't crash.

http://forum.thegamecreators.com/?m=forum_view&t=102507&b=29

It's slow because it has loads of debug code in it, ignore that for the moment

Get the new DarkBasic Professional IDE for only $19.99/~£9.85
Http://synergyide.thegamecreators.com
Http://www.digitalzenith.net
x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 23rd Mar 2007 15:00 Edited at: 23rd Mar 2007 15:07
is fast, doesnt crash, but reports bad commands at lines that dont exist.

edit: ok, cleaned out all code refering to bluegui and nuclear glory, rechecked all code, everything that sould be lit up ,is lit up. converted, then it insisted the the lit command "else" was not a valid command

y2ksw
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location:
Posted: 25th Mar 2007 21:36
Yes, I'd say that one may go.

It's not making it 100% perfect and all commands and statements must be checked and case converted, some if/function/switch don't open and/or close properly (C++), but in any case it's a great help

For a better conversion I suggest to use the full source dump (found in the TGC/TEMP folder after DBPro compilation) since it seems not to handle Includes.

Thanks for your efford so far
da power pwnerer
18
Years of Service
User Offline
Joined: 28th Jul 2006
Location: Pittsburgh, PA
Posted: 15th Jul 2007 21:41
are you still working on this?


http://Freewebs.com/noobisoft
Come to Noobisoft's website today!
unitech
17
Years of Service
User Offline
Joined: 27th Jun 2007
Location:
Posted: 18th Jul 2007 18:42
I don't think its in dev any longer. I download a version and its been crippled.

Login to post a reply

Server time is: 2024-11-16 18:21:10
Your offset time is: 2024-11-16 18:21:10