Dentosal / python-sc2

A StarCraft II bot api client library for Python 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debug minimap

manantt opened this issue · comments

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
commented

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

Completing wishlist:

on/off flags:

  • Blips, cloacked units
  • detection area
  • units range

custom positions:

  • custom overwritable method with full access to the map
commented

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

commented

How can I use your wonderful work .. ?

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.

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 ?

My bot is not updated

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

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