Profile image

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

88.4k hpgbproductions  1.3 years ago

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.

The bug where good file paths were getting rejected has been fixed, please update the software to V1.1.1

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:
  • Do not post exported contents by themselves. They should be well-integrated into your aircraft's design.
  • 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 can 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

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.

  • Log in to leave a comment
  • Profile image

    @LogoAndCars1 yes except in a CPU/GPU utilization sense

    18 days ago
  • Profile image

    is this safe

    19 days ago
  • Profile image

    @phrongus I said I wonder how many???

    28 days ago
  • Profile image
    32.9k phrongus

    @FirstFish83828
    bro is just now finding out about this💀
    its been a year 😭😭😭

    28 days ago
  • Profile image

    Wonder how many amoungus have been made

    28 days ago
  • Profile image
    11.4k IceFairy

    The exe file can't run on my computer, it just closed immediately.

    2 months ago
  • Profile image
    1,239 IndoMaja

    @hpgbproductions WAHHHH 😭😭😭

    4 months ago
  • Profile image

    @IndoMaja no

    +3 4 months ago
  • Profile image
    1,239 IndoMaja

    @hpgbproductions is there a way to do this in mobile?

    4 months ago
  • Profile image

    @Stick no, run the exe and drag the image onto the command prompt window. Then when the program is done, move the XML from the desktop to subassemblies

    4 months ago
  • Profile image
    1,210 Stick

    @hpgbproductions So i need to put a IMG in subassemblies?

    4 months ago
  • Profile image

    @Stick just follow the quick start guide and the tips under "preparing your image"

    4 months ago
  • Profile image
    1,210 Stick

    Can u simplify it? idk how to even start

    4 months ago
  • Profile image

    @HosmiAurus i don't know what causes that problem, it doesn't work right on some computers

    4 months ago
  • Profile image

    My image was suposed to be a circle, but when i put on my plane it's just a straight line. Could you help me with that?

    4 months ago
  • Profile image
    12.3k Erc90F4RU

    @hpgbproductions I just testing it on my unsaved Mig-29 Revamped

    5 months ago
  • Profile image
    12.3k Erc90F4RU

    @hpgbproductions I fixed it, just started a Tutorial

    5 months ago
  • Profile image

    @Erc90F4RU delete the image from your aircraft in the designer. Allow a long time (e.g. 1 minute) for it to load.
    If you cannot load into the designer, delete the editor file to reset it. You will lose any unsaved progress on your aircraft.

    5 months ago
  • Profile image
    12.3k Erc90F4RU

    @hpgbproductions so, i cant play in SP, cuz i put in my plane custom image, how i can fix it?

    5 months ago
  • Profile image
    12.3k Erc90F4RU

    My game got Crash in Loading it, how i can fix it?

    5 months ago
  • Profile image
    49.4k PyrrhaNikos

    Sad mobile users noises

    +3 5 months ago
  • Profile image
    866 Watsmyu

    Aw man, So your saying I can't slap a PogChamp onto my builds because of my stupid device?

    6 months ago
  • Profile image

    @hpgbproductions nothing appears

    6 months ago
  • Profile image

    @NEWCOUNTVIA it appears on the desktop

    6 months ago
  • Profile image

    @hpgbproductions when I put the image, and press enter, I do not get the xml code, I do not get anything, where do I find the xml?

    6 months ago
  • Log in to see more comments