The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
-
- Posts: 1193
- Joined: Sun Aug 17, 2014 7:27 pm
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
here is a Noesis python script to open your *.dds.phyre and *.png.phyre samples
*script updated Dec 29, 2017*
supports dxt1, dxt3, dxt5, rgba32, argb32 and L8
*script updated Dec 29, 2017*
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.
-
- Posts: 121
- Joined: Sun May 01, 2016 10:06 pm
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
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
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.
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
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.
-
- Posts: 121
- Joined: Sun May 01, 2016 10:06 pm
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
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.
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.
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
okay script updated again, it works with all your samples now.
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.
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.
-
- Posts: 121
- Joined: Sun May 01, 2016 10:06 pm
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
Thanks and Happy New Year's!
Until Cold Steel 2, which is set for "early 2018" release.
Until Cold Steel 2, which is set for "early 2018" release.
-
- Posts: 1193
- Joined: Sun Aug 17, 2014 7:27 pm
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
Width and height to .itf fonts?
-
- Posts: 121
- Joined: Sun May 01, 2016 10:06 pm
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
Works with Trails of Cold Steel II _IF_ you change line 39 fromto
Code: Select all
bs.seek((myIndex + tmp) - 0x52, NOESEEK_ABS)
Code: Select all
bs.seek((myIndex + tmp) - 0x56, NOESEEK_ABS)
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
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
this should probably go in a new thread but here is the simple modification
-
- Posts: 1193
- Joined: Sun Aug 17, 2014 7:27 pm
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
The Legend of Heroes Trails of Cold Steel II .phyre
Game: http://store.steampowered.com/app/74849 ... d_Steel_II
Example: https://www24.zippyshare.com/v/Kbr5ndjl/file.html
Game: http://store.steampowered.com/app/74849 ... d_Steel_II
Example: https://www24.zippyshare.com/v/Kbr5ndjl/file.html
-
- Posts: 121
- Joined: Sun May 01, 2016 10:06 pm
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
This should work on 100% of ToCS II PC textures.
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
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
-
- Posts: 1193
- Joined: Sun Aug 17, 2014 7:27 pm
Re: The Legend of Heroes: Trails of Cold Steel .phyre textures and .itf fonts
Thanks a lot my friends for helping.