Crusaders of Light game files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Crumbs
Posts: 2
Joined: Sun Jul 23, 2017 3:57 am

Crusaders of Light game files

Post by Crumbs »

Hi guys,

today im moving my interest to a new ios game that i am looking to gain a better understanding of in terms of game files, i come from order and chaos online in which used a form of pk header to properly convert the game files into zips without damaging them and then extracting them,

Crusaders of light however, uses .npk files with nxpk headers inside the files themselves which i cannot manage to figure out how to properly rename and extract

thanks for any help!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Crusaders of Light game files

Post by aluigi »

nxpk files are extracted with this script:
http://aluigi.org/bms/nxpk.bms
Crumbs
Posts: 2
Joined: Sun Jul 23, 2017 3:57 am

Re: Crusaders of Light game files

Post by Crumbs »

Not seeming to have any luck opening the file using 010 and the script you have given me.

error is as follows:

*ERROR Line 11: Unknown pre-processor directive 'NXPK'.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Crusaders of Light game files

Post by aluigi »

script for QuickBMS http://quickbms.aluigi.org
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: Crusaders of Light game files

Post by The soul of light »

aluigi wrote:script for QuickBMS http://quickbms.aluigi.org

Hi ~ aluigi.
I use BMS script to extract these files, work progress of 199%, close to the perfect, but there is a problem, part of the DDS picture is damaged, what is the reason? :P
rim_004.7z
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Crusaders of Light game files

Post by aluigi »

As far as I can see the format doesn't use chunks and the compression algorithms involved report errors if there is something wrong.
Additionally nobody reported problems with the files coming from the nxpk archives.
The percentage over 100% is normal with some archives that use lot of MEMORY_FILE operations like these ones.

Just checking the dds image with a hex editor and I don't see garbage data or corrupted fields so I guess it's ok.
Maybe is it something related to the DX10 support of your viewer?
Graphics is not my field, sorry.
alpha1337
Posts: 5
Joined: Tue Jan 30, 2018 10:21 pm

Re: Crusaders of Light game files

Post by alpha1337 »

@alugi I am also trying to extract assets from this mobile MMO

I am using QuickBMS + NXPK script to attempt to extract UI assets from a file labeled 'uires.npk'

QuickBMS is able to unpack the assets. However, many appear to be damaged/corrupted and have visual anomalies. Here's an example:

Image

There's also a lot of .png images which appear to be an image mask?

Image

I know that people have successfully dumped the image assets in this game as PNG format. Here's an example of how the image should appear:

Image

http://col-head.com/items/weapon/mystic/

What method should I use to properly extract these images?

https://play.google.com/store/apps/deta ... roid&hl=en
https://www.facebook.com/games/?fbs=992 ... obalLaunch
festergut
Posts: 7
Joined: Wed Jul 05, 2017 5:52 pm

Re: Crusaders of Light game files

Post by festergut »

alpha1337 wrote:@alugi I am also trying to extract assets from this mobile MMO

I am using QuickBMS + NXPK script to attempt to extract UI assets from a file labeled 'uires.npk'

QuickBMS is able to unpack the assets. However, many appear to be damaged/corrupted and have visual anomalies. Here's an example:

Image

There's also a lot of .png images which appear to be an image mask?

Image

I know that people have successfully dumped the image assets in this game as PNG format. Here's an example of how the image should appear:

Image

http://col-head.com/items/weapon/mystic/

What method should I use to properly extract these images?

https://play.google.com/store/apps/deta ... roid&hl=en
https://www.facebook.com/games/?fbs=992 ... obalLaunch


i think you already succeed. the black-white image is an alpha mask, with tools like ImageMagick you can get the third pic from the former ones.
alpha1337
Posts: 5
Joined: Tue Jan 30, 2018 10:21 pm

Re: Crusaders of Light game files

Post by alpha1337 »

Thanks @festergut I was curious to know if there was a step I was missing, do you recommend imagemagick only because it's free or does it do some "smart" autonomous stuff that photoshop will not do without configuration?

Thanks
festergut
Posts: 7
Joined: Wed Jul 05, 2017 5:52 pm

Re: Crusaders of Light game files

Post by festergut »

alpha1337 wrote:Thanks @festergut I was curious to know if there was a step I was missing, do you recommend imagemagick only because it's free or does it do some "smart" autonomous stuff that photoshop will not do without configuration?

Thanks

imagemagick may not be the best choice, but i am not good at photoshop, not knowing how to accomplish that. perhaps it also works.
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

Re: Crusaders of Light game files

Post by moonpaladin »

aluigi wrote:As far as I can see the format doesn't use chunks and the compression algorithms involved report errors if there is something wrong.
Additionally nobody reported problems with the files coming from the nxpk archives.
The percentage over 100% is normal with some archives that use lot of MEMORY_FILE operations like these ones.

Just checking the dds image with a hex editor and I don't see garbage data or corrupted fields so I guess it's ok.
Maybe is it something related to the DX10 support of your viewer?
Graphics is not my field, sorry.


Hello aluigi! thanks for your script, it export every file, the problem is that have no names and also there is not way to match a mesh with their texture, you will need try to match 16k textures with any of the 17k meshes lol, also some models uses two different textures sooo it much harder.

Image

I'm gonna attach some files that are in the folders where are the .npk archives, dunno if only these archives are neccesary but if you need something else please let me know. Thanks in advance

https://www.mediafire.com/file/5rjtom0o ... T.zip/file
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

Re: Crusaders of Light game files

Post by moonpaladin »

*up* :cry:
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Crusaders of Light game files

Post by aluigi »

nxpk is a complex format and the script already most of it. If you see no filenames it means there are none in the archive.