ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Dec 10, 2019 8:49 am

All times are UTC




Post new topic  Reply to topic  [ 84 posts ]  Go to page Previous 1 2 3 4 5
Author Message
PostPosted: Mon Oct 21, 2019 8:27 pm 

Joined: Sun May 01, 2016 10:06 pm
Posts: 114
Those are font files. While they have a GXT image, they're different from PTexture2D.
You could use something like this with QuickBMS to get that GXT image.
Code:
findloc OFFSET string "GXT\x00" 0 ""
if OFFSET == ""
    cleanexit
else
    get SIZE asize
    math SIZE -= OFFSET
    get NAME basename
    string NAME + ".gxt"
    log NAME OFFSET SIZE
endif


Top
   
PostPosted: Mon Oct 21, 2019 8:47 pm 

Joined: Sat Dec 08, 2018 7:53 pm
Posts: 20
TheUkrainianBard wrote:
Those are font files. While they have a GXT image, they're different from PTexture2D.
You could use something like this with QuickBMS to get that GXT image.
Code:
findloc OFFSET string "GXT\x00" 0 ""
if OFFSET == ""
    cleanexit
else
    get SIZE asize
    math SIZE -= OFFSET
    get NAME basename
    string NAME + ".gxt"
    log NAME OFFSET SIZE
endif

Thanks! This .phyre not only fonts, but also all textures... This script helps me a lot! By the way, can extracted .gxt be imported back?
Could you also look on images from PS4 version? They are not .gxt but Noesis can't open them to.
Attachment:
phyre2.rar [4.63 MiB]
Downloaded 37 times


Top
   
PostPosted: Mon Oct 21, 2019 9:17 pm 

Joined: Sun May 01, 2016 10:06 pm
Posts: 114
Again, those are fonts.

.phyre file is actually a game archive that has different content: one file is a texture, the other is a model, or a font etc.
This thread covers only 2D textures. I have no idea how to work with fonts. I don't know who does.

My guess is if you edit those GXTs and reimport - it will mess things up as there's description of each character (what text character it is, it's graphical position and size) in that .phyre file.


Top
   
PostPosted: Mon Oct 21, 2019 9:23 pm 

Joined: Sat Dec 08, 2018 7:53 pm
Posts: 20
TheUkrainianBard wrote:
Again, those are fonts.

.phyre file is actually a game archive that has different content: one file is a texture, the other is a model, or a font etc.
This thread covers only 2D textures. I have no idea how to work with fonts. I don't know who does.

My guess is if you edit those GXTs and reimport - it will mess things up as there's description of each character (what text character it is, it's graphical position and size) in that .phyre file.

I dont't know why but all 2D textures are in this .phyre, so i'm asking. Anyway thanks for your help.
Image


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 84 posts ]  Go to page Previous 1 2 3 4 5

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited