Bots and Simulations > DNA - General
Autotroph Network
Ulciscor:
Lol right I promise I'm not going to ask any more questions until I read more about memory locations etc I am being stupid. Thanks [num]!
Numsgil:
No prob. It takes a while to gather all the information in your mind.
Ulciscor:
Oklies I have done a 'working' version which works in the respect that it reproduces and ties together with other bots, but I don't really know how to test the energy sharing as all the veggies seem to get max energy immediately in my DB.
'Start Genome
def tie1 50
def tie2 51
def tie3 52
def nrg1 53
def nrg2 54
def nrg3 55
'Gene1:
cond *.nrg 6000 >
*.eye5 0 =
start
50 .repro store
stop
'Gene2:
cond *.eye5 0 !=
*.numties 0 =
start
15 .aimdx store
stop
'Gene3:
cond *.eye5 0 !=
*.numties 0 !=
start
314 .tieang1 store
stop
'Gene4:
cond *.eye5 0 !=
*.refeye *.myeye =
*.tie1 1 !=
start
1 .tie store
.tie1 inc
stop
'Gene5:
cond *.eye5 0 !=
*.refeye *.myeye =
*.tie2 1 !=
start
2 .tie store
.tie2 inc
stop
'Gene6:
cond *.eye5 0 !=
*.refeye *.myeye =
*.tie3 1 !=
start
3 .tie store
.tie3 inc
stop
'Gene7:
cond *.numties 1 =
start
1 .readtie store
*.trefnrg .nrg1 store
stop
'Gene8:
cond *.numties 2 =
start
1 .readtie store
*.trefnrg .nrg1 store
2 .readtie store
*.trefnrg .nrg2 store
stop
'Gene9:
cond *.numties 3 =
start
1 .readtie store
*.trefnrg .nrg1 store
2 .readtie store
*.trefnrg .nrg2 store
3 .readtie store
*.trefnrg .nrg3 store
stop
'Gene10:
cond *.nrg1 2000 <
*.numties 0 >
start
1 .tienum store
-1 .tieloc store
1000 .tieval store
stop
'Gene 11:
cond *.nrg2 2000 <
*.numties 1 >
start
2 .tienum store
-1 .tieloc store
1000 .tieval store
stop
'Gene 12:
cond *.nrg3 2000 <
*.numties 2 >
start
3 .tienum store
-1 .tieloc store
1000 .tieval store
stop
end
Numsgil:
you probably have the NRG/cycle way too high. It's in the general tab. It should be like ~5. Older versions used that variable for something else, which is why it's so high.
Ulciscor:
Is there a way I can check if a tie still exists? I know numties gives the number of ties attached but it doesn't say which is missing. I.e if I had ties 1, 2 and 3 last cycle now I only have 2 ties, which one is missing?
Navigation
[0] Message Index
[*] Previous page
Go to full version