Author Topic: Let's make a stable platform  (Read 34148 times)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Let's make a stable platform
« Reply #15 on: October 25, 2005, 04:50:12 PM »
Maybe one of your fields is too big?

For instance, if you try to put 1000000000000000000000000000 in the field for how much nrg each veggy gets per cycle, it will crash the program.  If a settings file being loaded has this (or any other nubmer of out of bounds problems) you'll never get the GUI to show itself.
« Last Edit: October 25, 2005, 04:50:21 PM by Numsgil »

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Let's make a stable platform
« Reply #16 on: October 25, 2005, 04:55:30 PM »
No, I allready know I shouldn't have 1 billion NRG for my veggies (lol), you've allready told about that. I have 10 NRG/cycle for the veggies set. Also I think I have quite low values for the other fields too. Simulation size: Field width: 16000 and Field height: 12000. Max veggies: 100. Waste treshold: 100.

If a setting is not good for the program it should not be available.
« Last Edit: October 25, 2005, 04:56:06 PM by Testlund »
The internet is corrupt and controlled by criminally minded people.

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
Let's make a stable platform
« Reply #17 on: October 25, 2005, 04:56:13 PM »
so we need a good default setting to start with ...
or one never gets far enough to test anything else, eh?
不知
~griz~
[/color]
   "The selection of Random Numbers is too important to be left to Chance"
The Mooj  a friend to all humanity
[/color]

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Let's make a stable platform
« Reply #18 on: October 25, 2005, 04:58:30 PM »
Yeah, VB is great for GUI development until you realize that idiot-proofing it is near impossible.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Let's make a stable platform
« Reply #19 on: October 25, 2005, 04:58:31 PM »
Yeah, big default buttons for every tab!  :boing:
The internet is corrupt and controlled by criminally minded people.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Let's make a stable platform
« Reply #20 on: October 25, 2005, 04:59:14 PM »
That's probably a good idea.  Really a single button would work just as well.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Let's make a stable platform
« Reply #21 on: October 25, 2005, 05:04:05 PM »
The download worked for me just fine. I use it at home but here at work I have the full enterprize edition with all the bells and whistles.  :D
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Let's make a stable platform
« Reply #22 on: October 25, 2005, 05:04:58 PM »
Hmm, make less than 80 changes at once?

Sounds intriguing...

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Let's make a stable platform
« Reply #23 on: October 25, 2005, 05:28:01 PM »
I think I know now what is causing run-time error 13. Mismatch something. As soon as I changed the mutation to 32x on the mutation tab, clicked change, and then access the GUI again I got the crash.
The internet is corrupt and controlled by criminally minded people.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Let's make a stable platform
« Reply #24 on: October 25, 2005, 05:37:21 PM »
Quote
btw Test, may I call you Test for short? ;)
Sure. I whould prefere to upload my own avatar, but I guess I can't do that. I have some aquariums with fishes, so I thought I'll chose a fish.

I can only find bugs, not fix them. Know nothing about programming.

Where are you PY??? :help:
« Last Edit: October 25, 2005, 05:38:09 PM by Testlund »
The internet is corrupt and controlled by criminally minded people.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Let's make a stable platform
« Reply #25 on: October 25, 2005, 07:08:12 PM »
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.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Let's make a stable platform
« Reply #26 on: October 25, 2005, 07:42:49 PM »
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?
The internet is corrupt and controlled by criminally minded people.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Let's make a stable platform
« Reply #27 on: October 25, 2005, 07:48:26 PM »
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...

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Let's make a stable platform
« Reply #28 on: October 25, 2005, 09:52:14 PM »
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.
The internet is corrupt and controlled by criminally minded people.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Let's make a stable platform
« Reply #29 on: October 25, 2005, 09:55:22 PM »
Hold on , are you talking about my code or not?