Darwinbots Forum

Code center => Darwinbots Program Source Code => Topic started by: Numsgil on October 22, 2005, 07:40:37 PM

Title: Bots' code
Post by: Numsgil 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
Title: Bots' code
Post by: Botsareus 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...
Title: Bots' code
Post by: Numsgil 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:
Title: Bots' code
Post by: Botsareus on October 24, 2005, 11:57:27 AM
Whats the evil laff about?  :huh:  ?
Title: Bots' code
Post by: Numsgil 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).
Title: Bots' code
Post by: Botsareus 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***
Title: Bots' code
Post by: Botsareus 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: )
Title: Bots' code
Post by: Numsgil 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.
Title: Bots' code
Post by: Griz 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? ;)
Title: Bots' code
Post by: Numsgil on October 24, 2005, 10:35:52 PM
Exactly.

In theory they should all work with each other.  In practice they never do.
Title: Bots' code
Post by: Botsareus 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?
Title: Bots' code
Post by: Numsgil 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.
Title: Bots' code
Post by: Botsareus on October 25, 2005, 07:20:17 PM
Alright already... Bad week.... Bad week.... Bad Week.....
Title: Bots' code
Post by: Botsareus 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:
Title: Bots' code
Post by: Botsareus on October 26, 2005, 06:29:20 PM
I get it. I will make three Identical threads without the leu...
Title: Bots' code
Post by: Botsareus on October 26, 2005, 06:38:16 PM
Bots' code is on the FTP.

Everyone go check it out, I guess  

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  

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...

(note: sorry the settings files in my progtam is not backwords or forwards compatible)
(but you can desable this two or four line temporarly:

  '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 enable them after you "resave" the settings.)

(hopefull that makes num 3 times as guilty for not moving the "stuff by bau" below the mutations save rotine himself, just because I maid a simple mistake it does not mean you have to prove it to me num)
Title: Re: Bots' code
Post by: Botsareus on November 29, 2014, 05:14:06 PM
Numsgil, think it is worth making db3 settings compatible with db2? Personally, I am beginning to hate the whole db2 settings scheme enough to stop backwards compatibility, time to replace it all with just a single file.
Title: Re: Bots' code
Post by: Botsareus on November 29, 2014, 05:27:31 PM
Actually it is more a community question:

Anyone got any settings files that are worth saving? (Including Numsgil)
Title: Re: Bots' code
Post by: Botsareus on November 29, 2014, 06:46:05 PM
So in summery,

Is it worth to port entire specific settings files when there are major revisions in a program like Darwinbots. 2. What settings?



Sorry Spike, this post is borderline productive post, I just broke yet another of my little rules :P
Title: Re: Bots' code
Post by: spike43884 on November 30, 2014, 11:42:55 AM
Oh god, I only read half way down, but good god bot. Stop being so miserable, I don't want to reprogram your mind to stop being miserable manually.
Title: Re: Bots' code
Post by: Numsgil on December 03, 2014, 04:47:48 PM
I'm not sure why we're doing this in this old thread, but:

1.  It's maybe not critical to keep the backwards compatibility of the settings file, but it's a definite plus.  Anything that reduces the pain of upgrading for an end user is worth it.  There's no point in inconveniencing multiple end users to make development easier.

2.  DB3 and DB2 are going to be so different in how they fundamentally work that trying to make the settings apply from one to another isn't practical.  Maybe 1 in 10 settings from DB2 will apply to DB3.  Still, we can try and make them compatible and figure out some sort of upgrader down the road, but let's cross that bridge when we come to it.

3.  If you really hate the current DB2 scheme (why?), you could replace it with a new one, and just have an upgrade path for any settings files incoming from an old version that will put it in to a format compatible with the new version.  But that's a large change with lots of possibility to completely screw everything up unless you're very aggressive at testing it.  Is it worth it?  What's the gain of changing it?  And does it outweigh the risk of breaking things?
Title: Re: Bots' code
Post by: Botsareus on December 03, 2014, 06:28:55 PM
Well first, I did lose trust in the sustainability of the forum to begin with a long time ago, I just hoped for the best and expected the worst.
Second, I am seriously getting sick of the constant attack patterns. An interface is important to anything.
Third, the only thing I really (hate proposed as a question) about your current DB3 scheme mods is the lack of sound, the complete braking of sexual reproduction, and the need to distance yourself from somewhat controlled velocity. Be it fully acceleration based or completely static. Your choice.
Title: Re: Bots' code
Post by: spike43884 on December 04, 2014, 11:15:40 AM
DB2 works well on a lot of bot functions, and interface layout, but on actuall functionality (E.g. IM and changing arena) its fatally flawed. It also suffers on the problem that its very 1 dimensional to identifying stuff outside of you, you have eyes, you can see nothing, a shape (of which you can do nothing to react to) or see an edible thing, and its eyes. Mhm, this is the major limiting factor, no nutrient fluxs, no smell, no sound (Though sound is less nessisary than smell/nutrition) and food then in turn, along with anything else is forced down that thin corridor of options.
Title: Re: Bots' code
Post by: Botsareus on July 16, 2015, 12:35:51 PM
you can see nothing, a shape (of which you can do nothing to react to)

... Actually you can react to shapes just fine if you have "Robots can see shapes" option enabled in the shape options under "Add shape."
Title: Re: Bots' code
Post by: spike43884 on July 18, 2015, 09:22:22 AM
you can see nothing, a shape (of which you can do nothing to react to)

... Actually you can react to shapes just fine if you have "Robots can see shapes" option enabled in the shape options under "Add shape."
I sounded very poetic in there, and im not to sure what I mean, but I believe I meant being able to interact with shapes more indepth?