Welcome To Darwinbots > Newbie

Hello, I'am new and I've got a virus question.

<< < (4/7) > >>

Jez:
I don't see anything wrong with what you are seeing in the code. Are you letting the ties harden first? That would cause a problem. Perhaps Nums will spot something when he looks again, he's much better at the maths bit than I am.  
Post the code you are working on if you can't figure it out still and I'll have another look, it's often easier when you can see the whole bot and what it's doing.

Sometimes there are problems posting here, not very often though, I think it's just the Invision forums getting too busy, at least that's the message I got when I tried to post something earlier!  

Peter:
Well you asked for the code here you get it.

' reproducing while in singe form

cond
*.numties 0 =
*.robage 0 !=
start
7 42 store
50 .repro store
'1.readtie store
stop

' repro second
'cond
'*.numties 1 =
'*.robage 0 !=
'stop
'50 .repro store               'not used jet
'stop

' Child connect to mother
cond
*.robage 0 =
start
.tie inc
stop

' sharing energie in organism
cond
*.numties 1 =
start
1 .tienum store
314 1 *42 mult 1 add mult .fixang store 'both siding desame direction.
50 .sharenrg store
stop


' body strengthening

cond
*.nrg 2000 >
start
100 .strbody store
stop

'waste desposal

cond
*.waste 10 >
start
*.waste .shootval store
-4 .shoot store
stop


Can you now tell what's wrong?

Numsgil:

--- Quote from: Peter ---It is not working with me. And what am I exactly seeing wrong in the code


314 ((2 *42 mult) 1 add) mult

314*((2*1)+1)=942
314*((2*0)+1)=314

This is what I am seeing in my code.


314 ((-1 *42 mult) 1 add) mult

314*((-1*1)+1)=0
314*((-1*0)+1)=314

This is what I am seeing in your posted code.

What am I seeing wrong.

Practical they're doing desame in the simulation. How does this work.  

In fact I posted this twice, the first time it got stuck, is this happening more often.
--- End quote ---

Yeah. you're right.  Guess I haven't been programming bots enough lately.

Jez:
fixang always seems to be set to 32000, at least according to the console
(select and rclick on bot and open console, type '? .fixang' in console
without quotation marks and it will return the value).
Why fixang is remaining at 32000 and not being changed when you enter a new
value is a mystery.

This raises the question of why your bot is turning at all and why, when they do turn, they are
not turning by the same amount.
Although in fact your bot is only setting its direction after about 30 turns,
by which time the ties should be hardened anyway and it shouldn't be able to
turn.

I have just checked this against Dimacheri(MB)(Shen) and it is suffering from
similar problems.I think the reason that bot works and manages to change the
angle of its ties is simply because it moves.

I suggest we wait and see what Nums has to say about the problem, if it's a
really easy problem to find and fix then we could be lucky, otherwise we'll
just have to be patient.

The only mistake I noticed in your code btw was *42 was either 0 or 7 but that would have just meant your bot should have turned 3.75 rotations instead of .75 of a rotation!

Peter:
How is the 7 coming there. , strangely enough it's doing as one, that's a coinfidence.

So, I gues there's a mistake in the code, maybe there's one of the reasons multibots doesn't work well. But a well now I've got to wait onto the fixing, allrigth.

Another question, this time not about bots, but I feel I've got to keep asking questions .

I gues I have'nt logged out yesterday, are you not automatic logged out, I was still logged in when I came here back. The question if it wasn't clear.

Are you here automatic logged out or do you stay in until you log out, how does it exactly work in here.


(I know almost for sure I have broken a record of asking question's in row in here, I hope you don't mind )

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version