Rules of Survival npk general topic

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
GIRLgaming
Posts: 9
Joined: Wed Oct 17, 2018 6:51 am

I cannot repack the extracted file (Rules of Survival)

Post by GIRLgaming »

I cannot repack the extracted npk file. the error is in the photo attached, please help me masters
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Uncompressed data is bigger than the allocated buffer

Post by aluigi »

@CrazyDemonLord
You must ever provide full information about the name of the game, the script (and version) you used and upload a sample archive:
viewtopic.php?f=21&t=4
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Rules of Survival npk general topic

Post by aluigi »

@GIRLgaming
You selected the wrong files. Read section 3 of http://aluigi.org/papers/quickbms.txt
CrazyDemonLord
Posts: 6
Joined: Tue Oct 16, 2018 2:30 pm

Re: Uncompressed data is bigger than the allocated buffer

Post by CrazyDemonLord »

@Luigi & @Shokoniraya
Thanks for the reply and Sorry that I posted incomplete description.

So here the thing.
The game name - Rules of Survival (Mobile Version)

I usually extract and reimport assets.npk file using Quickbms 0.9.0 and Script nxpk.bms (version 0.3.8) and it works fine.
Then this game has fps mode npk file (150 mb) that when I try to extract using normal method gives error "The uncompressed data (-1) is bigger than the allocated buffer (4194348). you can see the screenshot in the attachment. and the npk file that I was trying to extract can be view using the following link...
Npk File:-
https://drive.google.com/file/d/1GrLRsdjFID1u2yBHFN1exNlFcqcYqsG8/view?usp=sharing

Please tell me Is there anything i'm doing wrong or Which script I need to use....

Waiting for your reply.

Regards & Thanks in Advance.
Crazy.
CrazyDemonLord
Posts: 6
Joined: Tue Oct 16, 2018 2:30 pm

Re: Rules of Survival npk general topic

Post by CrazyDemonLord »

@imbamoves

Use this
"EFFECTS":
[
{
"DISPLAY_IN_APPEARANCE_PANEL": True,
"DISPLAY_IN_BATTLE": True,
"DISPLAY_IN_MALL_PANEL": True,
"PATH": "effect/fx/zaiju/glow_red.sfx",
"SOCKET": "HP_hand",
},
{
"DISPLAY_IN_APPEARANCE_PANEL": True,
"DISPLAY_IN_BATTLE": True,
"DISPLAY_IN_MALL_PANEL": True,
"PATH": "effect/fx/scene/redsmoke_blue.sfx",
"SOCKET": "skill",
},
],
Maboyz59
Posts: 13
Joined: Sat Jul 07, 2018 8:12 am

Re: Rules of Survival npk general topic

Post by Maboyz59 »

hi aluigi,

how do I translate / read / edit file.dat the results of extracted npk files?
I will attach the screenshot and the NPK file

file npk link https://drive.google.com/file/d/1wUrZLm0uGk86GHCb7hOGTZ1Mfc6vmETX/view?usp=sharing
GIRLgaming
Posts: 9
Joined: Wed Oct 17, 2018 6:51 am

Re: Rules of Survival npk general topic

Post by GIRLgaming »

aluigi wrote:@GIRLgaming
You selected the wrong files. Read section 3 of http://aluigi.org/papers/quickbms.txt


I am extracting npk file, and after extracting i got xml, txt files. i extracted it right. i read your instructions but i always get the same error. please help me
GIRLgaming
Posts: 9
Joined: Wed Oct 17, 2018 6:51 am

Re: pack file mod

Post by GIRLgaming »

imbamoves wrote:
dangtuan9x wrote:I have 2 files I want to pack into the assest [H45NA] .npk file
But no tools to use to pack anyone can guide me
thank you

what is inside in that 3 txt of yours? i can teach u how to pack it again in assests.npk


Do you edit txt files only? Btw help me, i cant repack it again please
GIRLgaming
Posts: 9
Joined: Wed Oct 17, 2018 6:51 am

Re: Rules of Survival npk general topic

Post by GIRLgaming »

What does "select the SAME file and output folder mean? @auligi
GIRLgaming
Posts: 9
Joined: Wed Oct 17, 2018 6:51 am

Re: Rules of Survival npk general topic

Post by GIRLgaming »

CrazyDemonLord wrote:@imbamoves

Use this
"EFFECTS":
[
{
"DISPLAY_IN_APPEARANCE_PANEL": True,
"DISPLAY_IN_BATTLE": True,
"DISPLAY_IN_MALL_PANEL": True,
"PATH": "effect/fx/zaiju/glow_red.sfx",
"SOCKET": "HP_hand",
},
{
"DISPLAY_IN_APPEARANCE_PANEL": True,
"DISPLAY_IN_BATTLE": True,
"DISPLAY_IN_MALL_PANEL": True,
"PATH": "effect/fx/scene/redsmoke_blue.sfx",
"SOCKET": "skill",
},
],



Can you help me how to repack? I edit ros assets too
CrazyDemonLord
Posts: 6
Joined: Tue Oct 16, 2018 2:30 pm

Solution for Uncompressed data is bigger than the allocated buffer

Post by CrazyDemonLord »

The game name - Rules of Survival (Mobile Version)

I usually extract and reimport assets.npk file using Quickbms 0.9.0 and Script nxpk.bms (version 0.3.8) and it works fine.
Then this game has fps mode npk file (150 mb) that when I try to extract using normal method gives error "The uncompressed data (-1) is bigger than the allocated buffer (4194348). the npk file that I was trying to extract can be view using the following link...
Npk File:-
https://drive.google.com/file/d/1GrLRsdjFID1u2yBHFN1exNlFcqcYqsG8/view?usp=sharing

