ROM Hack MHX DLC Encryption

Deleted member 369977

Felyne Hunter
Member
Joined
Aug 16, 2015
Messages
383
Trophies
0
XP
346
Country
Germany
Ok, I looked at your file and I think I see the problem. In MH4U people said there was an issue where the first item in the supply box (and reward box) couldn't be modified. So try modifying a different item or just add a new item.
Also, I don't think this makes a difference, but I kept the order of the files in the ARC the same as the original.
I already found a different problem. With the current modified code I use the just scan the directory and subdirectory I think I forgot the file extentioins. In the decrypted DLC ARC there are no file extentions after the file names. I'm not sure though if that's how it's supposed to be or now. I'll try to take a quick look into my edited stuff.. ( it's just about 10 lines, so it should be quick )

EDIT: Nevermind, in the decrypted arc file are no file extentions given.. so that's not where the problem is..
I also just tried encrypting the quest, and then doing everything in reverse and it worked fine..

EDIT2: Could you maybe upload the modified ARC file you just showed in the picture?

EDIT3: Slowly I think there is a problem I just don't see.. So I just decrypted the original quest, unpacked the arc, repacked it and encrypted it again. It wouldn't load. Also the new ARC is 0xDEA long, while the original is 0xE09 long.. all right, let's make a new clean install and then I'll report back.

Final EDIT4:
So.. this is actually quite interesting. it DOES matter in which order you supply the files of the arc to your create_arc function. My algorythm just went through all the folders and wrote down the file path & name in alphabetical order. It MUST be in the order capcom created the ARC file.. Well.. QUEST CLEARED
 
Last edited by Deleted member 369977,

Deleted member 369977

Felyne Hunter
Member
Joined
Aug 16, 2015
Messages
383
Trophies
0
XP
346
Country
Germany
Btw, just a quick value for the questData_1010002.mib : at 0x2C is 2 Bytes long the item you have to deliver.. and I guess then the amount 3 at 0x2E. I'll quickly try that :)

Yup, and 0x4B is the money for the main quest :)
 
Last edited by Deleted member 369977,

rexko

Member
Newcomer
Joined
Nov 28, 2015
Messages
22
Trophies
0
Age
35
XP
88
Country
error from compresed size and real size.. for example quest/boss/stemmain/b_m00em000_00.sem type : rsetEmMain, compressed size : 15, size 32 eroor , and line 384 in <module> error, and line 344 in extract_arc error T-T what should i do?
 

rexko

Member
Newcomer
Joined
Nov 28, 2015
Messages
22
Trophies
0
Age
35
XP
88
Country
i got a question, im using CMD for launch python, i installed 2.7 before install 3.5 then windows cmd using 2.7?

--------------------- MERGED ---------------------------

error from compresed size and real size.. for example quest/boss/stemmain/b_m00em000_00.sem type : rsetEmMain, compressed size : 15, size 32 eroor , and line 384 in <module> error, and line 344 in extract_arc error T-T what should i do?
thx ill try that way. need pycrypto for 3.5 too right?
 

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States
You don't need pycrypto for the ARC script. The decryption works on both 2.7 and 3.5 but the ARC script only works in 3.5, sorry.
 

rexko

Member
Newcomer
Joined
Nov 28, 2015
Messages
22
Trophies
0
Age
35
XP
88
Country
Done ! Edit now, thx!

--------------------- MERGED ---------------------------

You don't need pycrypto for the ARC script. The decryption works on both 2.7 and 3.5 but the ARC script only works in 3.5, sorry.
ARC WORKS ON 3.3 TOO! im using now
 

rexko

Member
Newcomer
Joined
Nov 28, 2015
Messages
22
Trophies
0
Age
35
XP
88
Country
Working Fine, THx!

--------------------- MERGED ---------------------------

0343d0c387.jpg


Thx alot!!
 

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States

PonyDust

New Member
Newbie
Joined
Dec 15, 2015
Messages
3
Trophies
0
Age
54
XP
51
Country
Hong Kong
Are you talking about the encrypted ARCC files inside the game? I figured out how to decrypt those: https://gist.github.com/svanheulen/1bba2b9c77347825269c
I don't actually have that game so I haven't looked into it much, but hopefully that's what you're looking for.
Yes, that's what I looking for. Thanks a lot.

