Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - EricL

Pages: 1 ... 149 150 [151]
2251
Bug reports / Unassigned variable when using InstaWin
« on: March 14, 2006, 07:16:57 PM »
Pressing the InstaWin button on the Contest Results dialog in 2.4A (VB version) during a contest results in a crash at line 16 of Contest_Form.frm.  The variable nd is declared but never used or initalized.  Since nd is never used, commenting out the line (t=nd.robn) addresses the problem and appears to result in correct behaviour.

"Doctor, it hurts when I do this."
"Then don't do that."

2252
DNA - General / stumped
« on: March 14, 2006, 11:42:17 AM »
I think you may have the wrong *.nrg conditions in Gene 3. Shouldn't it be:

*.nrg 6000 <
*.nrg 5500 >

Also, the Disable ties check box in 2.4A is wired up backwards I think.  Disabling ties actual enables them although there are some other issues there I think as well.

-E

2253
Bug reports / Runtime Error '6' Overflow
« on: March 14, 2006, 10:47:19 AM »
I woke up in the middle of the night realizing there was a bug in my fix.  It could still overflow .mem if a bot shot a ton of venom into a already heaviliy venomized bot all in one shot.  If power is really big, say like 1000, then Paracount could overflow before my check.  So I changed it to this which tests for a possible overflow before power gets added.

Code: [Select]
If ((rob(n).Paracount + power) > 32000) Then
      rob(n).Paracount = 32000
    Else
      rob(n).Paracount = rob(n).Paracount + power
    End If

I'm doing the addition twice in the main line case but good enough for now...

Regards,

-E

2254
Bug reports / Runtime Error '6' Overflow
« on: March 13, 2006, 07:00:31 PM »
Got it.  It's not the same error.  The overflow is occuring in the Poisons subroutine in Robots.bas where .Paracount is being assigned to .mem(837).

Code: [Select]
If .Paralyzed Then
    .Paracount = .Paracount - 1
    .mem(837) = .Paracount      '<- OVERFLOW OCCURS HERE
    If .Paracount < 1 Then .Paralyzed = False: .Vloc = 0: .Vval = 0
End If
Before the overflow, .mem(837) is 32755 (which is less than 2^15).   .Paracount has the value 32803 (which is greater than 2^15).  The assignment causes the overflow.

It's been a long time since I worked in VB, but .mem is an array of (signed) integers and .Paracount is a Single.  Seems my bots shot so much venom into some other bot that it exceeded the design limits of the .mem array.

I've added these three lines at line 518 in the 'takeeven' subroutine in Shots_Module.bas.

Code: [Select]
rob(n).Paralyzed = True
rob(n).Paracount = rob(n).Paracount + power

If rob(n).Paracount > 32000 Then    '<- THIS LINE ADDED
  rob(n).Paracount = 32000         '<- THIS LINE ADDED
End If                                 '<- THIS LINE ADDED

If Shots(t).Memloc > 0 Then.......
Hopefully that should take care of the overflow.  Been running the fixed code for awhile now and it hasn't crashed yet...

PS Thanks Griz for the fix.  I've recompiled a private with both fixes.  From what I can tell, the issues appear different but related I.e. both are .mem integer overflows.

2255
Bug reports / Runtime Error '6' Overflow
« on: March 13, 2006, 11:24:05 AM »
Here is my half-baked, half finished bot which plays with venom.

-E

2256
Bug reports / Runtime Error '6' Overflow
« on: March 13, 2006, 11:23:02 AM »
I also ran numerous sims with just swarm yesturday.  No crashes then.   I only get the crash when I put my bot (Ericl1) and swarm together.  Then I get it everythime within a few minutes using any one of a variety of settings.  I do suspect it has something to do with venom and may very well be the same bug referenced below.  Swarm does not use venom by mine does.  My bot is a half baked, half finished attempt to use swarm's proximity against it using venom.  I started getting the crashes after I had successfully learned how to use venom to overwrite swarm's .myeye.

Attached is a settings file (slightly different settings then the sim) which exhibits the crash in about 3 minutes under 2.4A for me.

2257
Bug reports / Runtime Error '6' Overflow
« on: March 13, 2006, 12:07:48 AM »
Not sure if anyone cares about bugs in the VB fork anymore, but this one repros pretty quick, say within 5 minutes of starting the sim.    You don't have to do anything, just run the sim and wait.

Nothing too special about the bots.  Just a snapshot of my first bot attempt which uses some venom and the recently posted Swarm.

If people care and the cause isn't immediatly obvious, I can try to repro it in VB and get a stack trace tomorrow...

Sim is attached.

-E

2258
Newbie / Memory shots
« on: March 12, 2006, 04:38:30 PM »
Thanks.  

Is there a way to get the equivalent of *.refparalyzed?

Pages: 1 ... 149 150 [151]