Giter Site home page Giter Site logo

townscapercolorchange's Introduction

Townscaper Color Changer

Description

This is a very simple Python script that enables you to change the colors of the buldings in Townscaper

Before

Before

After

Before

Usage

Simply call the python script passing the save file you want to change and color mapping

colorconvert.py save.scape mappings.txt

The save files are located in the following folder;

C:\Users\[your username]\AppData\LocalLow\Oskar Stalberg\Townscaper\Saves

After processing, a new file with _colored appended to its name will be created in the same directory as the original. If it's already in the Save directory, you can simply open it in game (see the remarks below regarding the save thumbnail)

Mapping

The script uses the mapping.txt file to know which color should replace which. It's a simple list where each line represents a pattern in the format fromColor:toColor. Colors go from 0 to 14 in the same order as they appear in game, from top to bottom (ie. Red = 0, White = 14).

Remarks

The script doesn't change the SaveString neither the encoded JPG inside the save file, used as the thumbnail when loading a game. Those will be correctly overriten by the game itself on your next save.

townscapercolorchange's People

Contributors

fergo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.