gamingrobot / WotMiniMapMaker

Some scripts to make world of tanks minimaps
3 stars 2 forks source link

Maps of Himmelsdorf not generated automatically #3

Closed Kuitsi closed 11 years ago

Kuitsi commented 11 years ago

Poor workaround is comment out lines 42-44 in makemaps.py:

if math.fabs(x1) != math.fabs(y2) or math.fabs(x2) != math.fabs(y1):
    print "could not process " + str(filename)
    return

That will result some misplacement of starting points and bases. I have decompiled res/scripts/client/gui/scaleform/minimap.pyc if that helps.

Kuitsi commented 11 years ago

There is some randomness in bounding boxes so we can't use only one value for scaling.

36_fishing_bay
bottomLeft: -500.0  -500.0
upperRight: 500.0   500.0

42_north_america
bottomLeft: -400.0  -430.0
upperRight: 430.0   400.0

03_campania
bottomLeft: -300.0  -300.0
upperRight: 300.0   300.0

04_himmelsdorf
bottomLeft: -300.0  -300.0
upperRight: 400.0   400.0

I am writing a function to scale those coordinates properly from (0,0) to (500,500)

Kuitsi commented 11 years ago

This is solved in pull request #2