Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!

Forum rules: Click here

[Tiled? PNG] Utawarerumono: Itsuwari no Kamen

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
User avatar
marcussacana
beginner
Posts: 29
Joined: Wed Jul 22, 2015 10:08 pm
Has thanked: 9 times
Been thanked: 7 times

[Tiled? PNG] Utawarerumono: Itsuwari no Kamen

Post by marcussacana » Mon Oct 08, 2018 7:54 am

Well, I'm trying modify the .tex files from the "Utawarerumono: Itsuwari no Kamen" of ps3
At first look seens a .png with a header, and some files works just removing this header.
But a problem, some files looks like a 'tiled' texture...

An texture non-tiled: https://up.vidyagam.es/ede821da-d258-4e ... -n.tex.png
And a texture tiled: https://up.vidyagam.es/30a8c39a-7d44-42 ... al.tex.png

In both files I just removed the .tex header,
If I can say something I looks like the value at 0xD, if equals to 0x3 then is tiled, if equals to 0x1 isn't tiled (not sure)


Sample Files:
https://up.vidyagam.es/d05fedc3-3f64-43 ... exture.rar

Any hints?

User avatar
mugi
beginner
Posts: 32
Joined: Wed Mar 23, 2011 8:02 pm
Has thanked: 3 times
Been thanked: 9 times

Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen

Post by mugi » Thu Oct 11, 2018 9:38 pm

they are swizzled with morton (aka. z-order)

you're also right about the flag, if you change the flag in the header to disable the swizzle, the graphics work fine without it, so if you can get your hands on the clean image, you can just reassemble it and change the header to not use z-order, then insert it back clean.

i did a full reverse-engineering of all the compression, filecontainer, text and graphic formats of the game including the sprite coordinates of the multi-image spritesheets, but my data applies to the ps3 versions of the game.
if my memory serves me, vita version had slight differences. (the endianess, for starters, and iirc the graphics stuff had different values for the flags, 0x07 i believe was swizzle toggle.)

oh just for the shits of it, the executable of the game also contains a LZ77 compressed text portion holding the DLC encryption keys in it.

User avatar
marcussacana
beginner
Posts: 29
Joined: Wed Jul 22, 2015 10:08 pm
Has thanked: 9 times
Been thanked: 7 times

Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen

Post by marcussacana » Sat Oct 13, 2018 10:48 pm

Thanks for the info, I'm newbie with textures formats, but i will try do something.
(I'm working with the ps3 ver too)

It's this, I'm rigth?: https://en.wikipedia.org/wiki/Z-order_curve

User avatar
mugi
beginner
Posts: 32
Joined: Wed Mar 23, 2011 8:02 pm
Has thanked: 3 times
Been thanked: 9 times

Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen

Post by mugi » Tue Oct 16, 2018 1:45 pm

yeah. Though just so that you know, if my memory serves me, only like... 4 images in the entire game are using this swizzle. (titlescreen image, some menu stuff i believe.) i just fed them to my deswizzler and then disabled the whole junk from the header. They learned their lesson since utawarerumono 3 doesnt use it anymore xD (they blessed me with all sort of other shit to reverse instead lol.) i have a few pics on my site of the title screne actually working after i got rid of that stupid extra layer of bother on it; https://blacklabel-translations.com/arc ... i-no-kamen

User avatar
marcussacana
beginner
Posts: 29
Joined: Wed Jul 22, 2015 10:08 pm
Has thanked: 9 times
Been thanked: 7 times

Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen

Post by marcussacana » Sat Oct 20, 2018 7:38 am

Are you trying translate the ps3 version?
If yes, well, take a look in the fuwanovel, I published a 'automatic' port of the psv text to the ps3 script...
Well... needs a revision because this 'automatic' port isn't perfect but if you want do a proper patch this can save your time.

User avatar
mugi
beginner
Posts: 32
Joined: Wed Mar 23, 2011 8:02 pm
Has thanked: 3 times
Been thanked: 9 times

Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen

Post by mugi » Tue Oct 23, 2018 7:38 pm

I planned to, but it's currently not something im actively working on. I got busy with other things.
That said, i have a full mapping of the script format so editing it in any way i wish is not really an issue.

User avatar
marcussacana
beginner
Posts: 29
Joined: Wed Jul 22, 2015 10:08 pm
Has thanked: 9 times
Been thanked: 7 times

Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen

Post by marcussacana » Thu Mar 14, 2019 3:18 am

Thank you, I added support in my tool, it's late but well,
If anyone with the same problem: https://github.com/marcussacana/AquaPlusEditor

User avatar
mugi
beginner
Posts: 32
Joined: Wed Mar 23, 2011 8:02 pm
Has thanked: 3 times
Been thanked: 9 times

Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen

Post by mugi » Mon May 06, 2019 3:51 pm

im a bit late too i guess but i decided to just release the tools we coded for this game while poking around with it.
you can download the whole thing from my site; https://bbs.blacklabel-translations.com ... php?tid=73

maybe they'll serve some use for someone.

User avatar
marcussacana
beginner
Posts: 29
Joined: Wed Jul 22, 2015 10:08 pm
Has thanked: 9 times
Been thanked: 7 times

Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen

Post by marcussacana » Sat Sep 14, 2019 7:37 pm

Yeah, good work man, I'm glad in know you are trying help the world-wide translation community.

Just notice acutally we can't download because we can't register in your forum after click in 'I agree'

Post Reply