The VG Resource
TMX File Issue - 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: TMX File Issue (/thread-28615.html)

Pages: 1 2 3


TMX File Issue - Skyla Doragono - 01-27-2016

Hey guys, getting ready to do a massive Persona 4 Golden dump on TSR, but I have a slight problem.

EDIT:  Well, I managed to get the .bin files extracted!  Buuut... I'm seeing the same issue, and I'm starting to wonder if this was always a thing.  Like the .TMX file had something in it that kept part of the picture hidden; like the part that would normally be covered by the text box.  Here's my current comparison images:

[Image: 4cHhKx3UGRlp5vxTuNoBOP.jpg] Converted to .jpg through Plurk.
[Image: N1dEPaQ.png] Directly off my computer.

Here is the .TMX file I'm currently working with.


RE: .BIN file extract - puggsoy - 01-28-2016

It appears that for some reason, all the colours that appear below a certain line are transparent. Like, the colours are there in the palette, but their alpha channels are 0. All the colours that appear above that line have normal alpha channels. So you can only view the whole image if you ignore the alpha channels, but then you have the obvious issue of the background being black, and no anti-aliasing. So the program's working correctly, it's the files that are wonky.

Not quite sure what to do here. I even tried replacing the background colour (in the actual palette) with white, and got this:

[Image: EGvILjn.png]

So it looks like the actual background colour is part of his bottom half. Note that I don't just mean a different position in the palette with the same value as the background; it is the very same palette position as is used for the background.

All I can really conclude from this is that the full image is only supposed to be viewed against a black background, and I'd be surprised if it's seen in any other state in the actual game. Ripping it like this is fine if necessary by the way, this was a similar case.


RE: TMX File Issue - Skyla Doragono - 01-28-2016

All right then; I guess I'll just carry on.

I could include both, I suppose; the one with the files as they're viewed normally, and ones with a black background... or I can futz around in Photoshop and try to get the full image?

I'll see what I can do. If not, they'll be up on TSR eventually. Thanks, Puggsoy!


RE: TMX File Issue - puggsoy - 01-28-2016

I think posting both is probably best, yeah. I can think of one way to rip them in the way you'd prefer, (a very hacky and weird way), but it'd require a custom program and might not even work all the time. If you really want I can give it a shot I guess.


RE: TMX File Issue - Skyla Doragono - 01-28-2016

Hunh, I can't even get Photoshop to even acknowledge that alpha channel exists. What did you use to produce that image?

And if you have time, that'd be awesome. If not... might have to just settle for what appears in the game, I think.


RE: TMX File Issue - puggsoy - 01-28-2016

I used TiledGGD (PE). Here's a screenshot with the settings on the side:

[Image: T3Chedw.png]

In this the alpha is ignored, you can enabled it in Palette - Alpha Settings. If you do you should also tick Enable for the Alpha Stretch section and put Minimum to 0 and Maximum to 128.

In the particular image from the above post, what I did was edit the actual file so that the first palette value (i.e. the background colour) was white instead of near black, then viewed it while ignoring alpha. This helped show that it's actually is included in the bottom half of the image. That's also why the edges look rough.

I'll give it a shot. Might take a little while, but with luck it should work!


RE: TMX File Issue - Skyla Doragono - 01-28-2016

Sheesh, how weird. I'd shake my fist more if it hadn't taken this long to get these files.

I'm actually off Friday so I'll have time to work on stuff. Lemme know how it goes!


RE: TMX File Issue - puggsoy - 01-28-2016

By the way, would you be able to upload some more sample files? It'd be good to have multiple files to test with, especially if some of them are also 4bpp or something.


RE: TMX File Issue - Skyla Doragono - 01-28-2016

In or out of the .bin file? Or does it not matter?


RE: TMX File Issue - puggsoy - 01-28-2016

In the .bin preferably. I'm allowing support for both .bin and .tmx but I'd like to confirm that the .bin format is what I think it is.


RE: TMX File Issue - Skyla Doragono - 01-28-2016

Gotcha. Have some more Yosukes:

http://www.mediafire.com/download/6p3v6dy7d1338yj/b2_1_6.bin
http://www.mediafire.com/download/zaqgxi9xc8t1oap/b2_1_5.bin
http://www.mediafire.com/download/apuwfmr62uo1ksb/b2_1_4.bin
http://www.mediafire.com/download/1fwyflniqh3gx67/b2_1_3.bin
http://www.mediafire.com/download/46mhw8enwxpncls/b2_1_2.bin
http://www.mediafire.com/download/2a7she5gum8mibt/b2_1_1.bin


RE: TMX File Issue - Struggleton! - 01-28-2016

(01-28-2016, 05:34 AM)Skyla Doragono Wrote: Gotcha. Have some more Yosukes:

http://www.mediafire.com/download/6p3v6dy7d1338yj/b2_1_6.bin
http://www.mediafire.com/download/zaqgxi9xc8t1oap/b2_1_5.bin
http://www.mediafire.com/download/apuwfmr62uo1ksb/b2_1_4.bin
http://www.mediafire.com/download/1fwyflniqh3gx67/b2_1_3.bin
http://www.mediafire.com/download/46mhw8enwxpncls/b2_1_2.bin
http://www.mediafire.com/download/2a7she5gum8mibt/b2_1_1.bin

For these types of bins, here's a script to extract the TMX files:
Code:
get FileCount long
for i = 0 < FileCount
  getdstring NAME 0x20
  get SIZE long
  savepos OFFSET
  log NAME OFFSET SIZE
  math OFFSET + SIZE
  goto OFFSET
next i

Just remember this only works on the new BIN files. The old Atlus bin files aren't supported just yet :/


RE: TMX File Issue - einstein95 - 01-28-2016

(01-28-2016, 06:34 AM)ThatTrueStruggle Wrote: Just remember this only works on the new BIN files. The old Atlus bin files aren't supported just yet :/
If you mean "old" like Persona 3 old, this works.
Code:
do
    getdstring NAME 0xFC
    if NAME != ""
        get SIZE long
        savepos CUROFF
        set OFFSET CUROFF
        log NAME OFFSET SIZE
        math OFFSET + SIZE
        goto OFFSET
    else
    endif
while NAME != ""



RE: TMX File Issue - puggsoy - 01-28-2016

Well after a lot of tries I finally got it working with Adachi:

[Image: LfI2b4M.png]

As you can see, the bottom half of him doesn't have anti-aliasing. Since the alpha channels for those pixels are 0 in reality, the best I can come up for as "fake" alpha is 100%.

Unfortunately, none of Yosuke's ones work, they seem to have borders or other weird issues that prevent my method from working:

[Image: 0sYz06l.png]

Nothing I can really do about that unfortunately :\ (The closed eyes also have some issues but they're not a huge concern.)

I think your best bet is just what we figured before, just submitting the normal ones and the ones with black backgrounds. However if it makes it any easier, I can make my program extract both versions at once for you, from multiple .bins/.tmxs at once.


RE: TMX File Issue - Dazz - 01-28-2016

This is just really weird...