Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This script allow artists to speedup slicing multitiles process.
It detects tile name, size of resulting tile, and various source files:
Just drag and drop source folder over script shortcut.
Content of the change
slice_multitile.py
requires NumPy module. This module can be used with Python >= 3.7 and < 3.11 So I changeupdtset.cmd
so it will install Python 3.10 instead of 3.12 (latest at this moment).updtset.cmd
will also installNumPy
module at first run..gitignore
Testing
Create a shortcut to the script on your desktop (for example)
Put the source files into the folder and drop it in repository
Drag and drop 'source' folder over the shortcut
Script informs you about files taken into account as well as resulting names and sprite numbers. Script will ignore existing json files, so they can be changed without fear.
After displaying results script will run 'updtset.cmd' so just press 'Enter' and wait a bit
Now you can update tileset in game and see how it works.
Additional information
You may notice shortcut to 'updtset.cmd' on my desktop - it is here just for simple sprites that do not need to slice something. Or if I change json files without touching images.