Skip to content
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

Debug minimap #271

Open
15 of 25 tasks
manantt opened this issue May 4, 2019 · 10 comments
Open
15 of 25 tasks

Debug minimap #271

manantt opened this issue May 4, 2019 · 10 comments

Comments

@manantt
Copy link

manantt commented May 4, 2019

Hi guys, I'm coding a debug minimap that shows realtime information about the game.

It let you to select which information to display on. Like heighmap, ally and enemy units, destructables, ramps...
If you like the idea I could complete it with the missing information like xelnaga towers, psi matrix, blips, creep, vision area, and build a new class for the api. It would let users to extend it and add custom information.

Here is the demo:
map

Do you think it could be a nice contribution?

PROGRESS

Core

  • Create minimap file and class
  • Map scale

On/off flags for:

  • Creep
  • Vision
  • Map height
  • Psionic matrix power field
  • Marker for units according to size
  • Minerals
  • Vespene
  • Ramps
  • Destructables
  • Vision blockers
  • Xelnaga towers + radius
  • Display workers
  • Display worker count at base
  • Blips
  • Cloacked units
  • Detection area
  • Units range

Display custom position:

  • Unit or units objects (with custom color)
  • Point2 objects or sets or lists of point2 objects
  • Custom overwritable method with full access to the map

Bonus

  • Add option to create a gif of the whole game
  • Custom overwritable method with full access to the map
  • Allow activate/deactivate flags during the game using checkboxes
@tweakimp
Copy link
Contributor

tweakimp commented May 5, 2019

I would really like to see this implemented.
My wishlist:

  • on or off flags for:
    • creep
    • vision
    • map height
    • psionic matrix power field
    • marker for units according to size
    • display workers
    • display worker count at base
  • display custom position:
    • unit or units objects (with custom color)
    • point2 objects or sets or lists of point2 objects

Bonus:

  • Add option to create a gif of the whole game

@manantt
Copy link
Author

manantt commented May 5, 2019

Completing wishlist:

on/off flags:

  • Blips, cloacked units
  • detection area
  • units range

custom positions:

  • custom overwritable method with full access to the map

@tweakimp
Copy link
Contributor

tweakimp commented May 5, 2019

It would be great if you also draw a circle for the vision a xelnaga tower gives

@oneandonlyonebutyou
Copy link

How can I use your wonderful work .. ?

@manantt
Copy link
Author

manantt commented May 10, 2019

How can I use your wonderful work .. ?

As the pull request has not been accepted yet you can download it from my fork.
It is up to date with dentosal develop branch.

@quelibrio
Copy link

I tried to run manatt bot recently but with latest version of the game and api its very hard to clear all the errors. Anyone having success ?

@BurnySc2
Copy link
Collaborator

@quelibrio Please try my fork https://github.com/BurnySc2/python-sc2

@manantt
Copy link
Author

manantt commented Feb 22, 2021

My bot is not updated

@quelibrio
Copy link

My bot is not updated

I was impressed by the mipmap functionality and wanted to implement the fog of war feature. Figured out that you haven't updated dependencies. Tried to port newer version of the api from the @BurnySc2 version of it by partially migrating some of the library code. Reached to a point where the resolution asserts are not passing but much of the rest is working and game is loading. Will try to finish that but would appreciate some help with the pixel_map.py and minimap.py rework. Cheers for the good work

@quelibrio
Copy link

quelibrio commented Mar 9, 2021

Ok I managed to fix the problems in the new version. Here is updated code. I will add it to fork of @BurnySc2 version https://gist.github.com/quelibrio/0e2a2bc5e4b76d11b1a999ee31675aa1
Looks with fog of war
Minimap2
Without fog of war
Minimap
Unfortunately the code for fog of war is very computationally expensive, looking to improve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants