Extract ".npk, .csp"

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
jonathannvs
Posts: 12
Joined: Tue Jun 28, 2016 10:29 pm

Extract ".npk, .csp"

Post by jonathannvs »

I need to extract these two extension files ".npk, .csp". Can anyone help?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extract ".npk, .csp"

Post by aluigi »

Name of the game?
Are those files from the same game?
jonathannvs
Posts: 12
Joined: Tue Jun 28, 2016 10:29 pm

Re: Extract ".npk, .csp"

Post by jonathannvs »

There are two Chinese games here link
http://qy.iwgame.com/ and http://tzj.iwgame.com/
jonathannvs
Posts: 12
Joined: Tue Jun 28, 2016 10:29 pm

Re: Extract ".npk, .csp"

Post by jonathannvs »

Can anyone help with this?
jonathannvs
Posts: 12
Joined: Tue Jun 28, 2016 10:29 pm

Re: Extract ".npk, .csp"

Post by jonathannvs »

Does anyone know if there any tutorial where I can try to create this same script?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extract ".npk, .csp"

Post by aluigi »

The problem is not making the script, the problem is figuring the format and the encryption/compressions.
content.npk uses encrypted information of the files and compressed files (didn't check the algorithm, it's useless without the decryption).
data1.csp instead "seems" to use compressed information of the files or a strange way to handle them but that's all.
jonathannvs
Posts: 12
Joined: Tue Jun 28, 2016 10:29 pm

Re: Extract ".npk, .csp"

Post by jonathannvs »

So this can not be resolved ?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extract ".npk, .csp"

Post by aluigi »

Exactly.
But maybe someone is really interested and he will download both the games and check the files, the encryptions and the compressions.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extract ".npk, .csp"

Post by aluigi »

Right Royal World (权御天下):
http://aluigi.org/bms/right_royal_world.bms
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extract ".npk, .csp"

Post by aluigi »

And this is for 天之禁
http://aluigi.org/bms/forbidden_days.bms

Note that the xml files are encrypted and are extracted "as-is".
Everything else is perfect.
jonathannvs
Posts: 12
Joined: Tue Jun 28, 2016 10:29 pm

Re: Extract ".npk, .csp"

Post by jonathannvs »

First I would like to thank you and also give you congratulations for your great work .
So .. It all worked with the files of the Right Royal World (权 御 天下) : it worked 100 % but the script made ​​to the game " tzj.iwgame.com/ " did not work with me , the following error message ...

--------------------------------------

- signature of 3 bytes at offset 0x00000000 doesn't match the one
expected by the script:

this one: "w’"
77 92 19 w..

expected: "TXG"
54 58 47 TXG

- 0 files found in 0 seconds
coverage file 0 0% 3 445804019
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extract ".npk, .csp"

Post by aluigi »

Try with quickbms 0.7.5 released 2 days ago.
There was a bug in 0.7.4a just related to filexor
jonathannvs
Posts: 12
Joined: Tue Jun 28, 2016 10:29 pm

Re: Extract ".npk, .csp"

Post by jonathannvs »

Hello! I waited for the release of version 0.7.5 to try again and it returned the following error .

offset filesize filename
--------------------------------------

Error: the requested amount of bytes to allocate is negative (0xeac1cce0)

Last script line before the error or that produced the error:
12 log MEMORY_FILE INFO_OFF SIZE
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extract ".npk, .csp"

Post by aluigi »

If you get that error it means you are using the script on... the cutted sample you provided :)

The script worked at 100% on the game I installed here on the full original archives.
jonathannvs
Posts: 12
Joined: Tue Jun 28, 2016 10:29 pm

Re: Extract ".npk, .csp"

Post by jonathannvs »

The same error appeared when trying to run the script in the sample file that I send you . Wha and will be ?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extract ".npk, .csp"

Post by aluigi »

No, what I meant is that the error "the requested amount of bytes to allocate is negative (0xeac1cce0)" CANNOT be returned from the original archive, but ONLY from the cut you sent because the size of the sample is minor than the requested offset.
Anyway I have nothing else to add here.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Extract ".npk, .csp"

Post by AnonBaiter »

@jonathannvs - Post the exact filenames of the files you're having problems with.
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

Re: Extract ".npk, .csp"

Post by moonpaladin »

Hello! someone can update the script for .csp files? As I had compared the data have not change much, really hope someone can take a look at it, here is the file https://www.mediafire.com/file/8a3bx3vt ... j2.7z/file - Thanks for read.
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

Re: Extract ".npk, .csp"

Post by moonpaladin »

bump!! :(
moonpaladin
Posts: 74
Joined: Wed Mar 06, 2019 12:53 pm

Re: Extract ".npk, .csp"

Post by moonpaladin »

buuuump!!!