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.


Topics - EricL

Pages: 1 ... 10 11 [12]
166
DNA - General / Venom impact on .fixed
« on: March 16, 2006, 05:43:41 PM »
.fixed and .fixpos are treated differently than other sysvars today with respect to venom.  For example, if you use venom to overwrite another bots' .myeye, that bot will be confused about how many .eye statements are in their DNA for a period of time dependent upon how much venom was used.  The period of influence is obtainable via .paralyzed and once .paralyzed gets to 0, the effect of the venom wears off and the venomized bot returns to normal.  That is, referencing *.myeye will agian return the correct value.  This happens without the effected bot having to have any anti-venom specific code in its DNA.

It doesn't work this way for .fixed / .fixpos as far as I can tell.  Becuase of the asymetry in .fixpos and .fixed (one is kind of control only, one is kind of read only) when a bot gets fixed due to venom, they will be fixed forever more even after the venom wears off unless their DNA contains explicit instructions to do something about it.

Is this the correct behaviour?

167
Bugs and fixes / Sysvar Documentation bug
« on: March 16, 2006, 05:04:29 PM »
1) .paralyzed is not listed in the Sysvar Table in the Wiki.

2) If you navigate to the ..paralyzed entry via the .poisioned entry, it incorrectly states that .paralyzed will have value 1 when the bot is under the influence of venom.  In actuality, .paralyzed will be a positive number indicating the number of cycles remaining before the venom wears off.

-E

168
Bugs and fixes / Big Bot Body Shot Overflow
« on: March 16, 2006, 02:13:34 PM »
Got an overflow at line 97 of Shots.bas in newshot() when a bot with a really huge body shot a -6 shot.   Shots(a).value is defined as an Integer and is being assigned a value exceeding 2^15 in the varible 'val' which is a Long.  Curiously, there was a check for val>32000 lower down in the routine.  Moving in up to check before the assignment should take care of it (I havn't fully tested this - the bug is hard to repro, but so far so good).

New Shots_Module.bas is attached.

-E

169
Bugs and fixes / Gene Activations in 2.4A
« on: March 16, 2006, 01:43:33 AM »
Well, I managed to make the Genes Activations display work in 2.4A.  The fix is a little involved given the architectural changes between 2.36 and 2.4 with respect to the changes in how DNA is is handled (its amazing what your can learn from poking around in the source).  :blink:

Anyway, I created a new global arrray of booleans which I ReDim and populate in ExecuteDNA() only for the bot with the focus if there is one, then pass this to a slightly modified exchhighlight() which hanldes the gene activation display as before.  I touched Robots.bas, DNA.bas and Module1.bas.

A little involved to post the code snippets in the forum as text, but I've attached the *.bas modules to this post.  I think those three are the only places where I made changes.  You should be able to download them, replace your own in a 2.4A soruce directory and build an exe that works.  Let me know if you have problems, I may have missed a file.  To find my changes in the soruce, simply search for the string 'EricL'.

170
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."

171
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

Pages: 1 ... 10 11 [12]