-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: 3794 is not a valid AbilityId #283
Comments
I have a same problem |
I solved this by adding in this ids in the file https://github.com/Dentosal/python-sc2/blob/master/sc2/ids/ability_id.py with random names. |
You can comment out : "assert self.id != 0" in game_data.py, then the game should run again. |
It is a total mess right now. Things were working well until StarCraft2 version 4.8.4. The master branch of this library is working for SC2 version 4.8.4, while the develop branch fixed the issues with pixelmap introduced in 4.8.5 (and is the same in 4.8.6). Pixelmaps were starting in the top left but are now starting in the bottom left, so they were flipped in y-axis. Also pixelmap values changed from bytes to bits (like pathing grid, placement grid, and in 4.9.0 also creep map). Dentosal needs a working version for his competition However in SC2 client 4.9.0 a new bug got introduced (that was already there about half a year ago in november 2018) that you can't run 2 bots against each other, but running bot against built-in AI works (because only one SC2 client needs to run for this). TLDR: Also you need to download |
Running generate_id_constants_from_stableid.py gives me another assertion Error: |
Then the value is error is gone and it only affects UNLOADUNIT |
it helped, IDs were rewrited |
with this correction it works fine. thanks |
Rather than everyone applying their own fix / workaround, I hope a patch is released with this problem fixed... (minor version upgrade or something) |
Just piping in to say this is an issue for me as well. |
Applied fixed in this thread for same issue, now it's throwing a EDIT: I found the fix for this error. Delete that line of code! (that assert line in pixel_map.py) |
Hi All, I have tried the work around but
I have tried all the work around but now I receive a new error: Traceback (most recent call last): Any ideas? working with a Mac with latest OS. Thanks! |
This implements the fixes mentioned by BurnySc2 in issue comment: Dentosal#283 (comment) I'm going to use this as my bot's dependency before the python-sc2 library is patched to use the latest SC2 version.
Run again and game should work now fully updated on 4 Jul 2019 |
There is no game_data.py to edit but the rest of pysc2 is there |
Thank you Batman
…On Sun, 21 Jul 2019, 3:40 AM Batman ***@***.***> wrote:
1. Browse to c:\program files (x86)\microsoft visual
studio\shared\python37_64\lib\site-packages\sc2 (I'm using Python in Visual
Studio 2019 environment)
2. Edit game_data.py and comment out 'assert self.id != 0' with # in
front, save changes.
3. Edit pixel_map.py and comment out 'assert self.bits_per_pixel % 8
== 0, "Unsupported pixel density"' with # in front, save changes.
Run again and game should work now fully updated on 4 Jul 2019
There is no game_data.py to edit but the rest of pysc2 is there
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#283?email_source=notifications&email_token=AMQYRNMB6X2EKWUQWDWRHYLQAO5CBA5CNFSM4HPWAO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2NZDUQ#issuecomment-513511890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMQYRNOYBV4RHRTBO7YLAP3QAO5CBANCNFSM4HPWAO7A>
.
|
The file game_data.py ust be there otherwise you will have to copy it
from the pysc2 package on github
…On Sun, Jul 21, 2019 at 3:40 AM Batman ***@***.***> wrote:
1. Browse to c:\program files (x86)\microsoft visual
studio\shared\python37_64\lib\site-packages\sc2 (I'm using Python in Visual
Studio 2019 environment)
2. Edit game_data.py and comment out 'assert self.id != 0' with # in
front, save changes.
3. Edit pixel_map.py and comment out 'assert self.bits_per_pixel % 8
== 0, "Unsupported pixel density"' with # in front, save changes.
Run again and game should work now fully updated on 4 Jul 2019
There is no game_data.py to edit but the rest of pysc2 is there
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#283?email_source=notifications&email_token=AMQYRNMB6X2EKWUQWDWRHYLQAO5CBA5CNFSM4HPWAO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2NZDUQ#issuecomment-513511890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMQYRNOYBV4RHRTBO7YLAP3QAO5CBANCNFSM4HPWAO7A>
.
|
@ocnuybear I had a problem with 3794 and your solution fixed the problem. Thanks. |
The file is not in the pysc2 github repo. |
This assert is not in the file |
Ok. I got it to work and this is what I did. I am using Python 3.7 and using SC2 4.9.3
GLHF GG |
Strange that it differs for different users, but happy you got it to work 🙂
…On Sun, Jul 21, 2019 at 4:00 PM Batman ***@***.***> wrote:
Ok. I got it to work and this is what I did. I am using Python 3.7 and
using SC2 4.9.3
1. I force upgraded via this post. #266
<#266>
2. The post by BurnySc2 fixed my problem.
GLHF GG
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#283?email_source=notifications&email_token=AMQYRNMUCNI5GHQAYZXC2DDQARTWHA5CNFSM4HPWAO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2OEECQ#issuecomment-513557002>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMQYRNKSBPR43D7ZIDXT6YLQARTWHANCNFSM4HPWAO7A>
.
|
You should also now be able to install from a specific fork, see #298 (comment) The install command on windows is
|
I have commented both assert self.id != 0 and 'assert self.bits_per_pixel % 8 == 0 |
I tried to follow this thread, it worked initially, but after 2 mins it gives following error : ERROR:sc2.main:AI step threw an error During handling of the above exception, another exception occurred: Traceback (most recent call last): Source code is : class SilentBot(sc2.BotAI):
run_game(maps.get("AbyssalReefLE"), [ |
None of the methods in this thread made any difference for me :( |
full stacktrace
my library versions
Also, I use a touch bar MacBook Pro.
Could anybody help me ? thank you very much!
The text was updated successfully, but these errors were encountered: