XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon Dec 10, 2018 7:05 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen
PostPosted: Mon Oct 08, 2018 7:54 am 
Offline
beginner
User avatar

Joined: Wed Jul 22, 2015 10:08 pm
Posts: 27
Has thanked: 6 times
Have thanks: 4 times

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?

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen
PostPosted: Thu Oct 11, 2018 9:38 pm 
Offline
beginner
User avatar

Joined: Wed Mar 23, 2011 8:02 pm
Posts: 31
Has thanked: 3 times
Have thanks: 5 times
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.


Top
 Profile  
 
 Post subject: Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen
PostPosted: Sat Oct 13, 2018 10:48 pm 
Offline
beginner
User avatar

Joined: Wed Jul 22, 2015 10:08 pm
Posts: 27
Has thanked: 6 times
Have thanks: 4 times
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


Top
 Profile  
 
 Post subject: Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen
PostPosted: Tue Oct 16, 2018 1:45 pm 
Offline
beginner
User avatar

Joined: Wed Mar 23, 2011 8:02 pm
Posts: 31
Has thanked: 3 times
Have thanks: 5 times
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


Top
 Profile  
 
 Post subject: Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen
PostPosted: Sat Oct 20, 2018 7:38 am 
Offline
beginner
User avatar

Joined: Wed Jul 22, 2015 10:08 pm
Posts: 27
Has thanked: 6 times
Have thanks: 4 times
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.


Top
 Profile  
 
 Post subject: Re: [Tiled? PNG] Utawarerumono: Itsuwari no Kamen
PostPosted: Tue Oct 23, 2018 7:38 pm 
Offline
beginner
User avatar

Joined: Wed Mar 23, 2011 8:02 pm
Posts: 31
Has thanked: 3 times
Have thanks: 5 times
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.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group