Author Topic: gene '8 activates yet tienum stays 0  (Read 3216 times)

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
gene '8 activates yet tienum stays 0
« on: November 22, 2007, 02:28:27 PM »
In order to test  how safe it is to rebuild a bots Dna using Viruses I wrote this testbot, however
gene 8 does activate but the tienum value stays 0
'1
cond
*.tmemval 0 =
*.genes 8 <
*.robage 110 >
start
.mkvirus .tieloc store
*.genes 1 add .tieval store
stop

'2
cond
*.tmemval 1 =
*971 1 =
start
.vshoot .tieloc store
10 .tieval store
stop

'3
cond
*.robage 100 >
*.robage 110 <
*971 1 =
start
4 .delgene store
95 .sharenrg store
stop

'4
cond
*.body 100 >
*971 2 =
start
*.body 100 .fdbody store
stop

'5
cond
*.robage 0 =
start
971 inc
stop

'6
cond
*.robage 0 >
*.nrg 10000 >
*.numties 0 =
start
10 .repro store
stop

'7
cond
*.robage 1 =
start
1 .tie store
stop

'8
cond
*.numties 0 >
*.tienum 0 =
start
1 .readtie store
1 .tienum store
.vtimer .tmemloc store
stop


end

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
gene '8 activates yet tienum stays 0
« Reply #1 on: November 23, 2007, 06:46:53 AM »
Figured it out seems like numties is reset to 0 every turn and so I have to define tienum before the other tiegenes

(simple but gene 8 in first place and change 4 --->5 delgene and you have an excellent example how the big bots restore their genome using the backups/small bots)