The VG Resource
Issue with .JTEX images - Printable Version

+- The VG Resource (https://www.vg-resource.com)
+-- Forum: The Resources (https://www.vg-resource.com/forum-109.html)
+--- Forum: The Spriters Resource (https://www.vg-resource.com/forum-110.html)
+---- Forum: Ripping Help (https://www.vg-resource.com/forum-114.html)
+---- Thread: Issue with .JTEX images (/thread-32826.html)



Issue with .JTEX images - HelpTheWretched - 05-16-2018

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


RE: Issue with .JTEX images - Raccoon Sam - 05-17-2018

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.


RE: Issue with .JTEX images - HelpTheWretched - 05-19-2018

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. :/


RE: Issue with .JTEX images - Raccoon Sam - 05-21-2018

Can you post the original files here?


RE: Issue with .JTEX images - HelpTheWretched - 05-21-2018

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/


RE: Issue with .JTEX images - Raccoon Sam - 05-22-2018

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