Bots and Simulations > DNA - General
Err...WHAT IS BROKEN ON IT?
Shadowgod2:
Ok I'll look at it tonight
Shadowgod2:
i found your issue. you had a number above 32000 in your dna. gene6, nrg
i also fixed the code a bit
--- Code: ---'All Eyes(MB)
'By Spike43884
'Waits for his prey, all eyes ready then pounces!
'Refer to Sentry-Rule
'Gene 0 Eye settings
cond
*.robage 5 <
start
-571 .eye2dir store
571 .eye8dir store
-126 .eye1dir store
126 .eye9dir store
-287 .eye3dir store
287 .eye7dir store
-96 .eye4dir store
96 .eye6dir store
149 .eye2width store
149 .eye8width store
-30 .eye1width store
-30 .eye9width store
149 .eye3width store
149 .eye7width store
93 .eye4width store
93 .eye6width store
-30 .eye5width store
stop
' Gene 1 Food Finder waiting
cond
*.eye1 0 =
*.eye2 0 = or
*.eye3 0 = or
*.eye4 0 = or
*.eye5 0 = or
*.eye6 0 = or
*.eye7 0 = or
*.eye8 0 = or
*.eye9 0 = or
*.refeye *.myeye !=
start
157 rnd .aimdx store
stop
'Gene 2 Food Sighted
cond
*.eye1 0 >
*.refeye *.myeye !=
start
140 .aimdx store
stop
cond
*.eye2 0 >
*.refeye *.myeye !=
start
105 .aimdx store
stop
cond
*.eye3 0 >
*.refeye *.myeye !=
start
70 .aimdx store
stop
cond
*.eye4 0 >
*.refeye *.myeye !=
start
35 .aimdx store
stop
cond
*.eye6 0 >
*.refeye *.myeye !=
start
35 .aimsx store
stop
cond
*.eye7 0 >
*.refeye *.myeye !=
start
70 .aimsx store
stop
cond
*.eye8 0 >
*.refeye *.myeye !=
start
105 .aimsx store
stop
cond
*.eye9 0 >
*.refeye *.myeye !=
start
140 .aimsx store
stop
' Gene 3 Chase Food
cond
*.eye5 0 >
*.eye5 50 < and
*.refeye *.myeye =
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop
' Gene 4 Eat Food
cond
*.eye5 50 >
*.numties 1 >= and
*.refeye *.myeye != and
start
-1 .shoot store
*.refvelup .up store
stop
' Gene 5 Avoiding Family
cond
*.refeye *.myeye =
start
314 rnd .aimdx store
stop
' Gene 6 Join Colony
cond
*.eye5 0 !=
*.multi 1 != and
*.nrg 30000 >= and
*.refeye *.myeye = or
start
.tie inc
200 .fixlen store
20 .fixang store
30 .stifftie store
stop
' Gene 7 Reproduce
cond
*.nrg 20000 >
*.robage 3 > and
start
10 .repro store
stop
end
--- End code ---
you really need to remember your cond s and store s as well as... ok so i'm making a heavy tutorial on how to wright dna code because some of the stuff you do is just :wacko: . sorry no hard feelings and i've wanted to do a tutorial for a while anyway. i haven't because i had yet seen anyone have soo much trouble before now.
spike43884:
--- Quote from: Shadowgod2 on November 15, 2014, 02:09:57 AM ---i found your issue. you had a number above 32000 in your dna. gene6, nrg
i also fixed the code a bit
--- Code: ---'All Eyes(MB)
'By Spike43884
'Waits for his prey, all eyes ready then pounces!
'Refer to Sentry-Rule
'Gene 0 Eye settings
cond
*.robage 5 <
start
-571 .eye2dir store
571 .eye8dir store
-126 .eye1dir store
126 .eye9dir store
-287 .eye3dir store
287 .eye7dir store
-96 .eye4dir store
96 .eye6dir store
149 .eye2width store
149 .eye8width store
-30 .eye1width store
-30 .eye9width store
149 .eye3width store
149 .eye7width store
93 .eye4width store
93 .eye6width store
-30 .eye5width store
stop
' Gene 1 Food Finder waiting
cond
*.eye1 0 =
*.eye2 0 = or
*.eye3 0 = or
*.eye4 0 = or
*.eye5 0 = or
*.eye6 0 = or
*.eye7 0 = or
*.eye8 0 = or
*.eye9 0 = or
*.refeye *.myeye !=
start
157 rnd .aimdx store
stop
'Gene 2 Food Sighted
cond
*.eye1 0 >
*.refeye *.myeye !=
start
140 .aimdx store
stop
cond
*.eye2 0 >
*.refeye *.myeye !=
start
105 .aimdx store
stop
cond
*.eye3 0 >
*.refeye *.myeye !=
start
70 .aimdx store
stop
cond
*.eye4 0 >
*.refeye *.myeye !=
start
35 .aimdx store
stop
cond
*.eye6 0 >
*.refeye *.myeye !=
start
35 .aimsx store
stop
cond
*.eye7 0 >
*.refeye *.myeye !=
start
70 .aimsx store
stop
cond
*.eye8 0 >
*.refeye *.myeye !=
start
105 .aimsx store
stop
cond
*.eye9 0 >
*.refeye *.myeye !=
start
140 .aimsx store
stop
' Gene 3 Chase Food
cond
*.eye5 0 >
*.eye5 50 < and
*.refeye *.myeye =
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop
' Gene 4 Eat Food
cond
*.eye5 50 >
*.numties 1 >= and
*.refeye *.myeye != and
start
-1 .shoot store
*.refvelup .up store
stop
' Gene 5 Avoiding Family
cond
*.refeye *.myeye =
start
314 rnd .aimdx store
stop
' Gene 6 Join Colony
cond
*.eye5 0 !=
*.multi 1 != and
*.nrg 30000 >= and
*.refeye *.myeye = or
start
.tie inc
200 .fixlen store
20 .fixang store
30 .stifftie store
stop
' Gene 7 Reproduce
cond
*.nrg 20000 >
*.robage 3 > and
start
10 .repro store
stop
end
--- End code ---
you really need to remember your cond s and store s as well as... ok so i'm making a heavy tutorial on how to wright dna code because some of the stuff you do is just :wacko: . sorry no hard feelings and i've wanted to do a tutorial for a while anyway. i haven't because i had yet seen anyone have soo much trouble before now.
--- End quote ---
Well...
1)Thanks for fixing the errors, didn't know we had a cap on values :o
2)Well, the tiebots & multibots tutorials are horrific...they're nigh impossible to comprehend (even when sleep deprived) so...that'd be useful, feel free to use my mistakes as examples in tutorials :P
spike43884:
Err shadow, you've broken it, further...
Its now not-reproducing, not moving, not shooting...its litterally doing *nothing*
Shadowgod2:
actually i didn't break it. you've made some genes that fight each other when i fixed them. it's your conditions and your actions to those conditions.
ps the blob seems to do alright but does find a stable position and dies though.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version