Please tell me Is there anything i'm doing wrong or Which script I need to use....

Waiting for your reply.

Regards & Thanks in Advance.
Crazy.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Rules of Survival npk general topic

Post by aluigi »

To everybody:
Please STOP opening new topics about Rules of Survival.
This is the only topic about this game and ANY request must go here.
GIRLgaming
Posts: 9
Joined: Wed Oct 17, 2018 6:51 am

Re: Rules of Survival npk general topic

Post by GIRLgaming »

aluigi wrote:To everybody:
Please STOP opening new topics about Rules of Survival.
This is the only topic about this game and ANY request must go here.


I extracted and reimported the file but when i tried to put the file back inside the game's folder the game will not continue to load. The game is rules of survival. It's stock in loading, i cannot enter the game. Can you tell me why? .

P.S. idk if it's OT but it's related in Rules of Survival
CrazyDemonLord
Posts: 6
Joined: Tue Oct 16, 2018 2:30 pm

Re: Rules of Survival npk general topic

Post by CrazyDemonLord »

aluigi wrote:To everybody:
Please STOP opening new topics about Rules of Survival.
This is the only topic about this game and ANY request must go here.



The game name - Rules of Survival (Mobile Version)

I usually extract and reimport assets.npk file using Quickbms 0.9.0 and Script nxpk.bms (version 0.3.8) and it works fine.
Then this game has fps mode npk file (150 mb) that when I try to extract using normal method gives error "The uncompressed data (-1) is bigger than the allocated buffer (4194348). the npk file that I was trying to extract can be view using the following link...
Npk File:-
[url]
https://drive.google.com/file/d/1GrLRsd ... sp=sharing[/url]

Please tell me Is there anything i'm doing wrong or Which script I need to use....

Waiting for your reply.

Regards & Thanks in Advance.
Crazy.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Rules of Survival npk general topic

Post by aluigi »

The script is correct but that archive has the files 00000178, 00000232 and 000002af that contain no data, just zeroes instead of the compressed data, therefore there is nothing to decompress.

The entry is just like the other entries without any different flag or size which means that it MUST be decompressed like the others:

Code: Select all

. 00000178
. 096f7adc get     NAME_CRC   0x802a8508 4
. 096f7ae0 get     OFFSET     0x04c2d7a4 4
. 096f7ae4 get     ZSIZE      0x00000250 4
. 096f7ae8 get     SIZE       0x00000662 4
. 096f7aec get     ZCRC       0x92b27341 4
. 096f7af0 get     CRC        0x6e327855 4
. 096f7af4 get     FLAGS      0x00000001 4
  04c2d7a4 1634       00000178.dat

So it's not a problem of the script or quickbms, you can bypass that error in various ways like replace "zlib" at line 155 of the script with "zlib_noerror" or with the -e command-line option.
GIRLgaming
Posts: 9
Joined: Wed Oct 17, 2018 6:51 am

Re: Rules of Survival npk general topic

Post by GIRLgaming »

.

I extracted the file correctly, reimported correctly. no error but when I tried to run the game using the file, it wont run it's stock on loading. the game is rules of survival, can you tell me what's the reason? thank you
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Rules of Survival npk general topic

Post by aluigi »

They may be tons of reasons depending by the game, usually it's something related to CRC (checksums and hashes) which indeed are used by the NXPK format, if the game checks them then you have to manually modify every single CRC field of the edited file (you can't do it with quickbms, so I can't help you).

It may also possible that the game doesn't allow edited archives for example because it checks a hash of the archive stored online or locally.
imbamoves
Posts: 9
Joined: Mon Oct 15, 2018 4:52 pm

Re: Rules of Survival npk general topic

Post by imbamoves »

GIRLgaming wrote:
CrazyDemonLord wrote:@imbamoves

Use this
"EFFECTS":
[
{
"DISPLAY_IN_APPEARANCE_PANEL": True,
"DISPLAY_IN_BATTLE": True,
"DISPLAY_IN_MALL_PANEL": True,
"PATH": "effect/fx/zaiju/glow_red.sfx",
"SOCKET": "HP_hand",
},
{
"DISPLAY_IN_APPEARANCE_PANEL": True,
"DISPLAY_IN_BATTLE": True,
"DISPLAY_IN_MALL_PANEL": True,
"PATH": "effect/fx/scene/redsmoke_blue.sfx",
"SOCKET": "skill",
},
],



Can you help me how to repack? I edit ros assets too


give me no grass code.. pc version.. ill teach you everything i know
imbamoves
Posts: 9
Joined: Mon Oct 15, 2018 4:52 pm

Re: Rules of Survival npk general topic

Post by imbamoves »

aluigi wrote:They may be tons of reasons depending by the game, usually it's something related to CRC (checksums and hashes) which indeed are used by the NXPK format, if the game checks them then you have to manually modify every single CRC field of the edited file (you can't do it with quickbms, so I can't help you).

It may also possible that the game doesn't allow edited archives for example because it checks a hash of the archive stored online or locally.

boss can u give me no grass code for pc version.... please
imbamoves
Posts: 9
Joined: Mon Oct 15, 2018 4:52 pm

Re: Rules of Survival npk general topic

Post by imbamoves »

aluigi wrote:They may be tons of reasons depending by the game, usually it's something related to CRC (checksums and hashes) which indeed are used by the NXPK format, if the game checks them then you have to manually modify every single CRC field of the edited file (you can't do it with quickbms, so I can't help you).

It may also possible that the game doesn't allow edited archives for example because it checks a hash of the archive stored online or locally.

there's a modder claiming that he have code with no grass in pc version but he didnt share nor post some pic with no grass... is he joking or he's telling the truth.. because i can only make no grass in mobile version.. but not in pc version ROS.. but please master i you know anything please help me..