This fixes the formulas for patching the galaxy grid multiplier constants, which fixes a bug where the small galaxies might not show up at all.Get it here: http://sourceforge.net/projects/botfrespatch/files/
For reference, here's the formula:
Code: Select all
wdf_w is the width of the map in pixels in maingal.wdf
wdf_h is the height of the map in pixels in maingal.wdf
map_w is the width of the map in sectors, e.g. 13 for small galaxy
map_h is the height of the map in sectors, e.g. 10 for small galaxy
S is the size of a single zoomed-out sector (a.k.a. the grid multiplier). We want this.
; First compute maximum width of a sector
Sw = (wdf_w - 1) / map_w - 1
; Next compute maximum height of a sector
Sh = (wdf_h - 1) / map_h - 1
; Pick the smaller of the two to use a size of a square sector.
S = minimum( Sh, Sw )
Maybe it's easier to follow if you reverse calculations.
If the size of a sector (grid multiplier) is S, then the area in the WDF must be at least:
Code: Select all
wdf_w = 1 + (S + 1) * map_w
wdf_h = 1 + (S + 1) * map_h
I'll be posting all the info on the various patches used here into the "Solutions and Recoding" section once we successfully complete the 1024x768 Project.