Code center > Darwinbots Program Source Code

The shots erray is locked temporarly

<< < (2/4) > >>

Numsgil:
Then I have no idea.  Maybe it's a Mandelbug.  A nasty bug type that is characteristically inexplicable and apparently random.

Botsareus:
I am beginning to think my cpu over heated or something. It is summer out there.

But I put on error go to kill in there just as a safty mesure, I still think it was caused by the DNA robot with way too mutch Junk dna.

Botsareus:
I FOUND THE PROBLEM.

IN MY FIRST POST I DID NOT POST THE CORRECT CODE BC THE TWO CODES ARE REALLY SIMILAR; The right code is called "createshot" (NOT "newshot").

And the cause of the error is right here:

--- Quote ---createshot Shots(t).x, Shots(t).Y, -.vx, -.vy, -5, h, .nrg / 2, Shots(t).range, vbYellow

etc.
--- End quote ---

you cant pass shots(anything).anything to a sub or function that redims the shots inside!


O yea , mutated virsions of this: robot cause the error (don't know how usefull it will be)

Numsgil:
Alright I fixed it in my code.

Botsareus:
woohooo!  :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version