Salem Map Tile Privacy Tool

Forum for game modifications and custom clients.

Salem Map Tile Privacy Tool

Postby pistolshrimp » Tue Dec 31, 2019 2:18 am

I've mentioned it on Discord, but I've made a python tool which takes saved map tiles and removes player's bases. This is a step towards my goal of creating a public Salem map that also protects player privacy.

How it works:
The script imports each tile and looks for pavement. Currently it looks for stone, clay, brick, and dirt based on the pixel color. It then masks those pixels out and blurs the edges to make the edges a little more nature. Then the script looks to see what the most dominate color is on that pixel. It can then use that color to get what biome that tile is and uses a series the corresponding scrubber tile to cover up the player modified areas. It then saves the new tile in another folder.

Limitations
It's not perfect by any means. While it can detect black lines, often left by pavement only 1 tile wide, it messes up the environment too much to remove them, so I didn't include this. It also erases quarries, I might be able to remove this, but ultimately decided to leave this in and a couple other imaging artifacts so that you can't look at a tile and 100% know if it's been modified because of imprecision in the script or because it's hiding a base.

Image

Examples:
Before
Image
After
Image

Before
Image
After
Image


Map of Area Around Providence
Image
User avatar
pistolshrimp
 
Posts: 1826
Joined: Sun Mar 31, 2013 6:38 pm

Re: Salem Map Tile Privacy Tool

Postby Ronch » Wed Jan 01, 2020 1:15 am

NIce, thanks for all of your time and energy spent on this project, pistolshrimp.
Reviresco wrote:I log into this game and have fun.
User avatar
Ronch
 
Posts: 628
Joined: Fri Aug 26, 2016 2:46 am


Return to Artifice & Arcana

Who is online

Users browsing this forum: No registered users and 2 guests