Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Toy Soldiers .tgab .pngb

Featured Replies

  • Author
  • Localization

puggsoy, posted Wed Feb 25, 2015 8:58 am (3456)


I'll try make something for this soon when I have time.
  • Author
  • Localization

makc_ar, posted Wed Feb 25, 2015 1:05 pm (3462)


puggsoy
Thank you for your time and attention to help me.
  • Author
  • Localization

puggsoy, posted Sun Mar 08, 2015 7:31 am (3653)


All the .pngb files ending in "_i" have a strange format which I can't figure out. Luckily there are only 4:

bigarrow_i.pngb
groundtarget_i.pngb
warningcircle_i.pngb
warningexclamation_i.pngb

All the other files have a fairly straightforward format which I should be able to convert to and from regular PNG.
  • Author
  • Localization

puggsoy, posted Mon Mar 09, 2015 10:30 am (3677)


toysolconv
Code:
Usage: toysolconv inFile outDir [-t]
    inFile: The file to convert. Can alternatively be a folder containing the files to convert
    outDir: The folder to save the converted files to
    -t: Converts to a .tgab, instead of .pngb. Only applies when the input file(s) are .png, otherwise it's ignored

This works with almost every file, the only ones that don't work (in the sample you gave) are the ones mentioned in the previous post, as well as gameoverlay_g.tgab. If you try to convert these it will just say "Unsupported format" and skip them. I might be able to figure these out later, but they seem to be the minority so hopefully it's no big deal.

The program will automatically detect the kind of files; if it's a .pngb or .tgab it will convert to .png, and if it's a .png it will convert to .pngb. If you want to convert to .tgab instead of .pngb then set the -t flag as the last parameter (it's the same format though, just a different extension).
  • Author
  • Localization

puggsoy, posted Fri Mar 13, 2015 9:37 am (3815)


To convert from .png simply enter it as the input file, like so:
Code:
toysolconv myImg.png outFolder

This will convert it to a .pngb. If you want to convert to .tgab, add "-t" to the end:
Code:
toysolconv myImg.png outFolder -t

By the way, remember you can specify a folder and it will convert all the compatible files in there:
Code:
toysolconv locml outFolder

So you don't need a batch script.

As for those unsupported files, they are in a different format, although it's not the same unsupported format as found in the first samples you sent. Unfortunately they are just as confusing (if not more so), I'm unsure how they work. Even the data for the dimensions seems to be stored differently.

One big issue is for both this and the other unsupported format, the number of bytes in the pixel data divided by width * height (which is number of pixels) is a decimal, while the working format gives 4 (it's raw 32-bit ARGB). This means that the other formats probably have some sort of compression, maybe RLE or the like (since it doesn't look like any kind of zlib/lz/zip/etc compression).

I don't have a lot of time for it, but I might try and take a better look when I do. Are there are a lot of unsupported files?
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.