Skip to content

Adds Map of China#4468

Open
crunchybbb2 wants to merge 12 commits into
openfrontio:mainfrom
crunchybbb2:china
Open

Adds Map of China#4468
crunchybbb2 wants to merge 12 commits into
openfrontio:mainfrom
crunchybbb2:china

Conversation

@crunchybbb2

@crunchybbb2 crunchybbb2 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Before opening a PR: discuss new features on Discord first, and file bugs or small improvements as issues. You must be assigned to an approved issue — unsolicited PRs will be auto-closed.

Add approved & assigned issue number here:

Resolves #4419

Description:

  • Adds a China Map. This is themed after Qing China from the late 19th and early 20th centuries, which is why the map also includes Mongolia and Taiwan.
  • There are 32 nations themed after qing provinces, warlords, factions, European colonies, rebellions.
  • Also adds several new flags: EastTurkestan, Manchukuo, BritishHongKong, TaipingHeavenlyKingdom, etc.
  • Includes additional nations for a total of 62 nations.
  • Size: 1892x2080
  • Land area: approx. 1.86M
  • Adds Caspian Sea and China to the new category (which i forgot earlier)

https://youtu.be/ew9Qizo67cA

image

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:

DISCORD_USERNAME crunchybbbbb

@coderabbitai

coderabbitai Bot commented Jul 1, 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

Run ID: 62abeece-0436-422f-a60f-312aada6e84c

📥 Commits

Reviewing files that changed from the base of the PR and between d34b4c2 and aeacc28.

📒 Files selected for processing (2)
  • map-generator/assets/maps/china/info.json
  • resources/maps/china/manifest.json
🚧 Files skipped from review as they are similar to previous changes (2)
  • resources/maps/china/manifest.json
  • map-generator/assets/maps/china/info.json

Walkthrough

Adds a new China map across generator data, runtime manifest data, registry wiring, translation, and country flag entries. It also updates CaspianSea categories and reformats the CaspianSea manifest.

Changes

China Map Addition

Layer / File(s) Summary
Map registry and translation wiring
src/core/game/Maps.gen.ts, map-generator/assets/maps/caspiansea/info.json, resources/lang/en.json
Adds GameMapType.China and its maps entry, updates CaspianSea categories with "new", and adds the map.china translation key.
China map generator source data
map-generator/assets/maps/china/info.json
Creates the China generator metadata with map fields, nations, and additional nations.
China map resource manifest
resources/maps/china/manifest.json
Creates the China runtime manifest with additional nations, map metadata, dimensions, nations, and translation key.
New country flag entries
resources/countries.json
Adds British Hong Kong, East Turkestan, Ma Clique, Manchukuo, and Taiping Heavenly Kingdom entries.
CaspianSea manifest reformatting
resources/maps/caspiansea/manifest.json
Reformats categories and nation coordinates without changing values.

Estimated code review effort: 2 (Simple) | ~15 minutes

Possibly related PRs

Suggested labels: Maps

Suggested reviewers: evanpelle, RickD004, FloPinguin

Poem

A new map blooms where old borders sleep,
With flags and names the archives keep.
China joins the game world wide,
And CaspianSea gets a fresh new tide.
🗺️

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is clear and matches the main change: adding a China map.
Description check ✅ Passed The description matches the China map and related metadata updates.
Linked Issues check ✅ Passed The China map, new flags, and category/translation updates align with the issue scope.
Out of Scope Changes check ✅ Passed All changes support the China map feature or generated map data; no unrelated edits are evident.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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.

@crunchybbb2 crunchybbb2 changed the title China Adds Map of China Jul 1, 2026

@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.

Actionable comments posted: 2

🤖 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.

Inline comments:
In `@map-generator/assets/maps/china/info.json`:
- Around line 270-274: Update the map entry for Second East Turkestan Republic
to use the existing Eastern_Turkistan_Flag asset instead of the pk country code.
Make this change in the China map info data and keep the corresponding manifest
entry in sync so both references point to the same flag identifier. Locate the
affected records by the name field "Second East Turkestan Republic" and the
Eastern_Turkistan_Flag symbol already defined in the repo.
- Around line 275-279: The Shanxi Clique entry in the map info uses the wrong
flag symbol. Update the record identified by the name field “Shanxi Clique” so
it uses the Republic of China flag symbol instead of “tw”, matching the other
cliques in this dataset.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f31e2549-0585-40d4-b866-5b7d3907dae4

📥 Commits

Reviewing files that changed from the base of the PR and between 2794ab1 and d34b4c2.

⛔ Files ignored due to path filters (10)
  • map-generator/assets/maps/china/image.png is excluded by !**/*.png
  • resources/flags/Eastern_Turkistan_Flag.svg is excluded by !**/*.svg
  • resources/flags/Flag_of_Hong_Kong_(1959-1997).svg is excluded by !**/*.svg
  • resources/flags/Flag_of_Manchukuo.svg is excluded by !**/*.svg
  • resources/flags/Flag_of_Taiping_Heavenly_Kingdom.svg is excluded by !**/*.svg
  • resources/flags/Kuomintang_Emblem.svg is excluded by !**/*.svg
  • resources/flags/Ma_Clique_Flag.svg is excluded by !**/*.svg
  • resources/maps/china/map.bin is excluded by !**/*.bin
  • resources/maps/china/map16x.bin is excluded by !**/*.bin
  • resources/maps/china/map4x.bin is excluded by !**/*.bin
📒 Files selected for processing (8)
  • map-generator/assets/maps/caspiansea/info.json
  • map-generator/assets/maps/china/info.json
  • resources/countries.json
  • resources/lang/en.json
  • resources/maps/caspiansea/manifest.json
  • resources/maps/china/manifest.json
  • resources/maps/china/thumbnail.webp
  • src/core/game/Maps.gen.ts

Comment thread map-generator/assets/maps/china/info.json
Comment thread map-generator/assets/maps/china/info.json
@github-project-automation github-project-automation Bot moved this from Triage to Development in OpenFront Release Management Jul 1, 2026
@RickD004 RickD004 added the Maps A new map, or adjustments to an existing map itself, its json, etc, label Jul 1, 2026
@RickD004 RickD004 added this to the v33 milestone Jul 1, 2026
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: Development

Development

Successfully merging this pull request may close these issues.

Adds Map of China (With Impassable terrain)

2 participants