Code center > Solved Bugs
Poison bug.
Testlund:
Got the same crash again.
ERROR:
Run-time error 6: overflow
CODE:
rob(n).mem(poison) = rob(n).poison
HOVERING INFO:
rob(n).mem(poison) = 25283
n = 1662
poison = 827
power = -27954
I hope that's enough info.
PurpleYouko:
--- Quote ---power = -27954
--- End quote ---
Thought as much.
Somehow power has gone negative.
Since power is calculated as.
power = Shots(t).value * (Shots(t).nrg / Shots(t).range)
it would be helpful to know those three values alao
Griz:
Testlund ...
can you upload a 'settings' for this ...
or perhaps a zip of the sim just prior to the crash?
(meant to impliment that write error sim in 2.37.4 too ... how difficult is that Num?!)
perhaps I or someone can then duplicate it ...
I've taken to setting a user 'seed' as well ...
so I have a better shot at repeating the problem.
Numsgil:
nrg is probably what's going negative, I'd bet.
PurpleYouko:
Could be
A robot's energy can go negative during any part of the main loop, It is only zeroed again in "Updatepos" (I think)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version