PyAI bug hunting , could be something not related to PyAi at all, but here goes.
Mar 6 2008, 06:32 PM Post
#21
After a decompile and then recompile with PyAI, the Ai appears to lock up (at least in the premade replays) at the noted point. I will try blocking off some of the following lines and see if the Ai continues.
# stat_txt.tbl entry 1342: Terran Expansion Custom Level<0> TMCx(1342, 101, aiscript): start_town() transports_off() farms_notiming() build(1, Protoss Pylon, 150) wait_buildstart(1, Protoss Pylon) build(2, Terran SCV, 130) wait_buildstart(2, Terran SCV) build(1, Zerg Hydralisk Den, 80) wait_buildstart(1, Zerg Hydralisk Den) wait(120) build(1, Terran Starport, 80) wait_buildstart(1, Terran Starport) defenseuse_aa(1, Terran Wraith) defensebuild_aa(1, Terran Wraith) build(1, Terran Command Center, 80) wait_build(1, Terran Command Center) build(3, Protoss Probe, 80) wait_buildstart(3, Protoss Probe) train(1, Terran Wraith) creep(1) build(1, Protoss Photon Cannon, 80) wait_buildstart(1, Protoss Photon Cannon) train(2, Terran Wraith) tech(Stim Packs, 70) tech(Spider Mines, 70) defenseuse_aa(1, Tassadar/Zeratul) defenseuse_aa(1, Jim Raynor) defenseuse_aa(1, Samir Duran) build(2, Terran Starport, 80) wait_buildstart(2, Terran Starport) train(10, Terran Wraith) attack_add(8, Terran Wraith) attack_prepare() build(1, Zerg Creep Colony, 80) wait_buildstart(1, Zerg Creep Colony) wait(120) build(2, Zerg Creep Colony, 80) wait_buildstart(2, Zerg Creep Colony) attack_do() attack_clear() tech(Lockdown, 70) tech(Scanner Sweep, 70) defenseuse_aa(1, Terran Ghost) defensebuild_aa(1, Tassadar/Zeratul) defensebuild_aa(1, Jim Raynor) defensebuild_aa(1, Samir Duran) multirun(TMCx 0000) build(3, Terran Starport, 80) ## right about here the Ai appears to stop. The 3 starports are built as well as the creep_colonies, but nothing appears to happen after this point? train(12, Tassadar/Zeratul) train(6, Jim Raynor) train(3, Samir Duran) attack_add(10, Tassadar/Zeratul) attack_add(5, Jim Raynor) attack_add(3, Samir Duran) attack_prepare() wait(500) attack_do() attack_clear() tech(Defensive Matrix, 70) tech(Tank Siege Mode, 70) defenseuse_aa(1, Unused) defenseuse_aa(1, Terran Goliath) defenseuse_aa(1, Alan Schezar) defensebuild_aa(1, Terran Ghost) build(1, Protoss Nexus, 80) wait_buildstart(1, Protoss Nexus) build(1, Terran Nuclear Silo, 80) wait_build(1, Protoss Nexus) build(2, Protoss Photon Cannon, 80) build(5, Terran Starport, 80) build(1, Protoss Gateway, 80) wait_buildstart(1, Protoss Gateway) train(10, Tassadar/Zeratul) train(8, Mojo) train(5, Terran Ghost) train(3, Protoss Dragoon) attack_add(10, Tassadar/Zeratul) attack_add(5, Mojo) attack_add(3, Terran Ghost) attack_add(2, Protoss Dragoon) attack_prepare() wait(800) attack_do() attack_clear() tech(Irradiate, 70) tech(EMP Shockwave, 70) defenseuse_aa(1, Edmund Duke) defenseuse_aa(1, Terran Science Vessel) defenseuse_aa(1, Terran Battlecruiser) defenseuse_aa(1, Protoss High Templar) defenseuse_aa(1, Hyperion) defensebuild_aa(1, Unused) defensebuild_aa(1, Terran Goliath) defensebuild_aa(1, Alan Schezar) multirun(TMCx 0001) train(10, Tassadar/Zeratul) train(8, Mojo) train(6, Terran Ghost) train(6, Unused) train(2, Terran Goliath) train(4, Alan Schezar) attack_add(8, Tassadar/Zeratul) attack_add(8, Mojo) attack_add(4, Terran Ghost) attack_add(4, Unused) attack_add(2, Terran Goliath) attack_add(3, Alan Schezar) attack_prepare() wait(800) attack_do() attack_clear() expand(99, TMCx 0002) multirun(TMCx 0003) defensebuild_aa(1, Edmund Duke) defensebuild_aa(1, Terran Science Vessel) defensebuild_aa(1, Terran Battlecruiser) defensebuild_aa(1, Protoss High Templar) defensebuild_aa(1, Hyperion) place_guard(Hyperion, 0) place_guard(Hyperion, 1) place_guard(Protoss High Templar, 0) place_guard(Protoss High Templar, 1) tech(Yamato Gun, 70) tech(Plague, 70) defenseuse_aa(1, Raszagal) defensebuild_aa(1, Raszagal) place_guard(Raszagal, 0) place_guard(Raszagal, 1) place_guard(Raszagal, 2) multirun(TMCx 0004) multirun(TMCx 0005) --TMCx 0006-- train(4, Terran Battlecruiser) train(2, Protoss High Templar) train(2, Hyperion) train(3, Raszagal) attack_add(3, Terran Battlecruiser) attack_add(2, Protoss High Templar) attack_add(2, Hyperion) attack_add(3, Raszagal) attack_prepare() wait(3500) attack_do() attack_clear() train(2, Hyperion) train(4, Protoss High Templar) train(4, Terran Battlecruiser) attack_add(2, Hyperion) attack_add(4, Terran Battlecruiser) attack_add(4, Protoss High Templar) attack_prepare() wait(3500) attack_do() attack_clear() goto(TMCx 0006) --TMCx 0004-- train(11, Tassadar/Zeratul) train(9, Mojo) attack_add(10, Tassadar/Zeratul) attack_add(8, Mojo) wait(1200) goto(TMCx 0004) --TMCx 0005-- train(6, Terran Ghost) train(7, Edmund Duke) train(6, Unused) attack_add(5, Terran Ghost) attack_add(6, Edmund Duke) attack_add(5, Unused) wait(1200) goto(TMCx 0005) --TMCx 0003-- wait(8000) send_suicide(0) expand(99, TMCx 0002) --TMCx 0007-- wait(7000) send_suicide(0) goto(TMCx 0007) --TMCx 0002-- start_town() defenseuse_aa(1, Protoss Dragoon) defenseuse_aa(1, Terran Ghost) build(1, Protoss Nexus, 80) wait_build(1, Protoss Nexus) build(1, Terran Command Center, 80) wait_build(1, Terran Command Center) build(2, Terran SCV, 70) wait_buildstart(2, Terran SCV) multirun(TMCx 0008) build(3, Terran Starport, 70) wait_buildstart(3, Terran Starport) build(6, Zerg Creep Colony, 70) wait_buildstart(6, Zerg Creep Colony) build(6, Zerg Spore Colony, 70) stop() --TMCx 0008-- build(2, Protoss Probe, 70) wait_build(2, Protoss Probe) build(4, Protoss Probe, 70) stop() --TMCx 0000-- build(2, Zerg Sunken Colony, 70) wait_buildstart(2, Zerg Sunken Colony) build(4, Zerg Creep Colony, 70) wait_build(4, Zerg Creep Colony) build(6, Zerg Creep Colony, 70) wait_build(6, Zerg Creep Colony) build(4, Zerg Spore Colony, 70) wait_build(4, Zerg Spore Colony) build(8, Zerg Creep Colony, 70) wait_build(8, Zerg Creep Colony) build(6, Zerg Spore Colony, 70) build(10, Zerg Creep Colony, 70) wait_build(10, Zerg Creep Colony) build(8, Zerg Spore Colony, 70) wait_build(8, Zerg Spore Colony) build(12, Zerg Creep Colony, 70) wait_build(12, Zerg Creep Colony) build(10, Zerg Spore Colony, 70) stop() --TMCx 0001-- build(16, Zerg Creep Colony, 70) build(14, Zerg Spore Colony, 70) stop() build(20, Zerg Creep Colony, 70) build(18, Zerg Spore Colony, 70) stop() --TMCx 0009-- wait(1500) goto(TMCx 0009)
I should check in a game as well, not just the replays, but my hunch is that the same will be true.
Posts in this topic
bajadulce PyAI bug hunting Mar 6 2008, 06:32 PM poiuy_qwert 1) Alright i'll look into it (Edit: Fixed, was... May 12 2008, 03:46 PM bajadulce #2 is confusing sorry. Basically I got an error o... May 12 2008, 06:37 PM poiuy_qwert Ok this example does give me the error, im looking... May 12 2008, 07:42 PM bajadulce Well I ended up working around this by not having ... May 12 2008, 10:38 PM poiuy_qwert Alright, I thought there might be a file size limi... May 13 2008, 05:08 AM poiuy_qwert Alright I found the problem, it was just an incorr... May 15 2008, 04:04 PM IskatuMesk I crashed the program without an error by attempti... Jun 10 2008, 12:24 AM poiuy_qwert Very odd. I'll look into both, though i've... Jun 10 2008, 05:06 AM bajadulce I can't seem to open this AI? It was made wit... Jun 10 2008, 08:46 AM poiuy_qwert Those files load for me baja. What does it say, th... Jun 10 2008, 03:20 PM bajadulce I tried opening them in PYAIGUI and error reads:
... Jun 10 2008, 10:15 PM poiuy_qwert If you would like to run a little test for me foll... Jun 10 2008, 10:19 PM bajadulce CODE except PyMSError:
raise
except... Jun 10 2008, 10:25 PM poiuy_qwert The code should look like:
CODE except PyMSError... Jun 10 2008, 10:32 PM bajadulce RE: PyAI bug hunting Jun 10 2008, 10:58 PM poiuy_qwert But what about the error message that should be ge... Jun 10 2008, 11:05 PM bajadulce just that blank pyai v1.0 beta screen. nothing ha... Jun 10 2008, 11:13 PM poiuy_qwert There should be text printed to the command line. Jun 10 2008, 11:15 PM Jørn Holm I've just installed PyAI and I seem to encount... Jul 19 2008, 04:48 AM ashara poiuy_qwert may correct me on this, but if it... Jul 19 2008, 05:35 AM Jørn Holm That did the job. Thanks Ashara! Jul 19 2008, 05:42 AM poiuy_qwert Yes sorry that was my fault and I forgot to put th... Jul 19 2008, 09:23 AM Jørn Holm Maybe you can help me with another problem instead... Jul 20 2008, 12:39 PM poiuy_qwert Heh, stupid mistake. Here is a manual fix till nex... Jul 20 2008, 01:16 PM Jørn Holm Sweet, thanks poiuy!
My block labels are also... Jul 20 2008, 01:55 PM poiuy_qwert No problem, im glad to help. Thanks for the comple... Jul 20 2008, 02:44 PM Jørn Holm I was just editing the TBL to name the scripts - i... Jul 20 2008, 02:57 PM poiuy_qwert Well unless you are creating a mod with a custom S... Jul 20 2008, 03:01 PM Jørn Holm Noone except myself
I'm less likely to mess ... Jul 20 2008, 03:13 PM poiuy_qwert I was thinking about that just before I saw your e... Jul 20 2008, 03:52 PM bajadulce here's another double-click open script obscur... Sep 8 2008, 09:50 PM poiuy_qwert Odd... There should be no conflicts between StarCr... Sep 9 2008, 10:22 AM bajadulce This crash does have an error.. just run the steps... Sep 9 2008, 10:30 AM poiuy_qwert Wow that is a really weird error :S (was at school... Sep 9 2008, 01:31 PM bajadulce As long as the users keep their original files and... Sep 9 2008, 02:21 PM poiuy_qwert The problem is actually just a limitation on decom... Sep 9 2008, 02:41 PM bajadulce QUOTE(poiuy_qwert @ Sep 9 2008, 02:41 PM)... Sep 9 2008, 03:01 PM poiuy_qwert Yeah, when I have time i'll be able to put stu... Sep 9 2008, 03:12 PM bajadulce I used the new ASC3-> PYAI converter to import ... Sep 19 2008, 08:31 AM poiuy_qwert Will be updated asap. Thanks! Sep 19 2008, 10:16 AM bajadulce As you know, whenever SCAIEDIT III compiles a ... Sep 22 2008, 12:19 AM poiuy_qwert You should use the built in string editor to eithe... Sep 22 2008, 10:59 AM bajadulce QUOTE(poiuy_qwert @ Sep 22 2008, 10:59 AM... Sep 23 2008, 12:30 AM IskatuMesk Attempting to paste text (After having done so sev... Sep 25 2008, 01:57 PM poiuy_qwert Didn't copy the error or didn't get one? I... Sep 25 2008, 02:29 PM IskatuMesk I think it was a rather generic error I got, I don... Sep 25 2008, 08:38 PM bajadulce I've experienced some crashes too when copy/pa... Sep 25 2008, 08:48 PM poiuy_qwert Ok so i've fixed the unitdef.txt problem and m... Sep 29 2008, 07:08 PM bajadulce QUOTE(poiuy_qwert @ Sep 29 2008, 07:08 PM... Sep 29 2008, 08:12 PM poiuy_qwert I'll send it when i get home from school. Like... Sep 30 2008, 09:01 AM bajadulce Bug to report with the new PYAI v1.9 test you sent... Oct 2 2008, 10:09 AM poiuy_qwert Either is fine, but yeah I like people to know tha... Oct 2 2008, 10:16 AM bajadulce QUOTE(poiuy_qwert @ Oct 2 2008, 10:16 AM)... Oct 2 2008, 10:28 AM poiuy_qwert Yep, this has been fixed, thanks! Oct 2 2008, 06:45 PM IskatuMesk In the new exe versions, PyAI crashed for me while... Oct 18 2008, 11:14 AM poiuy_qwert Doesn't happen for me. Could you elaborate a b... Oct 19 2008, 12:11 PM IskatuMesk I was, again, copying and pasting stuff. I went to... Oct 19 2008, 05:35 PM poiuy_qwert Ok so same as before right? There was no error mes... Oct 20 2008, 07:22 AM IskatuMesk It was the same as before I think. There was anoth... Oct 20 2008, 01:43 PM bajadulce Something to report. I've gotten really accus... Jan 3 2009, 12:03 PM poiuy_qwert Sounds to me like it might be hardcoded. PyAI is c... Jan 3 2009, 04:20 PM bajadulce It's compiling fine, as well as reporting zero... Jan 3 2009, 07:09 PM modmaster50 After trying to compile:
CODE
# stat_txt.tbl entr... Jan 14 2009, 05:03 PM poiuy_qwert I actually received that from someone else and hav... Jan 14 2009, 05:38 PM poiuy_qwert Ok I've figured out a way to give patches for ... Jan 21 2009, 12:20 AM Archon_Wing Hi,
replaced the libs.zip and now get the followin... Jan 21 2009, 01:59 AM poiuy_qwert Ah, remnants of the newer version are screwing wit... Jan 21 2009, 01:57 PM Archon_Wing Hmm, now the internal error is back again. Jan 21 2009, 06:49 PM poiuy_qwert Are you sure its the same error? I don't seem ... Jan 21 2009, 07:24 PM bajadulce I'm not getting any of these errors?
There... Jan 21 2009, 08:10 PM poiuy_qwert Yeah I just found that out myself, some cases are ... Jan 21 2009, 08:15 PM bajadulce ahh.. OK. warnings are good!
also, I just ... Jan 21 2009, 08:22 PM poiuy_qwert the exact same error posted above by modmaster? if... Jan 21 2009, 08:33 PM bajadulce I haven't done any Ai scripting until I saw th... Jan 21 2009, 08:45 PM poiuy_qwert Ok that doesn't really make sense, its like th... Jan 21 2009, 09:00 PM bajadulce I downloaded that .zip file you just linked and th... Jan 21 2009, 09:23 PM poiuy_qwert Wtf.. How can this patch work for me and not you? ... Jan 21 2009, 09:30 PM bajadulce QUOTE(poiuy_qwert @ Jan 21 2009, 09:30 PM... Jan 21 2009, 09:48 PM poiuy_qwert Well it does seem like a safe assumption haha. I... Jan 21 2009, 09:53 PM Archon_Wing Ok there's no internal errors anymore. Jan 22 2009, 02:13 AM Scourge Splitter I also got PYAI working correctly
I found that I... Jan 31 2009, 09:37 AM bajadulce Here's something that is not necessarily a bug... Feb 10 2009, 10:03 PM poiuy_qwert There is no definite way to tell from an asc3 scri... Feb 10 2009, 11:00 PM bajadulce More to report on this. I changed the scripts bac... Feb 13 2009, 10:15 PM Archon_Wing Seems to have trouble with fall through blocks tha... Feb 28 2009, 01:49 AM poiuy_qwert Thanks I'll look into it!
Edit: Alright t... Feb 28 2009, 08:08 PM Archon_Wing Getting this when trying to save
Exception in Tki... Mar 26 2009, 03:52 PM poiuy_qwert I do not get any error like that, please attach yo... Mar 27 2009, 09:25 AM Archon_Wing If I Add the unitdef.ini found in the PYMS folder,... Mar 27 2009, 01:14 PM poiuy_qwert Very odd, none of this was happening for me. I... Mar 29 2009, 09:30 AM poiuy_qwert Well I can't seem to reproduce these problems,... Apr 1 2009, 11:10 AM Archon_Wing Those were the only steps: Open any aiscript.bin, ... Apr 1 2009, 11:53 AM poiuy_qwert Alright. I still cant reproduce the always asking ... Apr 12 2009, 09:20 AM Myk Important issues:
I get crashed with Windows Folde... Jul 8 2009, 11:20 PM bajadulce QUOTE(Myk @ Jul 9 2009, 12:20 AM) Also, P... Jul 13 2009, 07:03 PM Myk QUOTE(bajadulce @ Jul 13 2009, 07:03 PM) ... Jul 14 2009, 09:18 PM bajadulce ahh.. Yes, once you import the script, the compile... Jul 14 2009, 10:26 PM Myk QUOTE(bajadulce @ Jul 14 2009, 10:26 PM) ... Jul 14 2009, 11:08 PM bajadulce QUOTE(Myk @ Jul 15 2009, 12:08 AM) Well, ... Jul 15 2009, 06:34 AM Archon_Wing Eh, I usually just use the editor as a validation ... Jul 15 2009, 10:13 AM
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: