Skip to content

Urbs97/FO2MapEdit

 
 

Repository files navigation

FO2MapEdit — Fallout 2 Map & Image Editor

A C++17 desktop GUI application for editing Fallout 2 image assets — FRM sprites, MSK mask tiles, overworld map tiles, and town map tiles. Built with Dear ImGui (docking branch), GLFW, OpenGL 3.3, and GLAD.

Forked from msk2bmpGUI by QuantumApprentice, which was originally based on the msk2bmp sources by temaperacl.


Features

Image Loading & Conversion

  • Load standard image formats (PNG, BMP, JPG, GIF) and Fallout FRM/FR0-FR5 files via file dialog or drag & drop
  • Load MSK mask files and .wmap worldmap project files
  • Import an existing worldmap directly from Fallout 2 (parses worldmap.txt, stitches FRM tiles and MSK masks, and loads city.txt data into a single editable project)
  • Palettize images to the Fallout 256-color palette using Euclidean distance color matching with optional Floyd-Steinberg dithering
  • Real-time palette rendering via OpenGL fragment shaders
  • Display multi-frame FRM animations in all 6 orientations
  • Drag & drop a folder of images to load them as sequential animation frames, with automatic directional grouping (NE, E, SE, SW, W, NW subfolders)

Worldmap Tile Export

  • Split a source image into a grid of 350x300 FRM tiles for the Fallout 2 overworld map
  • Export all tiles or a single selected tile
  • Automatic .wmap project file creation for round-trip editing — reload exported tiles without the original source image
  • Note: Only the default vanilla worldmap size of 1400x1500 (4x5 tiles) has been tested so far. Other sizes may work but are untested.

Mask (MSK) Editing & Export

  • Create and paint 1-bit collision masks on a dedicated MSK layer
  • Export MSK mask tiles alongside FRM tiles

City Editing & Export

  • Automatically import city data (CITY.TXT) when loading a worldmap from Fallout 2
  • Display cities as interactive markers on the worldmap overlay
  • Click markers to select a city and open the City Info panel
  • Edit city properties: name, world position, size (Small/Medium/Large), start state, and lock state
  • Export a modified CITY.TXT alongside worldmap tiles

Game Integration

  • Set a Fallout 2 game path for one-click export of FRM, MSK, and CITY.TXT files to the correct subdirectories
  • Export a minimal WORLDMAP.TXT template for registering worldmap tiles

Paint Tools

  • Paint on palettized images using colors from the Fallout palette
  • Fill-rect tool with configurable brush size

Tutorials

Detailed step-by-step guides are included in this repository:

  • Importing & Loading Files — loading images, opening .wmap projects, importing a worldmap from a Fallout 2 installation, drag & drop animation loading
  • Worldmap Tiles & Masks — exporting overworld FRM/MSK tiles, .wmap project files, file format reference
  • City Editing — importing, editing, and exporting city data (CITY.TXT) for the Fallout 2 worldmap

Screenshot

City Editing


Build

Dependencies (vendored)

Linux (CMake)

cmake -S . -B build
cmake --build build

The executable is build/FO2MapEdit. Resources are copied to build/resources/ automatically.

You may need to uninstall libtbb-dev if it conflicts with the CMake build.

Windows

Open msk2bmpGUI.sln in Visual Studio and build from the IDE.


License

This project is licensed under the GNU General Public License v3.0. Portions of this software were originally licensed under the MIT License.

Licenses for vendored dependencies are in the Licenses folder.

About

Fallout 2 Map & Image Editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 54.3%
  • C++ 42.1%
  • Objective-C 1.2%
  • Objective-C++ 0.8%
  • JavaScript 0.5%
  • CMake 0.5%
  • Other 0.6%