Profile image

So Jundroo accidentally added 1 part custom images to the game...

113k hpgbproductions  3.5 years ago

*Notice: There are other image label generators nowadays. They may be easier to use and/or have better generation options for simple images. I encourage you to seek them out. Some generators (non-exhaustive list):

By abusing the "color" tags, I made a program that converts images to a Label. Tested with Beta 1.11.103.0, generated aircraft run on any platform.

Quick Guide

Running the program (release):
1. Go to the Releases page, download the latest version
2. Install .NET Core 3.1 Runtime (if you have updated Visual Studio 2019 or 2022, you should have a supported runtime)
3. Unzip the release version into anywhere in your Users folder, and run the EXE
4. If it does not work, you will need Visual Studio 2019 to build the software yourself
5. Drag images onto the command prompt window and the file path will be automatically pasted. Hit Enter to start creating your label.
6. Subassembly XML is placed on the desktop. Move into the SP subassembly folder to use it.

Supported Image Types:

BMP, GIF, EXIF, JPG, PNG, and TIFF

Preparing your image:
  • Get an image editor like GIMP
  • Crop out empty areas and scale down your image. If you don't know how small to make it, try 10,000 pixels across all images you want to add.
  • Remember, 1 pixel in the file = 1 square on the label
  • Aim for a solid-color shaded style to reduce the number of color changes.
  • Run the posterizing or dithering filters. If dithering, choose the method that generates a solid color, not patterns. In GIMP, that is the None dithering mode.
Usage information:
  • Avoid spamming the website with label posts, especially if you did not make the source images yourself.
  • Credit is not required.

GitHub repository ~ current: V1.1
- external script using .NET Core 3.1
- can only run on Windows due to the use of System.Drawing.Common.dll
- note that if you have SP on Mac or old version of Android, you may be able to transfer files from PC to your game



suisei.png (subassembly 66KB)


usaf.png (subassembly 42KB, 32KB with V1.1)

How it works:
- Use monospace and line height tags with the filled square character
- Color (with transparency) is set for each pixel, unless the previous pixel is the same color
- Writes a subassembly XML file with only the label part. This file is placed on the desktop with the name [image-name].xml

1.0 (211008) >

  • Initial release

1.1 (211009) >

  • [Optimization] Transparent pixels are now rendered as horizontal space (except for the rightmost pixel in an image, due to text alignment behavior)
  • [Source code] Character size is no longer "magic" and gets its own constant

(211018) >

  • [Source code] Some directories were removed, to hopefully prevent users installing into a Users folder they don't have

(211027) >

  • [Source code] Test for release as a portable EXE, which won't require Visual Studio to run. You still need the .NET Runtime.

1.1.1 (220125) >

  • [Fix] Fixed FileNotFoundException caused when quotes surround the input file path

1.1.2 (230129) >

  • [Fix] Fixed images generated as a single row when the device is using a decimal-comma locale

FAQ:

Can this be run on Mac/ Android/ web browsers?
No. However, you may port it to such platforms if you wish.
If you have SP on Mac or an old version of Android, you can transfer the sub-assembly XML from your PC to your game.