Files
Bubberstation/tools/MapTileAggregator
san7890 a42765a3a2 [MDB Ignore] Fixes Tiles On All Maps (mea culpa edition) (#74250)
## About The Pull Request


![image](https://user-images.githubusercontent.com/34697715/227738092-33b699f1-f388-491e-8eea-a71c9df98ec1.png)

I actually noticed this in my testing and fixed it, but the changes
somehow disappeared and I continued to assume that they were fixed
without checking. fuck. It's all good now.

## Why It's Good For The Game


![image](https://user-images.githubusercontent.com/34697715/227738109-fd6afe23-85b5-48c0-9db2-b54275180cbb.png)

yeah this was fucked everywhere. all good now though promise.
## Changelog
🆑
fix: Tile decals are no longer fucked on all stations.
/🆑
The diff might seem a bit weird but I reverted all of the maps to a
state before the script was ran, and then re-ran the fixed script. Makes
sense to me.
2023-03-25 20:00:07 +00:00
..

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:

"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:

"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

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.