Skip to content

New online docs#144

Open
wasdeilonn wants to merge 6 commits intoPolyModdingTeam:mainfrom
wasdeilonn:main
Open

New online docs#144
wasdeilonn wants to merge 6 commits intoPolyModdingTeam:mainfrom
wasdeilonn:main

Conversation

@wasdeilonn
Copy link
Copy Markdown

@wasdeilonn wasdeilonn commented Mar 25, 2026

teehee

Summary by CodeRabbit

  • Documentation
    • Expanded introduction with a full guide to creating mods
    • Documented supported mod packaging formats (folders, .zip, .polymod)
    • Added mod storage location and example file/folder hierarchy
    • Included a detailed manifest.json field reference with example JSON
    • Added placeholder sections for patches, sprites, localization, prefabs, and advanced scripting

@IExploitableMan IExploitableMan changed the title intro and manifest New online docs Mar 25, 2026
Hi! This page will teach you the very basics of modding Polytopia.

# How do I make a mod?
Polytopia mods are essentially a folder/`.zip` file/`.polymod` file that contains a `manifest.json` file and other components of the mod. Mods are stored in the `Mods` folder of the Polytopia root folder.
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.

folder/.zip file/.polymod

looks bad

Polytopia root folder.

explain root folder

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

true

# How do I make a mod?
Polytopia mods are essentially a folder/`.zip` file/`.polymod` file that contains a `manifest.json` file and other components of the mod. Mods are stored in the `Mods` folder of the Polytopia root folder.

In order to make a new mod, you have to create a new folder inside the `Mods` folder, name it whatever, and then put a `manifest.json` file in it (more on this later). You can also zip this folder to turn it into a distributable mod, and you can rename the extention to .polymod so you can properly distribute it on the [polymod.dev](https://polymod.dev/) website.
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.

Ziping folder is bad

name it whatever
bruh?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

k

}
```
> [!TIP]
> If you aren't familiar with the JSON format, try reading a bit about it first.
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.

Reading where??
https://json.org/

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

mb bro imma add it if i find out how

```

# Manifest
The `manifest.json` file contains basic information about your mod, like its id, name, description, authors, dependencies, so on. This file is a json file, and looks something like this:
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.

*metadata of the mod

@wasdeilonn wasdeilonn marked this pull request as draft March 25, 2026 19:19
@wasdeilonn
Copy link
Copy Markdown
Author

@IExploitableMan wdyt?

@wasdeilonn wasdeilonn marked this pull request as ready for review March 26, 2026 15:31
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 26, 2026

📝 Walkthrough

Walkthrough

Expanded the introduction documentation from a bare header into a full guide covering mod creation, supported packaging formats (folder, .zip, .polymod), mod storage location (Mods in game root), example file hierarchy, and a detailed manifest.json reference with field descriptions and examples; placeholder sections added for Patch, Sprites, Localization, Prefabs, and PolyScript.

Changes

Cohort / File(s) Summary
Documentation
docs/docs/introduction.md
Expanded from a single heading to a full introduction: added mod creation guidance, supported packaging formats, mod storage path, example folder/file hierarchy, comprehensive manifest.json example and field descriptions (id, name, version, authors, dependencies, description), and placeholder headers for Patch, Sprites, Localization, Prefabs, and PolyScript.

Estimated Code Review Effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 I hopped upon a blank-lined page,
I stitched some fields and set the stage,
A manifest, a folder tree,
Mods now sing, docs fancy-free,
Hooray for clarity — nibble and rave! 🥕✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'New online docs' is vague and generic. While it references the file being modified (docs/docs/introduction.md), it does not clearly convey the specific content or nature of the changes—such as that an introductory documentation page was expanded with detailed mod creation guidance and manifest structure. Consider a more specific title like 'Add comprehensive introduction to mod creation and manifest structure' or 'Expand introduction documentation with mod packaging and manifest details' to better communicate the primary change.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Copy link
Copy Markdown

@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: 3

🧹 Nitpick comments (2)
docs/docs/introduction.md (2)

23-30: Add a language hint to the fenced code block.

The hierarchy example fence has no language tag. Add one (for example text) to satisfy markdown lint and improve readability.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/docs/introduction.md` around lines 23 - 30, The fenced code block
showing the mod folder hierarchy currently has no language tag; update the
triple-backtick fence that precedes the block containing "The Battle of
Polytopia      (this is your "polytopia root" folder)" so it becomes a
language-tagged fence (e.g., ```text) to satisfy markdown lint and improve
readability; keep the block content identical and only add the language
identifier after the opening backticks.

7-7: Clean up spelling/wording in key instructional lines.

There are a few visible typos/phrasing issues (e.g., “aswell”, “extention”, “user friendly”, “you format is”, “whats”). Quick pass will improve polish and reduce reader confusion.

