#OpenFront Map Editor - Generates the Files for you

1 messages · Page 1 of 1 (latest)

ember cloak
#

OpenFront Custom Map Editor

NOTE: This is still in a very early stage, so feel free to test it and share feedback.

Create custom maps for OpenFront right in your browser — no installs needed!

Live Editor: https://ofmapeditor.projectsmith.dev/
GitHub: https://github.com/zuperzonic1/Custom-Map-OpenFront


How to Use

1. Create Your Map

  • Go to https://ofmapeditor.projectsmith.dev/
  • Create a blank canvas (pick a size) or import an image (PNG/JPEG/WebP)
  • Paint terrain, set elevations, and place nation spawns
  • Click Export → Map Files to download your map as a .zip

2. Add Map Files to the Game

  • In your OpenFrontIO repo, create a folder: resources/maps/<YourMapName>/
  • Unzip the downloaded .zip and move all files into that folder

3. Register the Map In-Game

  • Add to GameMapType and mapCategories in src/core/game/Game.ts
  • Add to src/server/MapPlaylist.ts
  • Add a translation entry in resources/lang/en.json
  • Add credits to CREDITS.md

For the full in-game setup guide, see the official docs


Open source & contributions welcome! ⭐

final arch
#

crazy

cunning plover
#

dude this is insanely cool

merry idol
#

Nice, I see this is early. One suggestion would be to add an auto nation fill tool and a way to edit nations info after. That way I could select a grid density, maybe there would be some randomness, and the computer could place the bulk of the nations evenly for me across the land.

#

I like the 3 million pixel suggested land cap. lol

buoyant comet
#

please add a ctrl z option to the map maker, it makes life much easyer

ember cloak
#

A Few updates have been shipped, Auto-nations and Undo/redo options

buoyant comet
#

could you also please add a height sampler for the land tool?, It'd make removing names from maps so much easier.

ember cloak
#

Wdym by ‘removing names from maps’ and by a height sample I am assuming you want a tool a that samples a pixel and gives you the same land elevation on the land tool.

buoyant comet
#

I mean like if you have a map with place names

ember cloak
#

Added Elevation Sampler

buoyant comet
#

Ty

ember cloak
#

where would be a better place to post tools like this ?

buoyant comet
trail crag
#

can you do a modified version of openfront website where we can test our custom maps online without creating a lot of folders ?

gloomy yoke
#

pretty sure that’s doable but this means a game instance would have to be running in a dev instance, we can have an api that receives maps to test, a script that modifies all files and uploads maps received, on a dev instance hot-reload should kick it yo instantly update it.

Will probably need a better server for that my current tiny server is running more than 9 projects may god bless it’s ram.

boreal lotus
#

Any way to get rid of the 3M land tile limit? @ember cloak

ember cloak
#

not atm, pretty busy with moving right now, so the project might be down for a day or 2, as I am hosting it on my server,

The reason I have the tile limit is because its recommended, I can have it more of a suggestion than an enforced limit.

boreal lotus
#

Yes please

south hatch
#

@ember cloak could there be a way to download the map image with the in-game palette?

#

this, but high quality

south hatch
#

and also give the option to upload already made json files

floral kindle
#

beautiful

gloomy yoke
#

Yeah that can all be done, not too hard but I am pretty busy atm got slot of work to catchup on, so I’ll try to add them when I get a chance