Small scripting bug... and a fix (twarp colo script).
June 3 2005 at 5:58 PM
-
In 4.19, I used the transwarp colonizer script you have listed here
to do some colo work in a game. Every time I landed on Terra the
script would freeze. I traced it back to 2 things...
First, a small block of code in the middle:
turns = GrabIt(" ")
IF turns < 10 THEN x = 1
CALL ZocNotify x
This is constantly returning 0. GrabIt isn't working... should it be?
Second, the ZocNotify is locking up the script. It freezes. I removed
it and suddenly it worked... until the end. At the end there's:
That ZocNotify locked up. I replaced the ZocNotify with:
CALL ZocMsgBox "Done!", 0
And now it works fine. Granted it pops up a msgbox instead of a
notify box, but that's a trivial difference here.
I'm not sure if you could fix this by just using ZocNotify as an
alias for ZocMsgBox, or if there's a more concrete fix... but at
the very least this will solve the twarp colo issue for 4.19. By
using the twarp colo script instead of the built-in script and
making these changes I was able to speed up the colo work to a
regular scripted pace.
i just updated the colonizer script and had it tested for me. From the ICQ i received, i think it worked with flying colors. Upon further confirmation, i will post download instructions to fix the built-in colonizer.
earth.
I fixed the colonizer so it is fast now. Email me if you want a copy of the fix. I am distributing it this way since i am very very close to a 4.1.10 release. Something in the area of a week or so.
earth.