Also applies to: 20-20, 65-65, 67-67, 77-77

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/docs/introduction.md` at line 7, Fix spelling and wording in the
instructional text: change "aswell" to "as well", "extention" to "extension",
"user friendly" to "user-friendly", "you format is" to "your format is", and
"whats" to "what's"; also simplify the parenthetical "Polytopia root folder
(Polytopia root folder is the folder that holds all the information about the
game)" to a concise phrase like "Polytopia root folder, which contains the
game's data." Apply these edits to the sentence starting with "Mods also have a
`manifest.json` file, aswell ..." and make the same spelling/phrasing fixes at
the other flagged locations (lines referenced in the review).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/docs/introduction.md`:
- Around line 16-19: The doc contains an unresolved placeholder under the "**On
epic**" section reading "I HAVE NO CLUE LMAO TO FIX!!!!!!!!!!!!"; replace that
exact placeholder with either a short, verified set of Epic steps (clear
actionable bullets) or a neutral "TBD — Epic steps to be added" note, and ensure
the text uses professional tone and matches surrounding Markdown style (e.g.,
keep the bold heading "**On epic**" and use bullet list or a single neutral
sentence).
- Around line 59-61: The NOTE admonition block starting with "[!NOTE]" has a
line ("We advise you use some code editor app...") that is missing the
blockquote prefix, breaking rendering; update the markdown so every line in that
admonition is prefixed with ">" (i.e., add ">" before the editor recommendation
line) so the entire NOTE block renders correctly in the introduction.md file.
- Around line 34-55: The manifest.json example contains invalid JSON due to a
trailing comma after the "min": "2.0.0" entry in the dependencies object (the
polytopia dependency); remove that trailing comma so the object becomes valid
JSON, then validate the snippet (e.g., with a JSON linter) to ensure no other
trailing commas or syntax errors remain before committing.

---

