Author Topic: Run-Time error 6  (Read 3670 times)

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Run-Time error 6
« on: October 27, 2005, 07:22:38 PM »
You have posted some solution for this one:

rob(n).mem(refvelup) = (rob(o).vx * Cos(rob(n).aim) + rob(o).vy * Sin(rob(n).aim) * -1) - rob(n).mem(velup)

...on the wikipedia. Right now I can't access that page. I'm not sure exactly where to put the fix. Some lines of code should be put at the beginning of the rutine, right? Where exactly is the beginning and should all those codes in thick black text be put there?  :wacko:
The internet is corrupt and controlled by criminally minded people.

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
Run-Time error 6
« Reply #1 on: October 27, 2005, 09:32:42 PM »
Quote
You have posted some solution for this one:

rob(n).mem(refvelup) = (rob(o).vx * Cos(rob(n).aim) + rob(o).vy * Sin(rob(n).aim) * -1) - rob(n).mem(velup)

...on the wikipedia. Right now I can't access that page. I'm not sure exactly where to put the fix. Some lines of code should be put at the beginning of the rutine, right? Where exactly is the beginning and should all those codes in thick black text be put there?  :wacko:
the fix didn't work anyway.

somewhere here, in some thread, in some message ....
or in a number of threads, messages ...
there was a solution put forth ...
but it doesn't work for me.

hell ... I can't even find it again!

your on your own bud.
不知
~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
Run-Time error 6
« Reply #2 on: October 27, 2005, 09:44:24 PM »
There's always the classic:
Code: [Select]
Dim temp as long

temp = (rob(o).vx * Cos(rob(n).aim) + rob(o).vy * Sin(rob(n).aim) * -1) - rob(n).mem(velup)

if abs(temp) > 32000 then temp = sgn(temp) * 32000

rob(n).mem(refvelup) = temp

If a bit homely.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Run-Time error 6
« Reply #3 on: November 15, 2005, 10:30:28 AM »
Another velocity bug. Fixed in v2.35.

thread moved to "fixed bugs"
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D