Darwinbots Forum

Bots and Simulations => Bestiary => EcoSim Bots => Topic started by: Botsareus on April 17, 2013, 11:47:53 AM

Title: sexbau and version 2.45.03
Post by: Botsareus on April 17, 2013, 11:47:53 AM
This robot was designed to test sexual reproduction in pond mode with left/right screen wrap enabled.

Code: [Select]
'sexbau by Botsareus to test type b repro.
'shipped with some junk dna
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
'vision setup
cond
*.robage 2 <
start
358 .eye0dir store
538 .eye1dir store
717 .eye2dir store
897 .eye3dir store
1076 .eye4dir store
1435 .eye6dir store
1614 .eye7dir store
1794 .eye8dir store
1973 .eye9dir store
50 .eye0width store
50 .eye1width store
50 .eye2width store
50 .eye3width store
50 .eye4width store
50 .eye5width store
50 .eye6width store
50 .eye7width store
50 .eye8width store
50 .eye9width store
'cospec setup
55 .out1 store
'bouy setup
10 .setboy store
stop
'I see something in a waird eye, lets turn so I see it with eye5

cond
*.eye1 0 >
start
556 .aimdx store
stop
cond
*.eye9 0 >
start
-556 .aimdx store
stop

cond
*.eye2 0 >
start
417 .aimdx store
stop
cond
*.eye8 0 >
start
-417 .aimdx store
stop

cond
*.eye3 0 >
start
278 .aimdx store
stop
cond
*.eye7 0 >
start
-278 .aimdx store
stop

cond
*.eye4 0 >
start
139 .aimdx store
stop
cond
*.eye6 0 >
start
-139 .aimdx store
stop

cond
*.eye5 0 >
start
0 .aimdx store
stop

'If conspec and not time to reproduce, then move -20

cond
55 *.in1 =
*.body 3000 <
start
-20 .up store
stop

'if not conspec and not time to reproduce, slowly move forward and shoot for food

cond
55 *.in1 !=
*.body 3000 <
start
-6 .shoot store
stop

cond
55 *.in1 !=
*.body 3000 <
start
1 .up store
stop

'if conspec and time to reproduce, slowly move forward shoot sperm and sexreproduce
'this gene will be amplifyed x8 and we distribute the male/female sex organs

cond
55 *.in1 =
*.body 3000 >
start
-8 .shoot store
'store this until body is less then 3000
1 999 store
stop

cond
55 *.in1 =
*.body 3000 >
start
50 .sexrepro store
'store this until body is less then 3000
1 999 store
stop

cond
55 *.in1 =
*.body 3000 >
start
-8 .shoot store
'store this until body is less then 3000
1 999 store
stop

cond
55 *.in1 =
*.body 3000 >
start
50 .sexrepro store
'store this until body is less then 3000
1 999 store
stop

cond
55 *.in1 =
*.body 3000 >
start
-8 .shoot store
'store this until body is less then 3000
1 999 store
stop

cond
55 *.in1 =
*.body 3000 >
start
50 .sexrepro store
'store this until body is less then 3000
1 999 store
stop

cond
55 *.in1 =
*.body 3000 >
start
-8 .shoot store
'store this until body is less then 3000
1 999 store
stop

cond
55 *.in1 =
*.body 3000 >
start
50 .sexrepro store
'store this until body is less then 3000
1 999 store
stop

cond
55 *.in1 =
*.body 3000 >
start
1 .up store
stop

'if robot already reproduced give some space

cond
*.body 3000 >
*999 1 =
55 *.in1 =
0 *.sexrepro =
start
-20 .up store
stop

'resets special case

cond
*.body 3000 <
start
0 999 store
stop

cond
*.edge 1 =
start
314 .setaim store
20 .up store
stop

999
998
997
996
995
994
993
992
991
990
989
988
987
986
985
984
983
982
981
980
979
978
977
976
end

Here also is the unofficial release of 2.45.03Beta.
Do not report in-sim crashes yet, I am still working on improving in-sim error handling.
You can report on anything else if you like.

For the specific experiment I ran, I disable asexual reproduction from the 'edit' menu
I also went into global settings and set kill all robots more then 6000 body points to avoid big berthas.
Also, Vegs starting position rectangle was repositioned to the top of the screen, and I put a small ledge 25/1000 height by 550/1000 width on near the top of the screen

Unfortunately the robots tend to lose the ability to reproduce as soon as they start mutating.
I was using default mutation rates, although I don't know if disabling point mutations will have any effect
Some ideas on this topic will be appreciated as well.
Title: Re: sexbau and version 2.45.03
Post by: Botsareus on April 18, 2013, 10:01:35 AM
I have a stable sexually reproducing Eco-System.
Title: Re: sexbau and version 2.45.03
Post by: Botsareus on April 18, 2013, 10:02:40 AM
Here is a zip of the sim. (hope it fits)
Title: Re: sexbau and version 2.45.03
Post by: Numsgil on April 18, 2013, 04:51:46 PM
Are the purple bots veggies?  Or is it the other way around?

Your poularion sizes are really small. I'd be concerned about long term viability with any sort of mutations.
Title: Re: sexbau and version 2.45.03
Post by: Botsareus on April 18, 2013, 05:34:11 PM
The green bots are veggies. Good idea, I may need to run the same sim bigger. I'll do that next time I get the chance to mess with it.

...

I was hoping you can run it for yourself. Oh well, guess I have to wait 'till Beta for that one.  :P
Title: Re: sexbau and version 2.45.03
Post by: Numsgil on April 18, 2013, 11:34:15 PM
I have processing power, but little motivation to play around in DB2.  I don't mind setting up a sim and having it periodically post saves to an FTP, but I don't really want to mess with crashes :/  A huge pain.
Title: Re: sexbau and version 2.45.03
Post by: Botsareus on April 19, 2013, 12:45:48 PM
Numsgil, it is a lot more stable then you think.  :) It has not crashed once during that run, in fact I have not seen an in-sim crash for a very long time.  I just want to add that safe mode feature as an extra precaution, in case me (or someone else working on DB2) screws something up.

