Skip to content

Add new map: Bosphorus Straits#2927

Open
TsProphet94 wants to merge 6 commits intoopenfrontio:mainfrom
TsProphet94:feature-add-bosphorus-straits
Open

Add new map: Bosphorus Straits#2927
TsProphet94 wants to merge 6 commits intoopenfrontio:mainfrom
TsProphet94:feature-add-bosphorus-straits

Conversation

@TsProphet94
Copy link
Contributor

Description:

Adds a new Bosphorus Map (Turkey). One of the key strategic locations in the world and control access to the Black Sea. Smaller map that most to facilitate smaller FFA and Team games. Added are a selection of nations that correspond to the location.

image

Image 16-01-2026 at 17 39
Image 16-01-2026 at 17 39 (1)

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:

TSProphet

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 16, 2026

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

Walkthrough

Adds a new "Bosphorus Straits" map: map asset and info JSON, resources manifest, map-generator registration, English localization key, Game enum entry, and playlist weight.

Changes

Cohort / File(s) Summary
Map data & manifest
map-generator/assets/maps/bosphorusstraits/info.json, resources/maps/bosphorusstraits/manifest.json
New JSON files defining the Bosphorus Straits map: map metadata, nations with coordinates and flags, scaled variants, and land tile counts. Verify coordinates, names, and tile counts.
Map generator registry
map-generator/main.go
Added bosphorusstraits to the map registry. Check name consistency with resources and manifest.
Localization
resources/lang/en.json
Added "bosphorusstraits": "Bosphorus Straits" to English translations. Confirm key placement and JSON punctuation to avoid syntax errors.
Game types & classification
src/core/game/Game.ts
Added BosphorusStraits to GameMapType and included it in mapCategories.regional. Ensure enum string matches manifest/name.
Playlist weighting
src/server/MapPlaylist.ts
Added BosphorusStraits: 3 to the server map frequency mapping. Confirm intended weight and no unintended removals.

Sequence Diagram(s)

sequenceDiagram
    participant Client as Client
    participant Playlist as MapPlaylist (Server)
    participant Game as GameMapType / MapCategories
    participant Generator as MapGenerator
    participant Resources as Map Assets / Manifest

    Client->>Playlist: request available maps
    Playlist->>Game: reference BosphorusStraits in frequency map
    Game->>Generator: include GameMapType.BosphorusStraits in regional category
    Generator->>Resources: load `resources/maps/bosphorusstraits/manifest.json` and `map-generator/assets/.../info.json`
    Resources-->>Generator: return manifest and nations data
    Generator-->>Playlist: make map available for selection
    Playlist-->>Client: return updated map list including Bosphorus Straits
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

A new strait drawn on the coder's chart,
Pins of cities placed like art,
JSON sails and flags unfurled,
Bosphorus joins the game-world,
Set course — a fresh map for the heart. 🌊🗺️

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main objective of the pull request: adding a new map named Bosphorus Straits.
Description check ✅ Passed The description is directly related to the changeset, explaining the geographic context, map purpose, and nations included in the new Bosphorus Straits map.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ 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.

coderabbitai[bot]
coderabbitai bot previously approved these changes Jan 16, 2026
@ryanbarlow97 ryanbarlow97 added this to the v30 milestone Jan 20, 2026
@iiamlewis iiamlewis added the Maps A new map, or adjustments to an existing map itself, its json, etc, label Jan 22, 2026
coderabbitai[bot]
coderabbitai bot previously approved these changes Jan 28, 2026
coderabbitai[bot]
coderabbitai bot previously approved these changes Feb 8, 2026
@TsProphet94
Copy link
Contributor Author

cleared conflicts

Copy link
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

🤖 Fix all issues with AI agents
In `@resources/lang/en.json`:
- Around line 331-332: JSON is invalid because the "bosphorusstraits" entry is
missing a trailing comma; update the JSON by adding a comma after the
"bosphorusstraits": "Bosphorus Straits" entry so that the following
"tradersdream": "Traders Dream" entry is correctly separated (verify the keys
"bosphorusstraits" and "tradersdream" are comma-separated and the file parses).

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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments