Darwinbots Forum

Code center => Darwinbots Program Source Code => Topic started by: happyhamsterchan on May 16, 2010, 09:24:25 AM

Title: darwinbots 2.5
Post by: happyhamsterchan on May 16, 2010, 09:24:25 AM
I LOVE C++!!!

So, when I found out about DB2.5, I was happy. Where can I get the source? How far along is the development? Is there a gui and stuff?
Title: darwinbots 2.5
Post by: Numsgil on May 16, 2010, 02:30:25 PM
I set up a repo for it: DarwinbotsC (http://www.darwinbots.com/svn/DarwinbotsC/).

It used FoxGUI for the GUI.  OpenGL + GLUT for the graphics.  It was also not a whole lot better than the VB source and rather buggy to boot.  But if you want to dive in to it be my guest
Title: darwinbots 2.5
Post by: happyhamsterchan on May 16, 2010, 04:21:26 PM
what do you mean by "not a whole lot better"?

what do you mean by "not a whole lot better"?
Title: darwinbots 2.5
Post by: Numsgil on May 16, 2010, 05:01:58 PM
The problems with the VB source are partly that it's in VB (VB6 has it's own flavor of issues), but also partly just the way it's architected.  The C code is probably an 85% straight port of the VB code, so it inherits most of the same issues.
Title: darwinbots 2.5
Post by: happyhamsterchan on May 16, 2010, 07:43:31 PM
what dort of architecture problems? How is db3 architected differently? how easy would it be to switch architectures?
Title: darwinbots 2.5
Post by: happyhamsterchan on May 16, 2010, 08:01:06 PM
why are we currently working on db2 from time to time, if db2.5 is almost done?
Title: darwinbots 2.5
Post by: happyhamsterchan on May 16, 2010, 08:10:48 PM
oh also, now that I have the code, how do I execute it?
Title: darwinbots 2.5
Post by: Numsgil on May 16, 2010, 08:42:53 PM
Quote from: happyhamsterchan
what dort of architecture problems? How is db3 architected differently? how easy would it be to switch architectures?

Things are just very... flat.  Non-compartmentalized.  The graphics dig in to the physics and the DNA and bot memory and all that.  It's like a complicated phone operator's switchboard.  eg: picture of a switchboard (http://etc.usf.edu/clipart/12900/12900/switchboard_12900_lg.gif).  Makes the code hard to maintain because a bug in area A might be caused by a bug in area W.


Quote from: happyhamsterchan
why are we currently working on db2 from time to time, if db2.5 is almost done?

DB2, for all it's faults, is a relatively stable code base.  Whereas the C++ port was basically feature complete but still needed bug fixing.  And as I've come to learn, the last 10% of a project take 90% of the time.

So given that I wanted to start over in C# and do things right from the ground up, it just made sense to abandon the C++ code.


Quote from: happyhamsterchan
oh also, now that I have the code, how do I execute it?

It's just C++ code.  Nothing fancy.  Stick it in either Visual Studio (I used VS6 for this, but it should work in later versions) or GCC and hit compile.