PyAI bug hunting

Help - Resources - Discussion
Scourge_Splitter
Posts: 36
Joined: Fri May 11, 2007 12:56 pm

Postby Scourge_Splitter » Sat Jan 31, 2009 5:37 pm

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"
User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am

Postby poiuy_qwert » Wed Feb 11, 2009 7:00 am

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.
User avatar
Archon_Wing
Posts: 901
Joined: Wed Jul 25, 2007 11:22 pm

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()
User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am

Postby poiuy_qwert » Sun Mar 01, 2009 4:08 am

Thanks I'll look into it!

Edit: Alright this is fixed for the next version, thanks!
User avatar
Archon_Wing
Posts: 901
Joined: Wed Jul 25, 2007 11:22 pm

Postby Archon_Wing » Thu Mar 26, 2009 11:52 pm

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
User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am

Postby poiuy_qwert » Fri Mar 27, 2009 5:25 pm

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.
User avatar
Archon_Wing
Posts: 901
Joined: Wed Jul 25, 2007 11:22 pm

Postby Archon_Wing » Fri Mar 27, 2009 9:14 pm

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.
User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am

Postby poiuy_qwert » Sun Mar 29, 2009 5:30 pm

Very odd, none of this was happening for me. I'll be looking into it when I get home, thanks.

Return to “PyMS (poiuy_qwert's complete modding suite)”

Who is online

Users browsing this forum: No registered users and 2 guests