Author Topic: Runtime error 6 overflow  (Read 4111 times)

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Runtime error 6 overflow
« on: December 26, 2005, 02:38:25 AM »
I got an error in version 2.4.A tonight.

Location: Shots_Module

Code:

tempa = CInt(rob(n).mem(VshootSys)) * CInt(20) '.vshoot * 20

Values:

tempa=0

CInt(rob(n).mem(VshootSys)) = 11509

n = 392

VShootSys = 338

CInt(20) = 20
The internet is corrupt and controlled by criminally minded people.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Runtime error 6 overflow
« Reply #1 on: December 26, 2005, 02:40:20 AM »
AND, I keep getting the problem with everything clumps together on one spot on the screen where nothing dies or multiplies.
The internet is corrupt and controlled by criminally minded people.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Runtime error 6 overflow
« Reply #2 on: December 26, 2005, 02:54:28 AM »
I'll fix the first.  The second can be fixed by not having your veggies blocked.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Runtime error 6 overflow
« Reply #3 on: December 26, 2005, 10:52:29 AM »
I never have the blocked mode checked! They can move around a little in the beginning, then a few starts to suck everything in and that's it. It becomes a clump on the screen where nothing happens. I've posted about this before with a screenshot. here:

http://forum.darwinbots.com/index.php?showtopic=950

But I guess you never looked into it.  :rolleyes:
« Last Edit: December 26, 2005, 11:00:28 AM by Testlund »
The internet is corrupt and controlled by criminally minded people.

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
Runtime error 6 overflow
« Reply #4 on: December 26, 2005, 04:04:48 PM »
Its probably because planet eaters mode being enabled. The veggies form a sort of gravity well from continual mass(body) buildup. Eventually it overcomes most of the repulsion fields and draws the bodies together. We could probably prevent it easiest by having some method similar to their nrg feeding that limits the amount of body supplied to veggies.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Runtime error 6 overflow
« Reply #5 on: December 26, 2005, 06:13:49 PM »
If it's not blocked veggies or Planet Eaters I have no idea.  THere is a natural repulsion to all bots, so the only way they can overlap like that is extreme forces.  The only forces I can think of that would do that are planet eaters and blocked veggies.

Open the console for one of the bots and type ? .fixed

If it returns 1, then the veggies are fixed and hence blocked.  It's possible for veggies to mutate this.

If it returns 0, then I have no idea.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Runtime error 6 overflow
« Reply #6 on: December 26, 2005, 10:54:41 PM »
Well, it's true I use planet eaters. I have that set to a value of 1. I want them to have a some what attractive force when they get very close to each other, so they form colonies. I can't set the value lower than 1. If I for example set it to 0.9, then it will reset to 0 when I go back into the GUI. So maybe I have to disable planet eaters. I will try that and see if it works better.
« Last Edit: December 26, 2005, 10:59:28 PM by Testlund »
The internet is corrupt and controlled by criminally minded people.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Runtime error 6 overflow
« Reply #7 on: December 27, 2005, 12:15:38 AM »
When I set planet eaters to .9, the program remembers it just fine.  It doesn't default back to 0 for me.

FYI, planet eaters is also quite slow.  You'll get significant speedup even with only a few bots if you turn it off.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Runtime error 6 overflow
« Reply #8 on: December 27, 2005, 11:09:33 AM »
Quote
When I set planet eaters to .9, the program remembers it just fine.  It doesn't default back to 0 for me.
That's not what I said. I said I typed 0.9, not .9. Typing .9 into the field will reset to 0,9. Every newbie will have problems to figure this out. You can't for instance type 0,9. You have to type .9, THEN it will be set to 0,9.  :wacko: NOW I know what to type.
The internet is corrupt and controlled by criminally minded people.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Runtime error 6 overflow
« Reply #9 on: December 28, 2005, 05:51:17 AM »
I didn't make the rules for how text fields work in VB.