May I know what version of python are you using?
I tried 2.7 and 3.5.
For 3.5 I got the following error:


Traceback (most recent call last):

File "mhxr_arcc.py", line 7, in <module>

from Crypto.Cipher import Blowfish

File "~/Crypto/Cipher/Blowfish.py", line 56, in <module>

from Crypto.Cipher import _Blowfish

ImportError: dlopen(~/Crypto/Cipher/_Blowfish.so, 2): Symbol not found: _PyInt_FromLong

Referenced from: ~/Crypto/Cipher/_Blowfish.so

Expected in: flat namespace

in ~/Crypto/Cipher/_Blowfish.so
 

PonyDust

New Member
Newbie
Joined
Dec 15, 2015
Messages
3
Trophies
0
Age
54
XP
51
Country
Hong Kong
It is a problem caused by the gmp library during installation. I just fixed it and the script runs.

However the output files are not readable. I attached one of the output file below (weapon_lsword_series.txt).
The original .arc file is also attached. I named it rsdnt_weapon.txt but it should be .arc.

I know it is not a thread for this issue, but if anyone is interested please help. Thanks a lot.
 

Attachments

  • weapon_lsword_series.txt
    25.9 KB · Views: 308
  • rsdnt_weapon.txt
    97 KB · Views: 281

Deleted member 369977

Felyne Hunter
Member
Joined
Aug 16, 2015
Messages
383
Trophies
0
XP
346
Country
Germany
By the way, I just got an email saying that, since the update, the encryption key was changed. I'm currently on vacation until January 3rd so I wont be able to get the new key until then. I'm also almost done making a web based quest editor so hopefully I'll have that ready soon after :)
Alright :) Was the key changed just today? Yesterday I was still able to import the quests. Also I'm currently working on a small editor too.
It seems like the monster only spawns in one area, although I edited the area in the boss file. Is this intended by the game or am I doing something wrong? Anyways, have a nice vacation!

EDIT: Jup, they changed it..
 
Last edited by Deleted member 369977,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Theresa Nutz
  • K3Nv2 @ K3Nv2:
    Walmart has e care vets now sounds horrible
  • kijetesantakalu042 @ kijetesantakalu042:
    @Xdqwerty Who decided to write that
    +1
  • BigOnYa @ BigOnYa:
    Its right next to the deli, for "convenience"
  • K3Nv2 @ K3Nv2:
    Coperate number is in Springfield
    +2
  • K3Nv2 @ K3Nv2:
    I do like how I can easily trap my cat with a red laser now dumb animal
  • BigOnYa @ BigOnYa:
    Not a dumb animal, cat has had you trapped for years. Feed me, clean my shit, and leave me the f**k alone.
  • K3Nv2 @ K3Nv2:
    Yeah but it doesn't own a skillet
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, how do you fuck alone?
  • Xdqwerty @ Xdqwerty:
    You touch yourself?
  • Xdqwerty @ Xdqwerty:
    (oh wait you fixed it)
  • K3Nv2 @ K3Nv2:
    Bigonya has been it since he got married
  • BigOnYa @ BigOnYa:
    Stop bullying me!
  • K3Nv2 @ K3Nv2:
    No
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, he's joking
  • BigOnYa @ BigOnYa:
    I'm gonna tell my mom on you guys.
  • K3Nv2 @ K3Nv2:
    She already told me last night
    +2
  • K3Nv2 @ K3Nv2:
    My mom told me I can't be with uremum
    +2
  • K3Nv2 @ K3Nv2:
    She's already with her
    +2
  • Xdqwerty @ Xdqwerty:
    Sesbian Lex
    +2
  • kijetesantakalu042 @ kijetesantakalu042:
    Lesbian lex
    +2
  • BigOnYa @ BigOnYa:
    I called my mom and she said to tell you
    guys "No! Stop it right now!" So nahnah :P
    +3
  • K3Nv2 @ K3Nv2:
    Well ac unit needs a new board thing looks corroded to hell
    K3Nv2 @ K3Nv2: Well ac unit needs a new board thing looks corroded to hell