Author Topic: Merge 2x2 Spritesheet Tool  (Read 6595 times)

Offline Buscher

  • Colonel
  • ****
  • Posts: 170
    • View Profile
Merge 2x2 Spritesheet Tool
« on: March 24, 2021, 10:20:51 pm »
This is the opposite to the HWP Build helper. It's compatible with the split spritesheets from the HWP Build helper. In fact it was tested with them.
I wanted to merge split spritesheets for 2x2 units back into complete ones, so it's easier to edit them.
This works for all drawingRoutines relevant to 2x2 units (2, 3, 5, 11, 12, 20 and 21)
For drawingRoutine 2 and 11 this tool expects 5 turrets each.
For drawingRoutine 2 and 3 there are a few artefacts for the propulsion. I haven't found out why yet. But they should be easily removed by hand.

Usage:
At this stage it is a command line tool (no fancy GUI yet)
You will need to path to the location of this python file and type
Code: [Select]
python merge_2x2_spritesheet.py file_to_be_merged.png drawingRoutineNumber

For example:
Code: [Select]
python merge_2x2_spritesheet.py split_hwptemplate_21.png 21

Of course it would be great if this Python script could be implemented on Falko's PythonAnywhere page

If you find any issues or got any other feedback, feel free to post.

Offline Buscher

  • Colonel
  • ****
  • Posts: 170
    • View Profile
Re: Merge 2x2 Spritesheet Tool
« Reply #1 on: April 03, 2021, 05:06:01 pm »
Updated the 2x2 merger to support drawingRoutine 22

Changelog:
Spoiler:
###
1.0
###

Prototype Initial Release
Only drawingRoutine 5 and 20 were available

###
1.1
###

Added all relevant drawingRoutines to be compatible with the hwpbuilder
(https://falkooxc2.pythonanywhere.com/hwpbuild)

###
1.2
###

Added drawingRoutine 22

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11738
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Merge 2x2 Spritesheet Tool
« Reply #2 on: April 09, 2021, 04:18:34 pm »
Fantastic initiative, man. I've been waiting for this tool for years. :)

Thank you!

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Merge 2x2 Spritesheet Tool
« Reply #3 on: July 28, 2021, 02:29:09 am »
Your Merge 2x2 Spritesheet Tool has proven to be invaluable.

Thank you for creating it Buscher.

Offline Buscher

  • Colonel
  • ****
  • Posts: 170
    • View Profile
Re: Merge 2x2 Spritesheet Tool
« Reply #4 on: August 13, 2021, 02:25:10 pm »
Thank you both for the kind words.
I also end up using this tool quite frequently. It's really a great time saver.