Author Topic: C++ Sources  (Read 7517 times)

Offline Borg

  • Bot Neophyte
  • *
  • Posts: 18
    • View Profile
C++ Sources
« on: February 28, 2006, 09:05:21 AM »
Hello.

Whats the status of the C++ version of DarwinBots?
The sources accessible via SVN doesnt look complete.
There is no (at least) Makefile to build it, and also I heard
that MSVC 6.0 is used to devel tool, there is no project
files aswell.

Another thing.. Why C++ was choosed? Isnt better to use C only
for core programing? Its much esier to understand how code works
Personaly, all that Classes thingies scared me off..

Is there any GUI working yet?
I would be glad to check things out.. and maybe join the project.
(im not C++ fan.. but after a while I will refresh how things works ;)

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
C++ Sources
« Reply #1 on: February 28, 2006, 10:22:54 AM »
check out the C++ discussion on the wiki:
http://www.darwinbots.com/WikiManual/index...us_plus_version
and feel free to join in.
不知
~griz~
[/color]
   "The selection of Random Numbers is too important to be left to Chance"
The Mooj  a friend to all humanity
[/color]

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
C++ Sources
« Reply #2 on: February 28, 2006, 11:37:03 AM »
Aye, the C++ page is a good place.

As to why C++ over C:

Personally I prefer C.  I really do, that's what I first learned and that's how I think.  That said, there are some things which just work better using classes because it integrates the data structure with how it's implemented.

Math vectors are a good example of this.  Vectors in C and Vecors done using classes really show the power of C++ over C for many things.

That said, I've done my best to keep the code fairly clean and weird C++ operator free.  For what I've coded anyway.  I've had some more C++ savvy programmers work on some things and they tend to like more complex things that boggle my mind.

I can upload my MSVC project files, but I think they're path specific.  That is, they might only work if your source code is set up the same way mine is, in the same place on your C: drive.

As to the GUI: I am presently finishing it up.  Presently there are some controls but they aren't integrated into the engine yet.  So you can slide the slider and click the button but nothing happens.

If you would like to join, great!  I absolutely hate how long it takes to finish up a project like this.  Feel free to message me on AIM or MSN later today if you would like a more real time discussion.
« Last Edit: February 28, 2006, 11:43:15 AM by Numsgil »

Offline Borg

  • Bot Neophyte
  • *
  • Posts: 18
    • View Profile
C++ Sources
« Reply #3 on: February 28, 2006, 01:07:00 PM »
Okey.

Seems that I have to check my old C++ sources I wrote years ago,
to refresh C++ knowledge a bit.

Project files usualy are relative to Project dir, so they should work
everywhere. Also, its necessary to have this project files included,
since I cannot create .res files (for GUI) and make all necessary
files to build it up.

(And yes ;) I dodnt code much of C++ under WIN32, basicaly
I stik to API + C only, so it will take a little time for me to refresh
the knowledge).

AIM or MSN?? Sorry.. im not using any of those services.
I prefer IRC because from the begining, it provided one to many
communication, so needed in discussing projects ;)

I have jabber account too.. If someone is not familiar with IRC.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
C++ Sources
« Reply #4 on: February 28, 2006, 01:54:36 PM »
I don't have IRC or jabber... :/

There aren't any .res files, everything is (or should be anyway) .h and .cpp.  This is managed through the magic of Fox GUI, which is the cross platform GUI library the C++ port uses.

I'll upload my project file later today, after I clean them up a bit.

The code is built to be cross platform, so there's next-to-zero windows specific code (a few #defines for when there is, things like that).  If you know ANSI C fairly well, it shouldn't take more than a few hours to catch the gist of 90% of the code or so.

Of course, that also assumes you're familiar with certain things like math vectors, etc...

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
C++ Sources
« Reply #5 on: February 28, 2006, 02:13:53 PM »
I've uploaded my updated source along with my project file.

If you'd like to recieve notifications of source updates as well as write-access to the database, you can send me a PM with an email address, a desired user name, and a password.

Offline Borg

  • Bot Neophyte
  • *
  • Posts: 18
    • View Profile
C++ Sources
« Reply #6 on: February 28, 2006, 04:44:44 PM »
Hmm, I downloaded RapidSVN..
Simple but quite too.. spartan.

Anyway, I have problem exporting repository...

Execute: Export
Added: you:/TEMP/DarwinBots
Added: you:/TEMP/DarwinBots/GFX
Error while performing action: '' is not a valid EOL value
Ready

Also, that SVN site is very slow to me ;/ I need to export sources. to work on them.

Any clues what is wrong?

And btw.. I hope everything there is already LF only (no CR/LF - Windows/DOS).

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
C++ Sources
« Reply #7 on: February 28, 2006, 04:56:53 PM »
I'm not exactly sure what the problem is.  You could try another SVN program if you're up for it.  Or keep trying.  Or try and find RapidSVN's support manual.

The repository is on a rather slow server, so you're going to have to be prepared for relatively long upload and download times.  Thankfully, it's not too bad since the files are all text (except for one .exe I believe, and it's small).

Offline Borg

  • Bot Neophyte
  • *
  • Posts: 18
    • View Profile
C++ Sources
« Reply #8 on: March 01, 2006, 04:36:06 AM »
Okey. I will try again when I will get back to home.
Maybe google will help also.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
C++ Sources
« Reply #9 on: March 02, 2006, 12:07:19 AM »
Did you get it to work?

Offline Sprotiel

  • Bot Destroyer
  • ***
  • Posts: 135
    • View Profile
C++ Sources
« Reply #10 on: March 02, 2006, 11:13:09 AM »
Quote
Hmm, I downloaded RapidSVN..
Simple but quite too.. spartan.
You should try TortoiseSVN, it's very easy.

Offline Borg

  • Bot Neophyte
  • *
  • Posts: 18
    • View Profile
C++ Sources
« Reply #11 on: March 02, 2006, 12:46:30 PM »
Yeah, I found it.
I like the way he integrates with explorer.
Since im ClearCase user, this looks familiar.
Anyway, to install it, I need to update MSI to 3.0 (MS Installer)
and im very very strict about adding anything to my Win2000.
I dont feel (for now) to install it.

Numsgil:
  Could you please upload complete source tree to my FTP server?
  ftp.benet.uu3.net (anonymous access).
  I tried to access sources few times.. but w/o success.

Thanks in advance!

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
C++ Sources
« Reply #12 on: March 02, 2006, 01:52:14 PM »
I'll take care of it after work today (like in an hour or so).  Remind me if I forget.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
C++ Sources
« Reply #13 on: March 02, 2006, 02:22:08 PM »
I've uploaded it your upload folder.  It's called DarwinC.zip, and contains the source tree, my SVN program, and my project files.  Hopefully you can just plug and play the code (once you DL the dependancies of course) and use SVN to update as normal.

Have you tried both the regular and secure servers?  Maybe you're having trouble dling the source from one, but the other would work fine.

Offline Borg

  • Bot Neophyte
  • *
  • Posts: 18
    • View Profile
C++ Sources
« Reply #14 on: March 04, 2006, 09:46:53 AM »
Hello.

Thanks for the sources.
Now I will install all dependecies (OGRE, STLport, FOX) and install it
to be able to compile DarwinBots.