Skip to content

Adds map of France - #4747

Merged
evanpelle merged 2 commits into
openfrontio:mainfrom
RickD004:france
Jul 28, 2026
Merged

Adds map of France#4747
evanpelle merged 2 commits into
openfrontio:mainfrom
RickD004:france

Conversation

@RickD004

Copy link
Copy Markdown
Contributor

Description:

(maybe) final map for v33. Map of France
Another country map using impassable terrain.

The second largest playerbase is france, only behind the US. As such i think this would be a nice map for the french playerbase, as there are many relevant content creators and players from this country.

(the Didier France map shouldnt clash with this one, as that one has the lowest rotation (1) and only appears in special game modifiers. Majority of the playerbase has probably never even seen it, it should be treated as an easter egg - This acts as the common default map of france)

Old french regions as nations. Custom nations and tribes are planned to be added in the future

Captura de pantalla 2026-07-27 225951

Please complete the following:

  • I have added screenshots for all UI updates
  • I process any text displayed to the user through translateText() and I've added it to the en.json file
  • I have added relevant tests to the test directory

Please put your Discord username so you can be contacted if a bug or regression is found:

tri.star1011

@RickD004
RickD004 requested a review from a team as a code owner July 28, 2026 06:09
@RickD004 RickD004 added the Maps A new map, or adjustments to an existing map itself, its json, etc, label Jul 28, 2026
@RickD004 RickD004 added this to the v33 milestone Jul 28, 2026
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 649501cb-52e1-4d1a-8726-81140185b22c

📥 Commits

Reviewing files that changed from the base of the PR and between ae22e73 and 5f5d78b.

📒 Files selected for processing (1)
  • resources/countries.json
💤 Files with no reviewable changes (1)
  • resources/countries.json

Walkthrough

Adds a playable France map with regional definitions, map metadata, dimensions, thumbnail, translation, and generated game catalog registration.

Changes

France map

Layer / File(s) Summary
French region catalog
resources/countries.json
Adds French administrative, historical, and regional country entries with identifiers and labels.
France map definition and assets
map-generator/assets/maps/france/info.json, resources/maps/france/manifest.json, resources/maps/france/thumbnail.webp
Defines map metadata, region coordinates and flags, map dimensions, and the thumbnail.
Game map registration
resources/lang/en.json, src/core/game/Maps.gen.ts
Adds the France translation and registers the France map type and catalog entry.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

Suggested labels: Maps

Poem

France arrives in fields of blue,
With regions mapped and flags in view.
A catalog entry joins the line,
“France” now shines in game design.
New paths unfold from coast to land.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding a France map.
Description check ✅ Passed The description is clearly related to the France map addition and its intended use.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/core/game/Maps.gen.ts (1)

50-50: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add a registry test for the new map entry.

This changes src/core/, but no test change is included. Extend the existing generic map-catalog test so it verifies GameMapType.France and the map.france metadata.

Based on coding guidelines, all changes to src/core/ must include tests. Based on learnings, use the existing non-per-map registry assertions instead of adding a dedicated France-only expectation.

Also applies to: 512-518

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/core/game/Maps.gen.ts` at line 50, Extend the existing generic
map-catalog registry test to cover GameMapType.France and its map.france
metadata, using the established non-per-map assertion pattern rather than adding
a France-specific test. Ensure the test confirms the new registry entry is
included alongside the existing map entries.

Sources: Coding guidelines, Learnings

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@src/core/game/Maps.gen.ts`:
- Line 50: Extend the existing generic map-catalog registry test to cover
GameMapType.France and its map.france metadata, using the established
non-per-map assertion pattern rather than adding a France-specific test. Ensure
the test confirms the new registry entry is included alongside the existing map
entries.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8db223f8-dec4-4d6a-89d5-a12a5d482cf2

📥 Commits

Reviewing files that changed from the base of the PR and between 296d65f and ae22e73.

⛔ Files ignored due to path filters (29)
  • map-generator/assets/maps/france/image.png is excluded by !**/*.png
  • resources/flags/Free France.svg is excluded by !**/*.svg
  • resources/flags/Gascony.svg is excluded by !**/*.svg
  • resources/flags/Kingdom of France.svg is excluded by !**/*.svg
  • resources/flags/Napoleon.svg is excluded by !**/*.svg
  • resources/flags/fr-a.svg is excluded by !**/*.svg
  • resources/flags/fr-ara.svg is excluded by !**/*.svg
  • resources/flags/fr-bfc.svg is excluded by !**/*.svg
  • resources/flags/fr-c.svg is excluded by !**/*.svg
  • resources/flags/fr-cvl.svg is excluded by !**/*.svg
  • resources/flags/fr-d.svg is excluded by !**/*.svg
  • resources/flags/fr-g.svg is excluded by !**/*.svg
  • resources/flags/fr-ges.svg is excluded by !**/*.svg
  • resources/flags/fr-hdf.svg is excluded by !**/*.svg
  • resources/flags/fr-i.svg is excluded by !**/*.svg
  • resources/flags/fr-idf.svg is excluded by !**/*.svg
  • resources/flags/fr-k.svg is excluded by !**/*.svg
  • resources/flags/fr-l.svg is excluded by !**/*.svg
  • resources/flags/fr-m.svg is excluded by !**/*.svg
  • resources/flags/fr-naq.svg is excluded by !**/*.svg
  • resources/flags/fr-o.svg is excluded by !**/*.svg
  • resources/flags/fr-pac.svg is excluded by !**/*.svg
  • resources/flags/fr-pdl.svg is excluded by !**/*.svg
  • resources/flags/fr-s.svg is excluded by !**/*.svg
  • resources/flags/fr-t.svg is excluded by !**/*.svg
  • resources/flags/fr-v.svg is excluded by !**/*.svg
  • resources/maps/france/map.bin is excluded by !**/*.bin
  • resources/maps/france/map16x.bin is excluded by !**/*.bin
  • resources/maps/france/map4x.bin is excluded by !**/*.bin
📒 Files selected for processing (6)
  • map-generator/assets/maps/france/info.json
  • resources/countries.json
  • resources/lang/en.json
  • resources/maps/france/manifest.json
  • resources/maps/france/thumbnail.webp
  • src/core/game/Maps.gen.ts

coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 28, 2026
@github-project-automation github-project-automation Bot moved this from Triage to Final Review in OpenFront Release Management Jul 28, 2026
@evanpelle
evanpelle added this pull request to the merge queue Jul 28, 2026
Merged via the queue into openfrontio:main with commit ce778b2 Jul 28, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from Final Review to Complete in OpenFront Release Management Jul 28, 2026
@RickD004
RickD004 deleted the france branch July 29, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maps A new map, or adjustments to an existing map itself, its json, etc,

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

2 participants