Welcome To Darwinbots > Newbie

reading problem

(1/3) > >>

Shadowgod2:
i was making a multi bot and as i tested the first stage the genes wouldn't delete. so i tried to figour out the problem. i found several bugs.

first was some of the sysvars were not put in right, in the text was .shoot but said 7 in the program so no issue but strange

the second and the problem was that body in text is nothing in program but 311 in text is body in program and works fine
body != 311 but 311 = body yet says body regardless

i used 2.45.03 and the newer version and still the bug persists

it only seems to be bugged with this bot too. any other bot *.body works fine

i moved it to a different file same bug type but text body is 0 in program

Botsareus:
Well what is happening here is the DNA is converting your commands into there literal values. Believe it or not ".shoot" is the same thing as "7"

So, actually

--- Code: ----1 7 store
--- End code ---

 will work exactly the same as

--- Code: ----1 .shoot store
--- End code ---

 :P


Botsareus:

--- Quote ---it only seems to be bugged with this bot too.
--- End quote ---

Can you just give me the bot's DNA and give me the aprox. word count at where in the DNA the bug occurs. thx.

Shadowgod2:
i know it will work the same when it converted .shoot to 7 which is why i said no problems it's just strange is all
i've been at this on and off for about a year now

it's in the text just in the 3rd gene which i made to find the problem. just switch body with 311.

cond
 *.body 31000 >
start
 1 .delgene store
 0 .begin store
stop

109 in but it doesn't mater where it is, i've tried, even *.nrg doesn't work right in this bot. i don't get it

also, why was this moved to newbie?

Botsareus:
Try


--- Quote ---cond
 *311 31000 >
start
 1 .delgene store
 0 .begin store
stop

--- End quote ---

Wait a minute, are you saying that:

.body = 311 works but

311 = .body does not?


(don't forget, you must always put a "." in the beginning)


Also,


--- Quote ---cond
 311 * 31000 >
start
 1 .delgene store
 0 .begin store
stop

--- End quote ---

Should work too.

Even try:


--- Quote ---cond
.body *  31000 >
start
 1 .delgene store
 0 .begin store
stop

--- End quote ---


Btw, Awesome Avatar.

Navigation

[0] Message Index

[#] Next page

Go to full version