Postby Archon_Wing » Sat Feb 28, 2009 9:49 am
Seems to have trouble with fall through blocks that don't have directly referenced labels.
Ok, I'm getting a Tkinter callback error again with the newest version.
Take a script like this:
extdef C:/Program Files/PyMSwinEXE/unitdef.txt
# stat_txt.tbl entry 0: Terran Marine<0>*<0>Ground Units<0>
MYAI(0, 000, aiscript):
--1--
start_town()
goto(2)
--2--
wait(1)
--3--
wait(1)
goto(4)
--4--
stop()
Save and exit with this script. It gives you a warning about the labels being useless and discarded. Open it again, and you will get the Tkinter error. Also, the aiscript.bin that was being edited will be unusable (0 kb). Now that I think of it, in older version I didn't get in error in these cases but the labels would get scrambled after some were discarded. A
This does not occur if you delete all the nonreferenced labels, like this:
extdef C:/Program Files/PyMSwinEXE/unitdef.txt
# stat_txt.tbl entry 0: Terran Marine<0>*<0>Ground Units<0>
MYAI(0, 000, aiscript):
start_town()
goto(2)
--2--
wait(1)
wait(1)
goto(4)
--4--
stop()