question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

expand.now() method problem

See original GitHub issue

It throws an error when there is a lair ready(tested the same code that threw an error but without the lair upgrade and it worked) here is the traceback

Traceback (most recent call last):
  File "C:\Users\Pichau\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sc2\main.py", line 60, in _play_game_ai
    await ai.on_step(iteration)
  File "C:/Users/Pichau/PycharmProjects/sc2 bot/Zerg_roach_hydra.py", line 32, in on_step
    await self.build_hatchery()
  File "C:/Users/Pichau/PycharmProjects/sc2 bot/Zerg_roach_hydra.py", line 82, in build_hatchery
    await self.expand_now()
  File "C:\Users\Pichau\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sc2\bot_ai.py", line 100, in expand_now
    placement_step=1)
  File "C:\Users\Pichau\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sc2\bot_ai.py", line 307, in build
    p = await self.find_placement(building, near.rounded, max_distance, random_alternative, placement_step)
  File "C:\Users\Pichau\AppData\Local\Programs\Python\Python36-32\lib\site-packages\sc2\bot_ai.py", line 243, in find_placement
    assert self.can_afford(building)
AssertionError

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alexander-kazakovcommented, Jul 26, 2018

Same happens when you play Terran and have an ORBITAL COMMAND

0reactions
BurnySc2commented, Sep 21, 2018

It should be fixed now and on master branch. If you still encounter issues, feel free to reopen this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve the issue that arise while using performance.now ...
Generally, the best way to check the performance of the functions in JavaScript is the built-in performance.now() method.
Read more >
Expand terms, multiply polynomials with Step-by ... - QuickMath
Expand a term or a factor. Multiply polynomials, binomials, trinominals and monomials with our free step-by-step math calculator.
Read more >
(x+2)^2 expand and simplify using FOIL method - YouTube
Learn the steps on how to expand (x + 2)²The technique used in this tutorial is known as FOIL and is a common...
Read more >
$Expand does not work when i get one item - Stack Overflow
EntityFramework's Find method does not return an IQueryable<TEntity> but rather TEntity itself. It is therefore logical that OData can no ...
Read more >
Partial Fraction Expansion (or Decomposition)
The calculation described above can, in practice, be very easily completed by hand by using the "cover-up" method. Example: Distinct Real Roots; the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found