Files
d6c7817b4b [MIRROR] [MDB Ignore] Manifest Destiny - The Final Tile Flattening [MDB IGNORE] (#20058)
[MDB Ignore] Manifest Destiny - The Final Tile Flattening

Co-authored-by: san7890 <the@san7890.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2023-03-27 02:34:53 +01:00

41 lines
1.4 KiB
Markdown

## What does this tool do?
This tool aggregates or "flattens" out turf_decal tiles on a map. For example, let's assume you have this map key:
```txt
"qp" = (
/obj/effect/decal/cleanable/dirt,
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden,
/obj/effect/turf_decal/tile/blue,
/obj/effect/turf_decal/tile/blue{
dir = 4
},
/turf/open/floor/iron{
initial_gas_mix = "TEMP=2.7"
},
/area/shuttle/caravan/freighter1)
```
This tool will just turn those two separate `/obj/effect/turf_decal/tile/blue` into one `/obj/effect/turf_decal/tile/blue/half/contrasted` with the correct dir, like so:
```txt
"qp" = (
/obj/effect/decal/cleanable/dirt,
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden,
/obj/effect/turf_decal/tile/blue/half/contrasted{
dir = 4
},
/turf/open/floor/iron{
initial_gas_mix = "TEMP=2.7"
},
/area/shuttle/caravan/freighter1)
```
Simple! This goes for any possible permuation of turf decals in a map key, respecting any possible color and combination thereof.
##### [click me if you don't understand what you just saw](https://hackmd.io/@tgstation/ry4-gbKH5#Map-Keys-no-holds-barred)
## How do I use this tool?
Just double-click the `MapTileAggregator.bat` file in this directory and it'll automatically run the Python tool on all of the `.dmm` files in the `/_maps` directory. It'll also automatically run the `MapMerge` tool once it's done to keep everything nice and tidy.