Code center > Bugs and fixes

Let's make a stable platform

<< < (6/26) > >>

Numsgil:
Yes, this is a main pain PY and I have dealt with since time immorial.

Sometimes I wanted to yell at my computer "No, you find sysvars2.21.txt!"

What I ended up doing is wherever the program sets up MainDir (it's a variable) I check to see if the left most bit is "C:\darwinsource" cause that's where I keep the source codes.  If it is, I delete that bit and set it equal to: "C:\DarwinbotsII\" cause that's where I keep my DB install.

Somethign similar should work for you, but it takes a bit of finagling to set it straight.  Feel free to downlaod 2.4's source and see how I did it.

Testlund:
Here's that Run-Time error 6 bug, appeared after a one hour long simulation.

 rob(n).mem(refvelscalar) = Sqr(rob(n).mem(refvelup) ^ 2 + rob(n).mem(refveldx) ^ 2) ' how fast is this robot moving compared to me?

Are you looking into these bugs I'm reporting here?

Botsareus:
CANT PROGRAM ARE ME!!!!!!! NOT US!!!!!!!

It might help when you press the "debug" button, to go to the highlighted line, and hover with the mouse over each variable. It will get you what kind of numbers you are getting from each. (and sometimes if you modify the code you can get crazy numbers in places that were low before)

You might also get other information then numbers if I can recall correctly, by hovering over stuff and waiting for the tool tip to apper...

Testlund:
Ok, here's a full bug report. (sigh)

A 1h 16 min simulation caused a crash displaying the error message:

Run-time error 6 overflow.

Offending code:

 rob(n).mem(refveldx) = (rob(o).vy * Cos(rob(n).aim) + rob(o).vx * Sin(rob(n).aim)) - rob(n).mem(veldx)

HOVERING THE MOUSE over the code...as Botsareus demanded...displays a lot of different things depending on where you hover the mouse. I don't know how I can explain that in an understandable way and I don't see any use of telling you cause you can hover the mouse yourselves over the code if you scroll down to it. Unfortunately I forgot to check what line the above mensioned code is located but you can copy the code and search for it via the Find button.

Changing the mutation to anything higher than 1 on the Mutations tab, clicking change and going back to the GUI causes a crash displaying Run-Time error 13: Type mismatch.

Offending code:

MutLab.Caption = (TmpOpts.MutCurrMult) + " X"

Location: Ln 764, Col 5

Clicking on the x in the upper right corner on some windows causes the program to hang. Must be closed through Ctrl-Alt-Delete.

Clicking options->Show robot info->Dna without selecting a robot first causes a crash displaying an error message that can't be read because it's obscured by a window.

Offending code:

  While Not (rob(n).DNA(t).tipo = 4 And rob(n).DNA(t).value = 4)

Location: Ln 1402, Col 1

That's all the bugs I've found.

Botsareus:
Hold on , are you talking about my code or not?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version