dot TOIF (that other image format)

I was having some trouble with image loading on PS3 so I wrote a simple program using SDL to convert PNG files into something easier to work with.

To use it just place the file you want to convert into the same folder as PNGtoTOIF.exe, rename the file to image.png, then run PNGtoTOIF.exe and it should generate a image.toif file based on it.

The first line in the resulting file is the image width, second is image height, next is the red then green then blue then alpha values for each pixel. Each variable is stored as human readable text. The files are incredibly bloated (it makes uncompressed BMPs seem tiny) but its a functional solution and was easy to make.

Its worth noting that Cubicle Shooter v0.3 (which is what this was primarily made for) is hard coded to only load a 64×64 image to use as its texture for the cubicle dwelling NPCs. So you will probably run into problems if you try to just replace that texture with a differently sized one. I’ve already fixed up the toif texture loading function though and it will be part of the games next update.

Download the Windows version
Alternate links

Download the Source Code
Alternate links

Advertisements

4 Responses to dot TOIF (that other image format)

  1. BRAINBOX says:

    Hey, you made nice games. Do you need someone with 3d modeling skills. Im a coder and 3d modeller. cu

    • thatotherdev says:

      I prefer to work on my own when it comes to coding and I don’t think I’m going to need any assistance for Cubicle Shooter. If you want to contribute art assets though then you can check out the demo for The World Drowns. Just pick something in it that needs to be done and make it. Or make some stuff for a completely new game. If I like what you make then I’ll use it.

  2. […] If your looking to mod the game or learn from it and are wondering what the font.toif file is, its image/texture used for the text displayed at the top left corner of the screen (because frack the tiny and pixelated debug font). You can find out why it exists and how to generate your own here. […]

  3. […] the toif files are, they are textures. You can find out why it exists and how to generate your own here. Cubicle Shooter v0.4 and Dont Get Crushed v0.1 I had forgotten to change the address that Dont […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: