Code center > Darwinbots3

Bot testbed

<< < (3/13) > >>

Shadowgod2:
well probably same bug as above but it might be easier to find the bugs... idk i'm not a programmer but if you set the seg number to 5 the rendering crashes at 13. seems to only be 13 but you'll have to play with it

macro seg 5
seg 2 div { dup seg 2 div add swap seg add swap store } loop


seg is the number of segments btw... now to figure out how to mirror to the other side

also how do you read the memory of a location like this:

120 { dup (get memory of said location, modify it) swap store } loop

Numsgil:

--- Quote from: Shadowgod2 on April 05, 2017, 09:36:01 PM ---also how do you read the memory of a location like this:

120 { dup (get memory of said location, modify it) swap store } loop

--- End quote ---

You can use the ref command like so:


--- Code: ---120 { dup ref 5 add swap store } loop

--- End code ---

(I'm pretty sure that bot memory is saved between frames, but I saw an issue recently that made me question that assumption.  It was something I tested once a long time ago but haven't tested recently.  If it seems like memory is cleared every frame, let me know).

Shadowgod2:
Yea seems to be a bug when you start everything to 0 and try to just add 1 to it, it adds the 1 but seems to stop after that which is why i was confused. Thanks

Numsgil:
Bleh, sorry, I guess I need some better testing around the high level stuff.  I'm going on vacation soon, which means I'll either get a lot of programming done or none at all, so I'm not sure what sort of timeline for a fix would look like,

Shadowgod2:
Alright no problem. I'll still play with the bot dna see what i get. I feel like im getting pretty close to getting what i need to know for a basic swimmer or something allong those lines.. crude but workable.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version