python-sc2 icon indicating copy to clipboard operation
python-sc2 copied to clipboard

Debug minimap

Open manantt opened this issue 6 years ago • 10 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

  • [x] Create minimap file and class
  • [x] Map scale

On/off flags for:

  • [x] Creep
  • [x] Vision
  • [x] Map height
  • [x] Psionic matrix power field
  • [x] Marker for units according to size
  • [x] Minerals
  • [x] Vespene
  • [x] Ramps
  • [x] Destructables
  • [x] Vision blockers
  • [x] Xelnaga towers + radius
  • [x] Display workers
  • [ ] Display worker count at base
  • [x] 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

manantt avatar May 04 '19 15:05 manantt

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

tweakimp avatar May 05 '19 09:05 tweakimp

Completing wishlist:

on/off flags:

  • Blips, cloacked units
  • detection area
  • units range

custom positions:

  • custom overwritable method with full access to the map

manantt avatar May 05 '19 09:05 manantt

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

tweakimp avatar May 05 '19 12:05 tweakimp

How can I use your wonderful work .. ?

oneandonlyonebutyou avatar May 10 '19 08:05 oneandonlyonebutyou

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.

manantt avatar May 10 '19 09:05 manantt

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 ?

quelibrio avatar Feb 20 '21 16:02 quelibrio

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

BurnySc2 avatar Feb 21 '21 00:02 BurnySc2

My bot is not updated

manantt avatar Feb 22 '21 10:02 manantt

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 avatar Feb 22 '21 10:02 quelibrio

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

quelibrio avatar Mar 09 '21 22:03 quelibrio