ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Nov 23, 2017 5:19 am

All times are UTC




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Thu Sep 21, 2017 5:21 am 

Joined: Thu Sep 21, 2017 5:00 am
Posts: 7
Hello,

There is a game I wish to modify, and due to the number of items I wish to change, I felt that I must build a repacking script before any significant progress can be made.

User Ekey was kind enough to provide me with his extracting script in this link:
http://forum.xentax.com/viewtopic.php?f=10&t=13147

For past several days I have taken a look at various forum posts dealing with repacking scripts, and I have attempted to create one of my own. But to be completely honest, I am new to all this; may I have some pointers as to the various skills I would need to educate myself with beforehand? Thank you.


Top
   
PostPosted: Thu Sep 21, 2017 6:53 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7132
The latest version of the script is http://aluigi.org/bms/nxpk.bms but yes the core of the first format is that one.

My suggestion is to NOT use quickbms for creating rebuilding tools/scripts.

Then you have 3 CRC fields there so you must figure out what algorithm is used to calculate them.
Remember to use flag 0 with equal SIZE and ZSIZE (non-compressed file).
The first VER* fields are not very clear, probably you have to use those of the archive you want to rebuild.
Last but not least the names in the .hash and .info files are associate to the md5 of the compressed files stored in the archive so if you "modify" the file you must modify the hash in these files too.

Good luck


Top
   
PostPosted: Thu Sep 21, 2017 2:48 pm 

Joined: Thu Sep 21, 2017 5:00 am
Posts: 7
Thank you for helping me on this matter. I have another question or two, if I may.

Thank you for linking me to the 0.3.6 version of the script. It appears to me that both this script (the one I linked - 0.1.1) and that script (0.3.6) give same outputs in terms of files. May I ask as to the exact benefits that comes from using this updated script?

My second question: if using QuickBMS here is not recommended, should I use, for example, MultiEx instead?

Thank you.


Top
   
PostPosted: Thu Sep 21, 2017 4:16 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7132
The updated script is necessary with some versions of the NXPK archives and for supporting the filenames (if available).

MultiEx is not a programming language so it's totally useless in this scenario.

I guess that using the reimport feature of quickbms didn't make the archive working with the game due to the CRC fields, right?

You must write a tool from scratch in the programming language you know.


Top
   
PostPosted: Thu Sep 21, 2017 7:57 pm 

Joined: Thu Sep 21, 2017 5:00 am
Posts: 7
Ahh... I guess that's why the reimport feature did not work.

I'll fiddle around with Python in that case. Thank you for helping me on this matter.


Top
   
PostPosted: Sat Oct 14, 2017 9:09 pm 

Joined: Thu Sep 21, 2017 5:00 am
Posts: 7
To aluigi,

I have found an example of an extraction code in Python Language on this website: https://zhuanlan.zhihu.com/p/24998664

I'm not sure if you know the python language, but I would greatly appreciate it if you took a look at the code within the link to see if it'll help me create a rebuilding script. Thank you.


Top
   
PostPosted: Sun Oct 15, 2017 9:40 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7132
I don't write rebuilders.
If you mean a "rebuilding script" in bms language forget it because bms is not good for that job.


Top
   
PostPosted: Sun Oct 15, 2017 10:12 am 

Joined: Thu Sep 21, 2017 5:00 am
Posts: 7
Of course, I will be the one making the rebuilding script, not you. What I'm asking is if you have any experience in Python, and to see if that code will help me. All I need is a second eye to observe the situation.


Top
   
PostPosted: Sun Oct 15, 2017 12:19 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7132
If "you" are going to write the rebuilder why do you ask "me" if that link is helpful to you???

Just FYI:
http://aluigi.org/bms/nxpk.bms


Top
   
PostPosted: Sun Oct 15, 2017 8:25 pm 

Joined: Thu Sep 21, 2017 5:00 am
Posts: 7
Will it suffer you that greatly to take a glance at the link I provided and tell me your thoughts on it?

If you will not, than this is my final word on this subject.


Top
   
PostPosted: Sun Oct 15, 2017 10:59 pm 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 352
i would say until you can reproduce the hashing algorithm by NetEase, that python code will do you no good. :)

Quote:
All Hashes are calculated use a private algorithm from NetEase, it can even be implemented differently.

You can call it by DEBUGGING.

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Mon Oct 16, 2017 12:11 am 

Joined: Thu Sep 21, 2017 5:00 am
Posts: 7
I see, thank you. I'll think of what to do next. (Y)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 12 posts ] 

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