PyAI bug hunting
- poiuy_qwert
- Posts: 548
- Joined: Sun Jan 13, 2008 2:14 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
- modmaster50
- Posts: 72
- Joined: Tue Oct 16, 2007 1:47 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
After trying to compile:
CODE
# stat_txt.tbl entry 0: Terran Marine<0>*<0>Ground Units<0>
TMCx(0, 101, aiscript):
start_town()
build(1, Terran Command Center, 150)
train(1, Terran Civilian)
build(2, Terran SCV, 80)
build(1, Zerg Lair, 60)
expand(1, TMCx 0001)
goto(TMCx 0000)
--TMCx 0000--
train(6, Terran Marine)
train(2, Terran Ghost)
train(3, Terran Vulture)
train(2, Terran Science Vessel)
train(3, Zerg Defiler)
train(1, Protoss High Templar)
train(1, Protoss Dark Archon)
train(2, Terran Medic)
attack_add(6, Terran Marine)
attack_add(2, Terran Ghost)
attack_add(3, Terran Vulture)
attack_add(2, Terran Science Vessel)
attack_add(3, Zerg Defiler)
attack_add(1, Protoss High Templar)
attack_add(1, Protoss Dark Archon)
attack_add(2, Terran Medic)
attack_prepare()
wait(500)
attack_do()
attack_clear()
stop()
--TMCx 0001--
start_town()
build(1, Zerg Lair, 120)
build(1, Terran SCV, 80)
defensebuild_gg(2, Terran Marine)
goto(TMCx 0000)
I get an error. It started appearing after I added the expand command.
ERROR:
CODE
Exception in Tkinter callback
Traceback (most recent call last):
File "C:Program FilesPythonliblib-tkTkinter.py", line 1403, in __call__
return self.func(*args)
File "C:Program FilesStarcraftToolsPyMSPyAI.pyw", line 968, in save
if self.parent.iimport(iimport=self, parent=self, extra=self.extrainfo.get()):
File "C:Program FilesStarcraftToolsPyMSPyAI.pyw", line 3406, in iimport
warnings = i.interpret(iimport, self.extdefs, extra)
File "C:Program FilesStarcraftToolsPyMSLibsAIBIN.py", line 1188, in interpret
if not notused and (id,label) in unused:
UnboundLocalError: local variable 'label' referenced before assignment
CODE
# stat_txt.tbl entry 0: Terran Marine<0>*<0>Ground Units<0>
TMCx(0, 101, aiscript):
start_town()
build(1, Terran Command Center, 150)
train(1, Terran Civilian)
build(2, Terran SCV, 80)
build(1, Zerg Lair, 60)
expand(1, TMCx 0001)
goto(TMCx 0000)
--TMCx 0000--
train(6, Terran Marine)
train(2, Terran Ghost)
train(3, Terran Vulture)
train(2, Terran Science Vessel)
train(3, Zerg Defiler)
train(1, Protoss High Templar)
train(1, Protoss Dark Archon)
train(2, Terran Medic)
attack_add(6, Terran Marine)
attack_add(2, Terran Ghost)
attack_add(3, Terran Vulture)
attack_add(2, Terran Science Vessel)
attack_add(3, Zerg Defiler)
attack_add(1, Protoss High Templar)
attack_add(1, Protoss Dark Archon)
attack_add(2, Terran Medic)
attack_prepare()
wait(500)
attack_do()
attack_clear()
stop()
--TMCx 0001--
start_town()
build(1, Zerg Lair, 120)
build(1, Terran SCV, 80)
defensebuild_gg(2, Terran Marine)
goto(TMCx 0000)
I get an error. It started appearing after I added the expand command.
ERROR:
CODE
Exception in Tkinter callback
Traceback (most recent call last):
File "C:Program FilesPythonliblib-tkTkinter.py", line 1403, in __call__
return self.func(*args)
File "C:Program FilesStarcraftToolsPyMSPyAI.pyw", line 968, in save
if self.parent.iimport(iimport=self, parent=self, extra=self.extrainfo.get()):
File "C:Program FilesStarcraftToolsPyMSPyAI.pyw", line 3406, in iimport
warnings = i.interpret(iimport, self.extdefs, extra)
File "C:Program FilesStarcraftToolsPyMSLibsAIBIN.py", line 1188, in interpret
if not notused and (id,label) in unused:
UnboundLocalError: local variable 'label' referenced before assignment
- poiuy_qwert
- Posts: 548
- Joined: Sun Jan 13, 2008 2:14 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
- poiuy_qwert
- Posts: 548
- Joined: Sun Jan 13, 2008 2:14 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Ok I've figured out a way to give patches for EXE users (though they are limited to updating only the backend). Just download and replace the Libs.zip file in the Libs folder to fix the PyAI bug.
Edit: Just to clarify, it says "replace the Libs.zip file in the Libs folder", do not extract the files from the new Libs.zip!
Edit: Just to clarify, it says "replace the Libs.zip file in the Libs folder", do not extract the files from the new Libs.zip!
- Archon_Wing
- Posts: 903
- Joined: Wed Jul 25, 2007 11:22 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
- poiuy_qwert
- Posts: 548
- Joined: Sun Jan 13, 2008 2:14 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
- Archon_Wing
- Posts: 903
- Joined: Wed Jul 25, 2007 11:22 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
- poiuy_qwert
- Posts: 548
- Joined: Sun Jan 13, 2008 2:14 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Return to “PyMS (poiuy_qwert's complete modding suite)”
Who is online
Users browsing this forum: No registered users and 1 guest