BHOZ4 TOOLS

Battle map grid not lining up in Foundry or Roll20

The squares on your battle map drift away from the VTT grid. Here is why, how a GM can fix it, and what a map seller can ship to prevent it.

Why it happens

A virtual tabletop draws its own grid over your image. It needs two facts to line up with yours: how many pixels make one square, and where the first square starts.

So the grid drifts when the image has a border or margin, when it is not a whole number of squares, or when the pixels per square in the VTT differ from the art. Sources: Foundry, Scenes, Foundry, Media and Roll20, Page Settings.

Fix 1, free: align it in Foundry

  1. Count the squares across and down. Divide the image size by them. Foundry's own example is a 3080 by 2520 pixel map with 22 by 18 squares, which gives 140 pixel squares.
  2. Put that number in Grid Size. If the art has a margin, use the Offset fields to shift the image by a number of pixels.
  3. Still off? Use the Grid Alignment Tool, the angled-ruler icon to the right of the Grid Type dropdown.

Do this before you place walls and lights. Foundry warns that changing the grid size later "may change the alignment of walls, lights, notes, and tiles".

Fix 2, free: align it in Roll20

Open the Map Layer and choose Align to Grid on the hotbar. The new tool has three steps: anchor on a grid corner, scale a sample grid to match the printed one, then drag to correct drift. The page then resizes to fit the map. The legacy 3 by 3 trace tool is still offered. Source: Roll20, Sizing and Aligning Maps.

Fix 3, free: what a map seller should ship

There is no single right pixels-per-square value. Foundry defaults to 100 and Roll20 counts in 70, so state yours and let the buyer set it once.

Fix 4, paid: build the pack with a tool

I make Map Pack Press ($12, with a free sample pack you can open in your VTT first). You load up to 12 clean maps, set columns, rows and pixels per square, and check the grid over the art before export. It writes one ZIP with gridded and gridless WebP pairs, a SETUP.txt with the Foundry and Roll20 scene settings, and a CSV list of the maps.

It needs clean art with no grid already drawn in, and all maps in one run must share the same proportions. It does not fix a map whose printed grid is already off, does not build Foundry scenes, walls or lights, and was tested in desktop Chrome on Windows only. If you sell one map now and then, Fix 3 by hand is enough.

Which one to use