Skip to content

Add Korea Map#3977

Open
crunchybbb2-hash wants to merge 6 commits into
openfrontio:mainfrom
crunchybbb2-hash:korea
Open

Add Korea Map#3977
crunchybbb2-hash wants to merge 6 commits into
openfrontio:mainfrom
crunchybbb2-hash:korea

Conversation

@crunchybbb2-hash
Copy link
Copy Markdown

@crunchybbb2-hash crunchybbb2-hash commented May 20, 2026

Description:

Add map of korean peninsula. Size 1092x2149
Nations: 35
based on provinces

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
  • I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced

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

DISCORD_USERNAME
crunchybbbbb @crunchybbbbb_59469

Korea-2

two teams nations war video https://www.youtube.com/watch?v=n4h7GAfAHTM

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 20, 2026

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

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: ed4c6512-9e2e-4376-959e-eea5bb66d80d

📥 Commits

Reviewing files that changed from the base of the PR and between 42e74eb and b4a4c04.

📒 Files selected for processing (2)
  • resources/lang/en.json
  • src/core/game/Game.ts
✅ Files skipped from review due to trivial changes (2)
  • src/core/game/Game.ts
  • resources/lang/en.json

Walkthrough

Registers Korea as a new regional map: adds GameMapType.Korea, registers the map in the generator and assets (info + manifest), assigns playlist frequency, and adds English localization.

Changes

Korea Map Registration

Layer / File(s) Summary
Game map type definition
src/core/game/Game.ts
GameMapType.Korea enum member added; mapCategories.regional includes GameMapType.Korea.
Map generator & assets
map-generator/main.go, map-generator/assets/maps/korea/info.json, resources/maps/korea/manifest.json
Generator registry includes korea; info.json declares name: "Korea" and nation coordinate/flag entries; manifest.json provides map sizing metadata and a nations list with coordinates, flags, and names.
Server playlist and localization
src/server/MapPlaylist.ts, resources/lang/en.json
MapPlaylist FREQUENCY gains Korea: 5; English translations add the korea key.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • openfrontio/OpenFrontIO#3920: Mirrors end-to-end map registration changes (enum/category, generator registration, playlist frequency, and localization) for another map.

Suggested reviewers

  • evanpelle
  • FloPinguin

Poem

🗺️ Korea planted on the map tonight,
Files aligned and flags upright,
Generator, manifest, and enum in place,
Playlist tuned and name in English grace,
A new horizon joins the fight.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Add Korea Map' clearly and concisely describes the primary change in the changeset, which adds a new Korea map with associated metadata and configuration across multiple files.
Description check ✅ Passed The description is related to the changeset, providing map specifications (size 1092x2149, 35 nations), confirming checklist items, and including a visual reference of the map being added.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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 and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (2)
map-generator/main.go (1)

110-110: 💤 Low value

Consider maintaining alphabetical order in the maps registry.

The korea entry is added at the end of the list, but the registry appears to follow alphabetical ordering (e.g., japan, lemnos, lisbon). Placing it between japan (line 65) and lemnos (line 66) would maintain consistency and improve maintainability.

📋 Suggested placement

Move the korea entry to maintain alphabetical order:

   {Name: "japan"},
+  {Name: "korea"},
   {Name: "lemnos"},

Remove from line 110.

🤖 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 `@map-generator/main.go` at line 110, The "korea" map entry is out of
alphabetical order in the maps registry; remove the existing {Name: "korea"}
entry at its current location and insert it between the "japan" and "lemnos"
entries so the slice stays alphabetically ordered (e.g., ... "japan", "korea",
"lemnos", ...).
src/core/game/Game.ts (1)

194-194: ⚡ Quick win

Remove unnecessary blank line.

This blank line appears to be an accidental addition within the continental array.

🧹 Proposed fix
     GameMapType.Oceania,
     GameMapType.Antarctica,
-  
   ],
🤖 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/Game.ts` at line 194, Remove the accidental blank line inside
the continental array literal in the Game class; locate the array declaration
named "continental" (the continental array within Game.ts) and delete the empty
line so the array entries are contiguous and formatted consistently.
🤖 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/korea/info.json`:
- Around line 39-43: The "flag" value for the Nagasaki region is inconsistent:
it uses "Empire of Japan" while other Japanese regions use "jp"; update the
Nagasaki entry's "flag" property (the JSON object with "name": "Nagasaki" and
"coordinates": [963, 2093]) to use the standardized value "jp" so it matches
Fukuoka and Saga and avoids rendering inconsistencies.

---

Nitpick comments:
In `@map-generator/main.go`:
- Line 110: The "korea" map entry is out of alphabetical order in the maps
registry; remove the existing {Name: "korea"} entry at its current location and
insert it between the "japan" and "lemnos" entries so the slice stays
alphabetically ordered (e.g., ... "japan", "korea", "lemnos", ...).

In `@src/core/game/Game.ts`:
- Line 194: Remove the accidental blank line inside the continental array
literal in the Game class; locate the array declaration named "continental" (the
continental array within Game.ts) and delete the empty line so the array entries
are contiguous and formatted consistently.
🪄 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: 39e5a25b-249b-4f1d-8434-01590fc8a607

📥 Commits

Reviewing files that changed from the base of the PR and between 513057a and 91e7b5a.

⛔ Files ignored due to path filters (4)
  • map-generator/assets/maps/korea/image.png is excluded by !**/*.png
  • resources/maps/korea/map.bin is excluded by !**/*.bin
  • resources/maps/korea/map16x.bin is excluded by !**/*.bin
  • resources/maps/korea/map4x.bin is excluded by !**/*.bin
📒 Files selected for processing (7)
  • map-generator/assets/maps/korea/info.json
  • map-generator/main.go
  • resources/lang/en.json
  • resources/maps/korea/manifest.json
  • resources/maps/korea/thumbnail.webp
  • src/core/game/Game.ts
  • src/server/MapPlaylist.ts

Comment thread map-generator/assets/maps/korea/info.json
@github-project-automation github-project-automation Bot moved this from Triage to Development in OpenFront Release Management May 20, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes May 20, 2026
@github-project-automation github-project-automation Bot moved this from Development to Complete in OpenFront Release Management May 20, 2026
@github-project-automation github-project-automation Bot moved this from Complete to Triage in OpenFront Release Management May 20, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes May 21, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

2 participants