Harry Potter: Magic Awakened PNG and strings

Textures, recreate headers, conversions, algorithms and parsing of image files
gbmats
Posts: 4
Joined: Wed Mar 09, 2022 9:56 pm

Harry Potter: Magic Awakened PNG and strings

Post by gbmats »

Hi,

I'm trying to extract only PNG and text (strings) data from the Harry Potter: Magic Awakened files.

So far I was able to get the NPK files and from them (using the QuickBMS script attached) a bunch of .dat, .txt, .xml and .raw files, but the png/strings are nowhere to be found.

Can someone help point me in the right direction to achieve this?

Thanks in advance!
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Harry Potter: Magic Awakened PNG and strings

Post by rabatini »

gbmats wrote:Hi,

I'm trying to extract only PNG and text (strings) data from the Harry Potter: Magic Awakened files.

So far I was able to get the NPK files and from them (using the QuickBMS script attached) a bunch of .dat, .txt, .xml and .raw files, but the png/strings are nowhere to be found.

Can someone help point me in the right direction to achieve this?

Thanks in advance!


How do you know that game uses PNG?
texture can be a lot of kind of extension and types.
gbmats
Posts: 4
Joined: Wed Mar 09, 2022 9:56 pm

Re: Harry Potter: Magic Awakened PNG and strings

Post by gbmats »

rabatini wrote:
gbmats wrote:Hi,

I'm trying to extract only PNG and text (strings) data from the Harry Potter: Magic Awakened files.

So far I was able to get the NPK files and from them (using the QuickBMS script attached) a bunch of .dat, .txt, .xml and .raw files, but the png/strings are nowhere to be found.

Can someone help point me in the right direction to achieve this?

Thanks in advance!


How do you know that game uses PNG?
texture can be a lot of kind of extension and types.


I just thought it might have some image files somewhere...

This user in the topic below posted a few examples he managed to extract:
viewtopic.php?f=5&t=16453&hilit=awakened

Also a few files mention png files:
https://imgur.com/sEWG1rD
parttimegamer15
Posts: 28
Joined: Thu Jul 21, 2016 12:17 am

Re: Harry Potter: Magic Awakened PNG and strings

Post by parttimegamer15 »

Check this post, you can get the texture and image files. It's a mix of dds and png format.

https://forum.xentax.com/viewtopic.php? ... 89#p180789


gbmats wrote:Hi,

I'm trying to extract only PNG and text (strings) data from the Harry Potter: Magic Awakened files.

So far I was able to get the NPK files and from them (using the QuickBMS script attached) a bunch of .dat, .txt, .xml and .raw files, but the png/strings are nowhere to be found.

Can someone help point me in the right direction to achieve this?

Thanks in advance!
gbmats
Posts: 4
Joined: Wed Mar 09, 2022 9:56 pm

Re: Harry Potter: Magic Awakened PNG and strings

Post by gbmats »

parttimegamer15 wrote:Check this post, you can get the texture and image files. It's a mix of dds and png format.

https://forum.xentax.com/viewtopic.php? ... 89#p180789


Hey,

I've seen this topic and got these files and opened them like described.

But I'm looking for other kind of png (not model or animation related), like the ones below:

Image

Image

Image
coredevel
Posts: 75
Joined: Tue May 30, 2017 1:10 am

Re: Harry Potter: Magic Awakened PNG and strings

Post by coredevel »

Like someone said, if this is a mobile game, then they most likely use compressed formats to save space. Compressed formats like PVR and KTX. Even if the file extension is called .PNG, some games use dummy placeholder extensions to store a different format.

So, look at the first 16 bytes of each .dat file with a hex editor. If you see the text 'KTX', then it's a KTX graphics file. You can rename this .dat file to .ktx and load into PVRTexTool, then export to whatever format you want.

0000000000000000.dat on this link is a KTX file:
https://drive.google.com/drive/folders/ ... ntRC8HcsXx
gbmats
Posts: 4
Joined: Wed Mar 09, 2022 9:56 pm

Re: Harry Potter: Magic Awakened PNG and strings

Post by gbmats »

coredevel wrote:Like someone said, if this is a mobile game, then they most likely use compressed formats to save space. Compressed formats like PVR and KTX. Even if the file extension is called .PNG, some games use dummy placeholder extensions to store a different format.

So, look at the first 16 bytes of each .dat file with a hex editor. If you see the text 'KTX', then it's a KTX graphics file. You can rename this .dat file to .ktx and load into PVRTexTool, then export to whatever format you want.

0000000000000000.dat on this link is a KTX file:
https://drive.google.com/drive/folders/ ... ntRC8HcsXx


Hi, thanks a lot. Really appreciate your help!

Do you have any idea where I can find the strings?

Thanks again
coredevel
Posts: 75
Joined: Tue May 30, 2017 1:10 am

Re: Harry Potter: Magic Awakened PNG and strings

Post by coredevel »

Sorry, I don't know about text strings. I was only interested in the graphics.

Is the game localized in different languages? Text should be easy to find if the game is written in dozen of languages.