mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:50:42 +00:00
8f3e09c6a3
## Description: Adds the Gulf of St. Lawrence map and the flags of New Brunswick (ca_nb), Nova Scotia (ca_ns), and Prince Edward Island (ca_pe). ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced <img width="1380" height="1150" alt="Screenshot 2025-11-26 201008" src="https://github.com/user-attachments/assets/77531058-b429-4c68-b645-a3e59033458b" /> <img width="1434" height="1195" alt="Screenshot 2025-11-26 202128" src="https://github.com/user-attachments/assets/9c3e2bc2-882f-4662-a32b-16e17db852f2" /> ## Discord username sehentsin
MapGenerator
This is a tool to generate map files for OpenFront.
Installation
- Install go https://go.dev/doc/install
- Install dependencies:
go mod download - Run the generator:
go run .
Creating a new map
- Create a new folder in assets/maps/<map_name>
- Create image.png
- Create info.json with name and countries
- Add the map name in main.go
- Run the generator:
go run . - Find the output folder at generated/maps/<map_name>
Create image.png
- Download world map (warning very large file) https://drive.google.com/file/d/1W2oMPj1L5zWRyPhh8LfmnY3_kve-FBR2/view?usp=sharing
- Crop the file (recommend Gimp), we recommend roughly 2 million pixels for performance reasons. Do not go over 4 million pixels.
Create info.json
- Look at existing info.json for structure
- Use country codes found here: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
Notes
- Islands smaller than 30 tiles (pixels) are automatically removed by the script.
- Bodies of water smaller than 200 tiles (pixels) are also removed.