[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 571: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 627: sizeof(): Parameter must be an array or an object that implements Countable
forum.starcraftai.com • PyAI bug hunting - Page 11
Page 11 of 14

Posted: Sat Jan 31, 2009 5:37 pm
by Scourge_Splitter
I also got PYAI working correctly :D

I found that I had some techs still in the ai I wasn't using anymore in the game.

And I got the interpretation of defensebuild_GA (or AG) "up-side-down"

Posted: Wed Feb 11, 2009 7:00 am
by poiuy_qwert
There is no definite way to tell from an asc3 script if it goes into bwscript.bin or not, and no way at all to tell the flags of the script, you have to change the AI header manually after converting. I'll make the converter assume its a bwscript if you have BWBrood Wars in the script_name, as well as put a comment that explains the whole issue. Sorry for the inconvenience.

Posted: Sat Feb 28, 2009 9:49 am
by Archon_Wing
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()

Posted: Sun Mar 01, 2009 4:08 am
by poiuy_qwert
Thanks I'll look into it!

Edit: Alright this is fixed for the next version, thanks!

Posted: Thu Mar 26, 2009 11:52 pm
by Archon_Wing
Getting this when trying to save

Exception in Tkinter callback
Traceback (most recent call last):
File "Tkinter.pyc", line 1410, in __call__
File "PyAI.pyw", line 2809, in saveas
File "PyAI.pyw", line 2792, in save
File "LibsAIBIN.pyc", line 1691, in compile
KeyError: 585

Other oddities:
Asked me for a stats.tbl, never done that before. Also asks everytime I start the program
Seems to only happen when I use an external definition file

Posted: Fri Mar 27, 2009 5:25 pm
by poiuy_qwert
I do not get any error like that, please attach your aiscript.bin/bwscript.bin and whatever you did to get that error.

I changed where the default files are held and missed changing some paths in the code. It only asks until you choose a stat_txt.tbl, so just choose one. This is fixed for next version.

Posted: Fri Mar 27, 2009 9:14 pm
by Archon_Wing
If I Add the unitdef.ini found in the PYMS folder, then I just get the error regardless of what I do. Import, validate, save the aiscript/bwscript. I don't get a error if I pick no external definition file.

Also none of the settings are being saved such as disabling the extra information, the stats.tbl or the external definition file. I also can't open the default scripts no matter what I do. I've already deleted any previous versions of PYMS before copying the new version.

Posted: Sun Mar 29, 2009 5:30 pm
by poiuy_qwert
Very odd, none of this was happening for me. I'll be looking into it when I get home, thanks.