Users browsing this thread: 1 Guest(s)
Issue with .JTEX images
#1
Hello, so I did some searching and found two threads about .JTEX image files, and in both of them, a kind person named Ploaj provided tools to view and convert the images.

I've used those tools on a couple other games, and had an issue with some files. I'll show an example from Pokémon Picross.

Some images look just fine, like this sprite sheet:
[Image: Upper_Info_Common.png]

While others are garbled, like this background image:
[Image: TitleL_Bg.png]

And when garbled images have transparency, the colours get messed up, like the edges of this font:
[Image: ShopFont.png]

I've looked through a whole bunch of them, and it seems like the images that get messed up are the ones with a height and/or width not equal to a power of 2.

Unfortunately, I'm way too newb to understand the JTEX file format, let alone write any tools for converting them. But if someone with more knowledge could take a look at the issue, I'd appreciate that! Will post some sample files if needed. Wink
Reply
Thanked by:
#2
The first problem is just incorrect width on 1D mode: set it to 64 and you're good.
[Image: HMzwdwg.png]

The second problem looks like an amalgamation of two problems: an off-by-one error and and incorrect width.
Your width must be set to 64 on 1D mode...
[Image: DfGI0Xp.png]
...but the edges are likely to be garbled because however you're reading your palette/image data, you're beginning to read data from N while you should be reading from N+1 or N-1 (or something)

I don't know about Ploaj's provided tools but if they can fine tune offsets, try either that or some other codec.
[Image: XezHFxV.gif]
Once there was a way to get back homeward
Reply
Thanked by:
#3
Thanks for checking... I had not used Tile Molester before.

But for the background image: even with the width set to account for the repeated pixels, the entire image is missing a fair portion from the bottom. It looks like for every 320 pixels, it repeats the last pixel 192 times. So those other tools must be expecting a width of 512 (2^9) but converting it onto a 320x240 frame. It's probably a simple fix, coding-wise, but not one that I'm able to make. :/
Reply
Thanked by:
#4
Can you post the original files here?
[Image: XezHFxV.gif]
Once there was a way to get back homeward
Reply
Thanked by:
#5
Certainly, here's a RAR file. It has the 3 images above plus 3 more for testing's sake - 1 working, 1 garbled, 1 garbled w/ transparency.

[...]
Erp, can't attach RAR files. I've uploaded it here: http://noproblo.dayjo.org/JTEX/
Reply
Thanked by:
#6
welp, Ploaj's tool doesn't work on my machine so I'm outta luck.
I guess you could try contacting Ploaj themself and ask for a file format spec
[Image: XezHFxV.gif]
Once there was a way to get back homeward
Reply
Thanked by:


Forum Jump: