Author Topic: Bots' code  (Read 3745 times)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7709
    • View Profile
Bots' code
« on: October 22, 2005, 07:40:37 PM »
Bots' code is on the FTP.

Everyone go check it out, I guess  <_<  :lol:

He claims its both stable and addresses the issue of Mueller's Ratchet via "radiation", and, um, well, he's got the robot placement code in there, that's good  :D
« Last Edit: October 22, 2005, 07:40:53 PM by Numsgil »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Bots' code
« Reply #1 on: October 23, 2005, 09:58:59 PM »
Thats right people, If you have vb go ahead and try to make heads and tails of it. All you need to do is press the run button. I am interested in feedback...


I am already beggining to feel like: "Do people actualy see this thread? Why they dont respond?" come on people say somthing...
« Last Edit: October 23, 2005, 10:21:40 PM by Botsareus »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7709
    • View Profile
Bots' code
« Reply #2 on: October 23, 2005, 10:46:06 PM »
From Bots:

Quote
2.4 crashes after the first 10 minutes, It sux...

I just want people to have a stable virsion of the program, witch includes my method of evolving first bot, and is mostly bug free... My virsion practicaly never crashes on me.

Just putting that out there.   :evil:

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Bots' code
« Reply #3 on: October 24, 2005, 11:57:27 AM »
Whats the evil laff about?  :huh:  ?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7709
    • View Profile
Bots' code
« Reply #4 on: October 24, 2005, 12:39:49 PM »
I'll wait till someone else tries running the code...

(Didn't modify it at all, I know what you'r thinking).
« Last Edit: October 24, 2005, 12:40:09 PM by Numsgil »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Bots' code
« Reply #5 on: October 24, 2005, 06:22:22 PM »
Ah, well because of the new placment control the settings are NOT backword compateble... So...

To load settings just:

Quote
'even? the stuff by bau
 '   For t = 0 To maxsp
  '  If Not EOF(1) Then Input #1, specie(t).PosCi 'Circuler Plasment
  '  If Not EOF(1) Then Input #1, specie(t).PosRe 'Regenerate with defult position
  '  Next

then after they load resave them again... and uncomment.
Note this WILL make the settings unusable for Non-Bau virsions.

***The Program still loads the defult.set fine, so It won't crash on you if you are constructing settings from scratch*** ***If you are wondering why autosave is completely %$%# , it is really not, I simply modified it to evolve first bot, and dont worry about "Good Factor" thats also part of the prosses***
« Last Edit: October 24, 2005, 06:29:47 PM by Botsareus »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Bots' code
« Reply #6 on: October 24, 2005, 06:37:42 PM »
The following apply to data that can be any length, and there is no way to tell. (I hope you will get what I am talking about)

Num, from now on we make the program check what exactly is in the settings file , each "part" should have markers (incoded rubble that indicates what the settings file does or does not have.).

And this should happen if the settings file does not have any markers at all prompt: "Is it ok to convirt your old settings file into a newer settings file?"
Then if no , read it as the old one.

And this should happen if the settings file does have any new markers. prompt: "Is it ok to convirt your old settings file into a newer settings file?"
Then if no , read it as the settings file with the markers it has.

This way If we get a settings file with some new data missing, or we run a new settings file on a old virsion , we wont get any problems because the program will search for the markers before reading the settings.

The only problem is how to make it search? and then change the "get..." position.
Looks like we are going to load the whole think binary and then opperate on it, unless you know some commands I dont.

And the marker stuff must only apply to the new stuff because the old stuff must still work in the old DB pre 2.3 Db...

(although now that I think about it all above is not really nessisary If I just would of coded my stuff to the end of the file  :banghead: )
« Last Edit: October 24, 2005, 06:49:05 PM by Botsareus »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7709
    • View Profile
Bots' code
« Reply #7 on: October 24, 2005, 08:02:01 PM »
You know, if you had just put your robot placement code a few lines lower in the settings files, it would have been backward compatible.  With 2.37 anyway.

All new features are added at the bottom of the settings files.  Older programs just don't read that far, and newer programs check to see if it's at the end of file early.  If it is, it stops reading.

They're both forwards and backwards compatible, more or less.
« Last Edit: October 24, 2005, 08:03:05 PM by Numsgil »

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
    • http://community.webshots.com/user/objack2
Bots' code
« Reply #8 on: October 24, 2005, 10:19:16 PM »
Quote
They're both forwards and backwards compatible, more or less.
is that anything like being sorta pregnant? ;)
不知
~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: 7709
    • View Profile
Bots' code
« Reply #9 on: October 24, 2005, 10:35:52 PM »
Exactly.

In theory they should all work with each other.  In practice they never do.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Bots' code
« Reply #10 on: October 25, 2005, 07:13:59 PM »
Interesting, that makes writing the newset virsion backword compatible. But moding an older virsion with new stuff is not compatible with the newest virsion.

Now I wonder , were is Zelos getting ideas that I cant program?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7709
    • View Profile
Bots' code
« Reply #11 on: October 25, 2005, 07:16:11 PM »
From your mom.

Sorry, I'm on a string of "your mom" jokes, and I seem to be getting worse.  Terribly bad manners of me, I haven't even met your mom.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Bots' code
« Reply #12 on: October 25, 2005, 07:20:17 PM »
Alright already... Bad week.... Bad week.... Bad Week.....

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Bots' code
« Reply #13 on: October 26, 2005, 12:12:11 PM »
:sad2: I already done most of the work PY is doing again right now, People care to partisipate when PY is working on it. But when a "CR NOOB" is working on it no one cares... :help:

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Bots' code
« Reply #14 on: October 26, 2005, 06:29:20 PM »
I get it. I will make three Identical threads without the leu...