I just want people (including you) to test this things as soon as they become available otherwise I feel like I am just wasting my time. Am I?  :)

I definitely want you to test this specific one (when you have time), simply to make sure the crossover algorithm works exactly as you want it to work. I am pretty sure it does, even still.
Title: Re: sexbau and version 2.45.03
Post by: NotLegalTender on June 08, 2013, 01:41:18 PM
Can you post the reproduction and conspec genes in the gene depository? I wanna try and modify it, to make organisms that effectively use spores.
Title: Re: sexbau and version 2.45.03
Post by: NotLegalTender on June 08, 2013, 01:46:14 PM
Also, is it possible for an organism on darwinbots to reproduce through both sexual reproduction and the asexual reproduction most bots have?
Title: Re: sexbau and version 2.45.03
Post by: NotLegalTender on June 08, 2013, 02:04:57 PM
Hm... I cannot modify the shots without it breaking the sexrepro.
Title: Re: sexbau and version 2.45.03
Post by: NotLegalTender on June 08, 2013, 02:17:55 PM
Wait, is it possible for one to make the sperm shots last longer by storing negative numbers in them?
Title: Re: sexbau and version 2.45.03
Post by: Botsareus on June 08, 2013, 03:41:59 PM
Quote
Hm... I cannot modify the shots without it breaking the sexrepro.

Yea, you will have to choose if you want a bot to fire a -8 or a regular shot. Forgot to mention that, sorry.

Quote
Also, is it possible for an organism on darwinbots to reproduce through both sexual reproduction and the asexual reproduction most bots have?

Yes. If you want to disable asexual reproduction, go to edit menu.
Title: Re: sexbau and version 2.45.03
Post by: NotLegalTender on June 08, 2013, 05:28:08 PM
Also, you should modify this organism so when it is ready to mate, it will search for a mate, because they just stand still when that happens.
Title: Re: sexbau and version 2.45.03
Post by: Botsareus on June 08, 2013, 06:18:11 PM
Well, I was going for a density dependent system, similar to a runaway nuclear reaction at some point it will go critical.
Title: Re: sexbau and version 2.45.03
Post by: NotLegalTender on June 08, 2013, 06:41:50 PM
Also, I have figured out that a "rape bot", a bot that reproduces with other sexually reproducing bots to pass its genes on, is infact, possible. I had this happen on me with testing around on sexually reproducing bots.
Title: Re: sexbau and version 2.45.03
Post by: NotLegalTender on June 08, 2013, 06:47:36 PM
And the hybrids are fertile.
Title: Re: sexbau and version 2.45.03
Post by: NotLegalTender on June 08, 2013, 06:52:28 PM
I should actually make a bot that meant to do so.
Title: Re: sexbau and version 2.45.03
Post by: NotLegalTender on June 08, 2013, 07:09:44 PM
The hybrids are not recognized by their kin. They try to mate with their kin, but, cannot do so because they are attacked.
Title: Re: sexbau and version 2.45.03
Post by: NotLegalTender on June 08, 2013, 10:12:34 PM
An actual rape bot so far, has not been made by me yet. But however, some of these sexually reproducing bots will try to reproduce with other species, and sometimes, succeed.
Title: Re: sexbau and version 2.45.03
Post by: Nightrider on June 14, 2013, 10:45:30 AM
Botsaurus, can you make an animal minimalis that sexually reproduce? I like evosims, so your bot IMHO is too complex for them  :D
Title: Re: sexbau and version 2.45.03
Post by: Botsareus on June 14, 2013, 11:00:14 AM
I'll see if I can get to it next Sat, sounds like a good challenge.
Title: Re: sexbau and version 2.45.03
Post by: Nightrider on June 14, 2013, 05:37:04 PM
thanks, that would be niiice :D i've been playing with this A-Life simulator since i discovered it about 5 or 6 years ago, but after a year i stopped and since a month i'me back again... a little thing i've got to say, is that DB has not changed much over the years (except the fact that now it NEVER crashes, at least for me).
Title: Re: sexbau and version 2.45.03
Post by: Botsareus on June 22, 2013, 10:58:46 AM
Here you go:

It takes a while for the robots to initially find each other, a nicer search algorithm would not hurt.

But anyway here is a nice version of a sex repro Animal_Minimalis:
Title: Re: sexbau and version 2.45.03
Post by: Nightrider on June 24, 2013, 03:05:53 AM
Thanks,but it doesn't work XD it just stand still until something is in eye5 and if it sees a conspec, it starts shooting sperm to it forever XD can u fix it?
Title: Re: sexbau and version 2.45.03
Post by: Botsareus on June 24, 2013, 12:30:35 PM
Both robots must be ready to reproduce.

Try loading in like 50 robots and make sure they have plenty of food.

As mentioned, there is a good chance that they are simply not finding each other because the search algo. is not really good.

Also, make sure you are using the newest version of DarwinBots.
Title: Re: sexbau and version 2.45.03
Post by: Nightrider on June 24, 2013, 04:19:46 PM
they just don't search food unless it's in front of them, have u tried it before posting? XD it's just a stupid useless robot :P
Title: Re: sexbau and version 2.45.03
Post by: Botsareus on June 25, 2013, 12:38:04 PM
lol, the non-sex-repro is the same way.

I thought the idea was for you to understand how sex repro works.

How about you write one from scratch and post it? Consolt NotLegalTender if you have any issues, I am working.