OpenRCT2-Double-Surface-Remover
OpenRCT2 plugin that removes duplicate surface elements from map tiles.
Double Surface Remover plugin for OpenRCT2
Double Surface Remover is an OpenRCT2 plug-in that scans the whole map for tiles with more than one surface element and removes the excess surface elements.
Duplicate surface elements can appear after copy and paste actions in the tile inspector or after other plug-ins edit map tiles directly.
Features
- Adds a
Remove double surfacesitem to the map menu. - Scans every tile on the current map.
- Provides a single-tile tool that highlights a tile and removes duplicate surfaces when clicked.
- Lets you choose whether to keep the bottom or top surface tile.
- Warns you to save before making changes.
- Reports how many tiles were fixed and how many surface elements were removed.
Installation
- Download
double-surface-remover.js. - Put the downloaded file into your OpenRCT2
pluginfolder.- The easiest way to find this folder is to launch OpenRCT2, click and hold the red toolbox on the main menu, then choose "Open custom content folder".
- On Windows, the folder is usually
C:/Users/<YOUR NAME>/Documents/OpenRCT2/plugin.
- Open a park or scenario editor map.
- Open the map menu and choose
Remove double surfaces.
If you already had the plugin installed, you can overwrite the old double-surface-remover.js file.
Usage
- Save your park first.
- Open
Remove double surfacesfrom the map menu. - Choose
Keep bottom surface tileorKeep top surface tile. - Click
Clear double surfaces on entire mapto scan and fix the whole map.
To fix one tile at a time:
- Save your park first.
- Open
Remove double surfacesfrom the map menu. - Choose
Keep bottom surface tileorKeep top surface tile. - Click
Use tool on single tile. - Move the cursor over a tile to highlight it, then click to remove duplicate surface elements from that tile.
- Click
Cancel toolwhen you are done.
The bottom surface is the surface element with the lowest baseZ on a tile. The top surface is the surface element with the highest baseZ on a tile. If duplicate surfaces have the same height, the plug-in keeps the first matching surface element it finds.
For developers
This repository ships the plugin as a single JavaScript file:
double-surface-remover.js: the OpenRCT2 plugin scriptopenrct2.d.ts: OpenRCT2 scripting API declarations used as a local reference while developing
To test a local change, copy double-surface-remover.js into your OpenRCT2 plugin folder and restart OpenRCT2.
AI assistance disclosure
This plugin was created with assistance from OpenAI Codex. Codex helped generate, revise, and document the plugin, while the repository remains available for review, modification, and improvement by the OpenRCT2 community.
License
MIT