The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Textures, recreate headers, conversions, algorithms and parsing of image files
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by Acewell »

here is a Noesis python script to open your *.dds.phyre and *.png.phyre samples :D
*script updated Dec 29, 2017*
tex_TheLegendofHeroesTrailsofColdSteel_phyre.zip

supports dxt1, dxt3, dxt5, rgba32, argb32 and L8
Last edited by Acewell on Fri Dec 29, 2017 3:45 pm, edited 8 times in total.
TheUkrainianBard
Posts: 121
Joined: Sun May 01, 2016 10:06 pm

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by TheUkrainianBard »

Better late than never.
Slightly enhanced for mainly export (vertical flip) + DXT3 & ARGB8888 reading, although no LA88

UPD: removed the file because of Acewell's update
Last edited by TheUkrainianBard on Fri Dec 29, 2017 3:35 am, edited 1 time in total.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by Acewell »

TheUkrainianBard wrote: (vertical flip) + DXT3 & ARGB8888 reading, although no LA88

great! script updated with your additions and added support for "LA88",
let me know if it works for you or not, the only samples i had are in the first post. :)
TheUkrainianBard
Posts: 121
Joined: Sun May 01, 2016 10:06 pm

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by TheUkrainianBard »

Thank you for your bother, Acewell.
Turns out there is no LA88 but L8. I swear I've seen LA88 somewhere...

The file attached is what I believe is an exhaustive sample list. There is one file that doesn't open (apart from L8) but is ought to be RGBA8888. It's in separate folder.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by Acewell »

okay script updated again, it works with all your samples now. :D
the problem with that rgba8888 image was the case sensitvity in type check.
DDS.phyre and dds.phyre are considered 2 different things, so i just lower cased everything stored in the variable. :)
TheUkrainianBard
Posts: 121
Joined: Sun May 01, 2016 10:06 pm

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by TheUkrainianBard »

Thanks and Happy New Year's!
Until Cold Steel 2, which is set for "early 2018" release.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by makc_ar »

Width and height to .itf fonts?
TheUkrainianBard
Posts: 121
Joined: Sun May 01, 2016 10:06 pm

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by TheUkrainianBard »

Works with Trails of Cold Steel II _IF_ you change line 39 from

Code: Select all

    bs.seek((myIndex + tmp) - 0x52, NOESEEK_ABS)
to

Code: Select all

    bs.seek((myIndex + tmp) - 0x56, NOESEEK_ABS)
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by Acewell »

see thats the problem with this format, there is really no versioning aside from platform that i see to distinguish phyre from one game to the next, but there is subtle changes in how some data is stored. the only sure way to make a catch-all phyre script is to read the phyre structure properly and i'm just not interested in reproducing official specs. i just recently made a phyre script for another game and the width and height was stored just before "PTexture2D" instead of 0x52 and 0x56 back and the next game might change again, so it becomes endless tinkering. to simplify i think there should be a different script for each game because these are really one-time use scripts anyway and it only takes a second to move a conflicting script out of the python folder, i mean once you convert all the textures from that game you won't need that script again. i'd rather just modify the line and rename the script instead of adding new if statements, checks, conditions etc every other week when the next game is extracted. :)

this should probably go in a new thread but here is the simple modification :D
tex_TheLegendofHeroesTrailsofColdSteel2_phyre.zip
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by makc_ar »

TheUkrainianBard
Posts: 121
Joined: Sun May 01, 2016 10:06 pm

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by TheUkrainianBard »

This should work on 100% of ToCS II PC textures.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by Acewell »

makc_ar wrote:The Legend of Heroes Trails of Cold Steel II .phyre

posted a script for that game in my previous post above yours back in February :)
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts

Post by makc_ar »

Image

Thanks a lot my friends for helping.