Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - strangers

Pages: 1 2 [3]
31
DNA - General / Tie Feeding Idea
« on: December 12, 2006, 08:24:29 PM »
Then couldn't I alter the code to say something like:
Code: [Select]
cond
*.numties 0 >
*.counter 0 =
start
-1 .tieloc store
-1000 .tieval store
*55 .tienum store
stop

cond
*.numties 0 >
*.counter 1 =
start
-1 .tieloc store
-1000 .tieval store
*55 .tienum store
stop


cond
*.numties 0 >
*.counter 2 =
start
-1 .tieloc store
-1000 .tieval store
*55 .tienum store
stop
etc., etc, etc.

32
DNA - General / Tie Feeding Idea
« on: December 12, 2006, 07:48:25 PM »
I've already read that tutorial.

33
DNA - General / Tie Feeding Idea
« on: December 12, 2006, 07:23:56 PM »
This code would tell the bot to extract half of the tied bots energy, correct?
Code: [Select]
cond
*.numties 0 >
start
-1 .tieloc store
*refnrg 2 div -1 mult .tieval store
*55 .tienum store
stop

34
DNA - General / Tie Feeding Idea
« on: December 11, 2006, 06:49:20 PM »
Well then I can remove the tie firing and deleting parts, I was using them to allow them to seperate before they start shooting eachother. Conspec recognition would be helpful with -1 shots. I just noticed the rotate and cont. feeding gene is in there twice. Well, I'll make the modifications, repost the dna.
What would a gene(s) look like that would make a bot drop a tie on another bot or veg after 19 cycles, make a 180 rotation, refire the tie, and then continue feeding. I can do most of it but I'm not sure how to make the bot drop the tie after 19 cycles.

35
DNA - General / Tie Feeding Idea
« on: December 10, 2006, 07:06:08 PM »
I guess I might aswell show the whole thing incase I did make any errors:
Code: [Select]
'Initialize
'*******
cond
*.robage 0 =
start
1 .tie store
13 56 store
100 rnd 55 store
mult 648
stop


cond
*.robage 1 =
start
1 .deltie store
stop

'Wide search 1
'************
cond
*.eye1 *.eye5 >
start
mult -100
stop

'Wide search 2
'************
cond
*.eye9 *.eye5 >
start
mult 100
stop

' Simple search pattern
'*******************
cond
  *.eye3 *.eye5 >
start
mult -25
stop

'Simple search pattern part 2
'************************
cond
  *.eye7 *.eye5 >
start
mult 25
stop

' Moving
'**********
cond
  *.vel 30 <
  *.refeye *56 !=
start
  30 *.vel sub 2 div .up store
stop

' Obtaining Food
'*************
cond
  *.eye5 40 >
start
-1 .shoot store
stop

'Avoid conspecifics
'***************
cond
*.refeye *56 =
start
mult 180
stop

' Gene 12
cond
*50 0 >
start
mult 628
50 dec
stop

‘Rotate back and continue feeding
'****************************
cond
*50 0 >
start
mult 628
50 dec
stop

'Reproduction
'****************
cond
*.nrg 10000 >
start
mult 628
50 inc
20 .repro store
stop

cond
*.robage 199 =
start
0 .repro store
stop

cond
*.robage 199 >
*.nrg 10000 >
start
mult 628
50 inc
20 .mrepro store
stop

‘Perform the rotation
'************************
cond
start
.aimdx store
stop

'Tie Feeding
'****************
cond
*.eye5 30 >
*.eye4 *.eye6 =
*.refeye *56 !=
*.numties 0 >=
*.numties 3 <
start
*55 .tie store
*56 .readtie store
stop

cond
*.numties 0 >
start
-1 .tieloc store
-1000 .tieval store
*55 .tienum store
stop

Cond
*.trefeye *56 =
start
*55 .deltie store
stop

'Slime Managemant
'************************
cond
*.slime 90 <
start
100 .mkslime store
stop

'Waste Management
'*************************
cond
*.waste 100 >
start
1 .backshoot store
-4 .shoot store
*.waste .shootval store
stop
end
Please, feel free to point out anything that needs reworking.
EDIT: Removed mutant, stretched page too much.

36
DNA - General / Tie Feeding Idea
« on: December 10, 2006, 02:46:21 PM »
The reason that I typed .refnrg as .refenergy was because I was typing from memory I guess I missed it.
And can anyone suggest a way to make the bots not fire ties at each other immediatly after birth? Wait, if when the bot gives birth their both facing each other the wouldn't this code make them rotate away from eachother before they fire the ties?
Code: [Select]
'Initialize
'*************
cond
*.robage 0 =
start
1 .tie store
13 56 store
100 rnd 55 store
mult 648
stop

cond
*.robage 1 =
start
1 .deltie store
stop

'Reproduction
'****************
cond
*.nrg 10000 >
start
mult 628
50 inc
20 .repro store
stop

cond
*.robage 199 =
start
0 .repro store
stop

cond
*.robage 199 >
*.nrg 10000 >
start
mult 628
50 inc
20 .mrepro store
stop

‘Perform the rotation
'************************
cond
start
.aimdx store
stop
This is the actuall reproduction gene with the added turning gene added to the initialize gene.

37
DNA - General / Tie Feeding Idea
« on: December 10, 2006, 01:45:33 PM »
Well, I'm working on tie feeding and was wondering if I could modify the tie feeding gene from Purple Youko's 2.13 tutorial to allow a bot to pick up a veggie or bot, attach to it for set amount of time and extract a set amount of energy then release it, reproduce, and repeat. This is all I have:
Code: [Select]
cond
*.eye5 77 !=
*.eye5 30 >
*.eye4 *.eye6 =
*.refeye *56 !=
*.numties 0 =
start
*55 .tie store
*56 .readtie store
stop

cond
*.numties 0 >
start
-1 .tieloc store
*.refenergy 2 div .tieval store
*55 .tienum store
stop

Cond
*.trefeye *56 =
start
*55 .deltie store
stop
*55 Has been set as a random number before hand.
*56 Has been set for the .refeye value before hand.
Any suggestions?
And I also wondering if I could modify the gene to cause it to attach to a veg and another bot and make it transfer waste from the veg into the first bot and then into the second bot until it reaches the waste threshold and dies. Wait, does reaching the waste threshold make a bot die?.....

Pages: 1 2 [3]