Nitpick comments:
In `@docs/docs/introduction.md`:
- Around line 23-30: The fenced code block showing the mod folder hierarchy
currently has no language tag; update the triple-backtick fence that precedes
the block containing "The Battle of Polytopia      (this is your "polytopia
root" folder)" so it becomes a language-tagged fence (e.g., ```text) to satisfy
markdown lint and improve readability; keep the block content identical and only
add the language identifier after the opening backticks.
- Line 7: Fix spelling and wording in the instructional text: change "aswell" to
"as well", "extention" to "extension", "user friendly" to "user-friendly", "you
format is" to "your format is", and "whats" to "what's"; also simplify the
parenthetical "Polytopia root folder (Polytopia root folder is the folder that
holds all the information about the game)" to a concise phrase like "Polytopia
root folder, which contains the game's data." Apply these edits to the sentence
starting with "Mods also have a `manifest.json` file, aswell ..." and make the
same spelling/phrasing fixes at the other flagged locations (lines referenced in
the review).
🪄 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9368993d-d6ee-4b90-8f69-d0c1abd92446

📥 Commits

Reviewing files that changed from the base of the PR and between 2a3cc3a and 82c2dd7.

📒 Files selected for processing (1)
  • docs/docs/introduction.md

Comment on lines +16 to +19
> **On epic**
>
> [I HAVE NO CLUE LMAO TO FIX!!!!!!!!!!!!]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Replace unresolved placeholder text before merge.

Line 18 still contains an internal placeholder (I HAVE NO CLUE...) and shouldn’t ship in public docs. Either provide verified Epic steps or explicitly mark as “TBD” in neutral language.

🧰 Tools
🪛 LanguageTool

[style] ~19-~19: Consider a more concise word here.
Context: ... HAVE NO CLUE LMAO TO FIX!!!!!!!!!!!!] In order to make a new mod, you have to create a ne...

(IN_ORDER_TO_PREMIUM)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/docs/introduction.md` around lines 16 - 19, The doc contains an
unresolved placeholder under the "**On epic**" section reading "I HAVE NO CLUE
LMAO TO FIX!!!!!!!!!!!!"; replace that exact placeholder with either a short,
verified set of Epic steps (clear actionable bullets) or a neutral "TBD — Epic
steps to be added" note, and ensure the text uses professional tone and matches
surrounding Markdown style (e.g., keep the bold heading "**On epic**" and use
bullet list or a single neutral sentence).

Copy link
Copy Markdown

@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: 3

♻️ Duplicate comments (2)
docs/docs/introduction.md (2)

16-18: ⚠️ Potential issue | 🔴 Critical

Unresolved placeholder text in public documentation.

Line 18 still contains the internal placeholder [I HAVE NO CLUE LMAO TO FIX!!!!!!!!!!!!] flagged in previous reviews. This must be replaced with either verified Epic instructions or a professional placeholder like "To be documented" before merging public-facing documentation.

✍️ Suggested neutral placeholder
 > **On epic**
 >
-> [I HAVE NO CLUE LMAO TO FIX!!!!!!!!!!!!]
+> Epic game launcher instructions to be added.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/docs/introduction.md` around lines 16 - 18, Replace the unresolved
placeholder text "[I HAVE NO CLUE LMAO TO FIX!!!!!!!!!!!!]" under the "**On
epic**" section with either the verified Epic instructions or a neutral
professional placeholder like "To be documented"; locate the "**On epic**"
heading in the introduction document and update the paragraph content
accordingly so no internal/debug placeholder remains in public docs.

59-61: ⚠️ Potential issue | 🟡 Minor

Fix broken NOTE admonition formatting.

Line 60 is missing the > blockquote prefix, which will break the NOTE block rendering. All lines within a markdown admonition must be prefixed with >.

📝 Proposed fix
 > [!NOTE]
-We advise you use some code editor app like Visual Studio Code or Notepad++ (or anything, just be comfortable writing JSON).
+> We advise you use some code editor app like Visual Studio Code or Notepad++ (or anything, just be comfortable writing JSON).
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/docs/introduction.md` around lines 59 - 61, The NOTE admonition is
broken because the second line ("We advise you use some code editor...") lacks
the leading ">" so the blockquote stops; edit the markdown in
docs/docs/introduction.md to prefix that line (and any subsequent lines
belonging to the NOTE) with ">" so the entire admonition (the "[!NOTE]" line and
its text) is consistently blockquoted and renders correctly before the "##
Components of a manifest file:" header.
🧹 Nitpick comments (1)
docs/docs/introduction.md (1)

67-67: Consider clearer phrasing for version format.

The phrase "format is so" is informal. Consider "format it as" or "use the format" for better clarity.

✍️ Suggested alternatives
-Tells the user, aswell as the [polymod.dev](https://polymod.dev/) website what version of your mod this is. It only accepts numbers, and you format is so: `x.y.z.w` (`z` and `w` are optional, though `x` and `y` are not).
+Tells the user, as well as the [polymod.dev](https://polymod.dev/) website what version of your mod this is. It only accepts numbers, and you format it as: `x.y.z.w` (`z` and `w` are optional, though `x` and `y` are not).

Note: Also corrects "aswell" → "as well"

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/docs/introduction.md` at line 67, Update the sentence that currently
reads "Tells the user, aswell as the [polymod.dev]... what version of your mod
this is. It only accepts numbers, and you format is so: `x.y.z.w`..." by
correcting "aswell" to "as well" and replacing the informal "you format is so"
with a clearer phrase such as "format it as" or "use the format", e.g. "Tells
the user, as well as the [polymod.dev] website, what version of your mod this
is. It only accepts numbers; format it as `x.y.z.w` (`z` and `w` are optional,
though `x` and `y` are not)."
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/docs/introduction.md`:
- Line 65: The phrase "user friendly" in the sentence "The user friendly name of
the mod." should be a compound adjective; change it to "user-friendly" so the
sentence reads "The user-friendly name of the mod." Update this exact text in
docs/docs/introduction.md (look for the sentence "The user friendly name of the
mod.") to apply the hyphen.
- Line 20: Replace the misspelled word "extention" with "extension" in the
sentence that reads "zip this folder and rename the extention to `.polymod`"
within the introduction docs; update that exact phrase so it reads "...rename
the extension to `.polymod`" to correct the user-facing documentation.
- Line 77: Update the sentence "Here you can tell users what your mod is about!
When publishing, try to be descriptive cause this is whats going to show up the
mod catalogue!" by replacing "cause" with "because", changing "whats" to the
contraction "what's", and inserting the preposition "in" before "the mod
catalogue" so the line reads naturally (e.g., "...what your mod is about! When
publishing, try to be descriptive because this is what's going to show up in the
mod catalogue!").

---

Duplicate comments:
In `@docs/docs/introduction.md`:
- Around line 16-18: Replace the unresolved placeholder text "[I HAVE NO CLUE
LMAO TO FIX!!!!!!!!!!!!]" under the "**On epic**" section with either the
verified Epic instructions or a neutral professional placeholder like "To be
documented"; locate the "**On epic**" heading in the introduction document and
update the paragraph content accordingly so no internal/debug placeholder
remains in public docs.
- Around line 59-61: The NOTE admonition is broken because the second line ("We
advise you use some code editor...") lacks the leading ">" so the blockquote
stops; edit the markdown in docs/docs/introduction.md to prefix that line (and
any subsequent lines belonging to the NOTE) with ">" so the entire admonition
(the "[!NOTE]" line and its text) is consistently blockquoted and renders
correctly before the "## Components of a manifest file:" header.

---

Nitpick comments:
In `@docs/docs/introduction.md`:
- Line 67: Update the sentence that currently reads "Tells the user, aswell as
the [polymod.dev]... what version of your mod this is. It only accepts numbers,
and you format is so: `x.y.z.w`..." by correcting "aswell" to "as well" and
replacing the informal "you format is so" with a clearer phrase such as "format
it as" or "use the format", e.g. "Tells the user, as well as the [polymod.dev]
website, what version of your mod this is. It only accepts numbers; format it as
`x.y.z.w` (`z` and `w` are optional, though `x` and `y` are not)."
🪄 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: bfb87122-5909-4078-b6b0-7f60acd18b8d

📥 Commits

Reviewing files that changed from the base of the PR and between 82c2dd7 and 9f0714c.

📒 Files selected for processing (1)
  • docs/docs/introduction.md

wasdeilonn and others added 3 commits March 26, 2026 18:03
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants