-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] Bumps Hypnagogic to v3.1.0 (#2253)
* Bumps Hypnagogic to v3.1.0 (#82953) ## About The Pull Request Bumps the cutter to my latest [version](https://github.com/spacestation13/hypnagogic/releases/tag/v3.1.0) See there for the full CL but in short: ### Fixes/Polish Error handling actually works now (it prints instead of crashing the program) Pretty colors in CLI when running it ![image](https://github.com/tgstation/tgstation/assets/58055496/3bb1ce3c-055e-4b3d-ba94-dad262517a94) Release files are more portable (Windows version requires less cruft bs dlls, and the linux version targets musl instead of glibc, making it far less platform dependent) ### Features The cutter supports a new mode called Reconstruction, which takes a target dmi and does a good faith effort to convert it back to input png and toml files. This only works for default bitmasking, and it doesn't ALWAYS work, but it's really powerful. It's what I used to make my initial cutter pr here. See [here](https://github.com/spacestation13/hypnagogic/blob/v3.1.0/examples/bitmask-slice-restore.toml) for more detail. * Bumps Hypnagogic to v3.1.0 --------- Co-authored-by: LemonInTheDark <[email protected]>
- Loading branch information
1 parent
146fae4
commit 5131ea9
Showing
3 changed files
with
43 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Bitmask restoration! | ||
# Allows for easy mass extraction of template pngs and their configs from a dmi | ||
# Use this if you have a dmi and you want a cutter config you can edit easily | ||
# Of note, while it tries its best it is nowhere near perfect. We don't parity check against the existing dmi | ||
# And we also do not account for overrided states very well | ||
# Always double check (and be aware that dmi is weird so you may get diffs of 1 rgb value when doin this) | ||
mode = "BitmaskSliceReconstruct" | ||
# List of icon states to pull out (by default) | ||
extract = ["0", "3", "12", "15", "255"] | ||
|
||
# Map of name -> state that will be encoded into a positions list later | ||
# Lets you extract particular states and use them to fill in for states later | ||
# Useful to carry over odd snowflake states | ||
#[bespoke] | ||
|
||
# Map of key -> value to set on the created config | ||
# Lets you set arbitrary values on the created config, mostly useful for batch processing | ||
# IMPORTANT NOTE: We sort of assume you'll setup a default template here (since this is for batch processing), | ||
# so if things work odd that's likely why | ||
#[set] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters