Wiki

Creating mods: Difference between revisions

From 2D Tower Wiki
This page was last edited on 19 October 2026, at 20:40.
Gary (talk | contribs)
Add authoring journey and clarify source-checkout Map Mod Kit acquisition
 
Gary (talk | contribs)
Update current player-facing behavior and link to the combined decor/wallpaper guide
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
# Open '''Mods → Create''' on the title screen. Enter a title and description and choose Store, Restaurant, Residential, Office, Decor, Wallpaper or Map.
# Open '''Mods → Create''' on the title screen. Enter a title and description and choose Store, Restaurant, Residential, Office, Decor, Wallpaper or Map.
# Select '''Create mod''', then '''Open mods folder''' in the Edit step. The game copies the chosen template into the local mods directory.
# Select '''Create mod''', then '''Open mods folder''' in the Edit step. The game copies the chosen template into the local mods directory.
# Edit the copied pack. Start with one supported value or artwork change and keep the generated pack ID stable. See [[Modding#Manifest|Manifest]] and [[Modding#Room definitions|Room definitions]] for the exact format.
# Edit the copied pack. Start with one supported value or artwork change and keep the generated pack ID stable. See [[Modding#Content pack manifest|Manifest]] and [[Modding#Room definitions|Room definitions]] for the exact format.
# Select the pack in '''Mods → Publish''' and choose '''Validate'''. Fix the reported errors.
# Select the pack in '''Mods → Publish''' and choose '''Validate'''. Fix the reported errors.
# Enable the pack, restart the game and check the changed content in a small tower or map before relying on it in an existing save.
# Enable the pack, restart the game and check the changed content in a small tower or map before relying on it in an existing save.


See [[Modding#Artwork and translations|Artwork and translations]] and [[Modding#Wallpaper artwork|Wallpaper artwork]] for dimensions and frame mappings. Use the template matching the inherited room behaviour.
The Decor template includes both a recolorable painting and a pendant-light example with emission and glow. The Wallpaper template includes five styles on one sheet. See [[Modding#Recolorable decor and lighting|decor and lighting]], [[Modding#Artwork and translations|Artwork and translations]] and [[Modding#Wallpaper artwork|Wallpaper artwork]] for dimensions and frame mappings. Use the template matching the inherited room behaviour.


== Create a map ==
== Create a map ==
'''Mods → Create → Map''' supplies a playable harbor template inside the game. Edit its data using the [[Modding#Custom maps|map reference]].
'''Mods → Create → Map''' supplies a playable harbor template inside the game. Edit its data using the [[Modding#Custom maps|map reference]].


The visual '''Map Mod Kit''' is included in the project's source checkout at <code>tools/map-mod-kit</code>. Source-project users can copy that folder into their own working folder and import its <code>project.godot</code> in '''Godot 4.7'''. Open <code>map.tscn</code> and use '''Export Map Mod''' to produce the installable data pack. If the export command is absent, enable the supplied Map Mod Exporter plugin in the kit's project settings, as its README describes.
The visual '''Map Mod Kit''' is included in the project's source checkout at <code>tools/map-mod-kit</code>. Source-project users can copy that folder into their own working folder and import its <code>project.godot</code> in '''Godot 4.7'''. Open <code>map.tscn</code> and use '''Export Map Mod''' to produce the installable data pack. If the export command is absent, enable '''Map Mod Export''' under '''Project → Project Settings → Plugins''', as the kit's README describes.


This wiki currently provides no separate kit download. Players with only the game can start with the built-in Map template; obtaining the visual kit requires access to the source-project folder. The editor project and its exported pack are separate artifacts.
This wiki currently provides no separate kit download. Players with only the game can start with the built-in Map template; obtaining the visual kit requires access to the source-project folder. The editor project and its exported pack are separate artifacts.


== Preserve save compatibility ==
== Preserve save compatibility ==
Keep published pack and content IDs stable. Saves require the recorded <code>save_compatibility_version</code>, default 1, to match and all referenced content IDs to remain available. Change the compatibility version when breaking the saved-content contract; changing the release version string alone does not make a breaking update compatible. See [[Modding#Enable, publish and save|Enable, publish and save]].
Keep published pack and content IDs stable. Saves require the recorded <code>save_compatibility_version</code>, default 1, to match and all referenced content IDs to remain available. Change the compatibility version when breaking the saved-content contract; changing the release version string alone does not make a breaking update compatible. See [[Modding#Verify and publish|Verify and publish]].


== Publish through Workshop ==
== Publish through Workshop ==
Line 26: Line 26:
{{Guide navigation}}
{{Guide navigation}}
[[Category:Guides]]
[[Category:Guides]]
[[Category:Creating mods]]

Latest revision as of 20:40, 19 October 2026

Create a data-only pack from a matching template, make one small change, then validate it. Packs can add room variants, decorative rooms, wallpapers and maps. They cannot supply runtime scripts.

First pack

  1. Open Mods → Create on the title screen. Enter a title and description and choose Store, Restaurant, Residential, Office, Decor, Wallpaper or Map.
  2. Select Create mod, then Open mods folder in the Edit step. The game copies the chosen template into the local mods directory.
  3. Edit the copied pack. Start with one supported value or artwork change and keep the generated pack ID stable. See Manifest and Room definitions for the exact format.
  4. Select the pack in Mods → Publish and choose Validate. Fix the reported errors.
  5. Enable the pack, restart the game and check the changed content in a small tower or map before relying on it in an existing save.

The Decor template includes both a recolorable painting and a pendant-light example with emission and glow. The Wallpaper template includes five styles on one sheet. See decor and lighting, Artwork and translations and Wallpaper artwork for dimensions and frame mappings. Use the template matching the inherited room behaviour.

Create a map

Mods → Create → Map supplies a playable harbor template inside the game. Edit its data using the map reference.

The visual Map Mod Kit is included in the project's source checkout at tools/map-mod-kit. Source-project users can copy that folder into their own working folder and import its project.godot in Godot 4.7. Open map.tscn and use Export Map Mod to produce the installable data pack. If the export command is absent, enable Map Mod Export under Project → Project Settings → Plugins, as the kit's README describes.

This wiki currently provides no separate kit download. Players with only the game can start with the built-in Map template; obtaining the visual kit requires access to the source-project folder. The editor project and its exported pack are separate artifacts.

Preserve save compatibility

Keep published pack and content IDs stable. Saves require the recorded save_compatibility_version, default 1, to match and all referenced content IDs to remain available. Change the compatibility version when breaking the saved-content contract; changing the release version string alone does not make a breaking update compatible. See Verify and publish.

Publish through Workshop

With Steam running, validate the local pack in Mods → Publish and use Upload to Steam Workshop. New items begin private. Open View on Workshop to review the item before choosing its visibility. Keep the Workshop sidecar file beside the pack folder to update the same item later. Use a square preview around 512 × 512 pixels and under 1 MB.

For installation steps, see Using mods. For all supported fields and restrictions, see Modding.