Minegarde: Hex Editing Guide by dantard - Minegarde

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Hex Editing Guide by dantard Anyone who is familiar with this please help

#1 User is offline   VioletKIRA 

  • Plessy Queen
  • Group: Master Scribe
  • Posts: 341
  • Joined: 16-July 10
  • LocationChristmas Island

Posted 18 July 2010 - 09:19 AM

Below is the first post by dantard. I ask for anyone who has bits and pieces of information to come forth and help type up a more formal and complete guide.





EDIT3: Still haven't had the time to write a better (not to mention up-to-date) guide here in the first page, so here goes something interesting, a way to make online weapons and armors offline:

You'll need to replace some files in your iso (replace them with wiiscrubber, and remember to MAKE A BACKUP FIRST!!!) to be able to create all weapons and armor offline. You don't need to change the names or anything, just replace lobby_data.rso (on the "rel" folder) withmy lobby_data_offline.rso and the com_data.rso (also on the "rel" folder) with my com_data_offline.rso

The files: Files

But of course, to get the items you'll need an online quest so I've added a guide of how to replace offline quests with online ones in the end of this post. (so skip to the end where it says "HOW TO REPLACE OFFLINE WITH ONLINE QUESTS", but know that reading the huge text wall before it is still very much recomended)
It is only hard the first time, once you get the hang of it it is easy!


/////////////

Hi to all! I'm new to these forums and decided to come here to share some of my discoveries since I haven't seen anyone talking about it! If it's not new stuff I'm sorry!

Well, I've been experimenting with some HEX editing of the files contained in the game so as to edit some quests and I've had some success so far.

First, the quests are all contained in three files (extract the files from the Iso with wiiscrubber): quest00.bin, quest01.bin and quest03.bin. The 00 one contains the offline quests, the 01 one contains the online quests and the 03 one contains the arena/split-screen quests.

Now, to explain the hex editing part... well I'll not explain Hex itself, so if you don't know that ask google. Btw, sorry for HUUUUUGE TEXT WALL.


The main structure I've found for the quests is

__ __ __ __ __ __ QQ QQ QQ XX __ YY __ __ QQ QQ
QQ XX __ YY __ __ QQ QQ QQ XX __ YY __ __ ZZ ZZ
__ __ AA AA __ __ AA AA __ __ AA AA __ __ DD DD

The QQ parts refer to the type of quests/sub-quests, they are in order (so main, sub A, sub B).

The XXs are the monsters/items you want to kill/deliver

The YYs are the amount of XX you want to kill/deliver

The ZZs are the Fee

The AAs are the money rewards, in order also (again main, sub A, sub B)

The DDs refer to the reward reduction per KO



Let me give an example:

1 __ __ 0A 1B __ 03 __ C5 01 __ __ 01 07 01 64 06
2 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
3 __ __ __ __ __ __ __ 01 __ 01 __ 01 __ __ 02 04
4 __ 01 __ 01 __ __ __ 02 01 18 __ 01 __ __ __ FA
5 __ __ 0A F0 __ __ 02 58 __ __ 03 E8 __ __ 03 AC
6 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
7 __ __ __ 20 __ __ __ 65 __ __ __ __ __ __ __ __
8 __ __ 03 BC __ __ __ 09 __ __ __ __ __ __ __ __
9 __ __ __ __ __ __ __ 02 __ __ __ 01 __ 01 __ 01
10 01 13 01 18 01 12 01 14 01 17 01 0A 01 65 05 0C
11 01 14 01 12 __ 9B 01 0A 01 15 01 06 __ __ __ __
12 __ __ __ __ __ __ __ __ __ __ __ __ 01 87 02 0A
13 __ 85 01 0A __ 8D 01 0E __ 80 02 18 __ 7B 02 14
14 __ 8E 01 0E 01 47 01 08 __ __ __ __ __ __ __ __
15 __ __ __ __ __ __ __ __ __ __ 02 04 __ 01 __ 01
16 01 13 01 18 01 12 01 14 01 17 01 0A 01 65 05 0C
17 01 14 01 12 __ 9B 01 0A 01 15 01 06 __ __ __ __
18 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
19 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
20 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
21 __ __ __ __ __ __ __ __ __ __ __ 02 01 18 __ 01
22 01 B8 01 23 01 BF 01 05 01 B9 01 0F 01 47 01 14
23 01 48 01 19 __ __ __ __ __ __ __ __ __ __ __ __

(As you probably have noticed I've replaced the 00s with __s and added line numbers for easier viewing.)

In the first line here the first 01 refers to Rathian, but I don't know what it does yet (but you have to replace it also to get it right)

This part is the one I explained:
3 __ __ __ __ __ __ __ 01 __ 01 __ 01 __ __ 02 04
4 __ 01 __ 01 __ __ __ 02 01 18 __ 01 __ __ __ FA
5 __ __ 0A F0 __ __ 02 58 __ __ 03 E8 __ __ 03 AC

So here we have
Main Quest:
"__ 01 __" (kill the boss) "01" (rathian) "01" (one rathian)

Sub-A:
"02 04 __" (break part) "01" (rathian's) "01" (in break part quests YY isn't an amount it is the part to break, in this case: the tail)

Sub-B:
"__ 02 01" (deliver) "18" (wyvern tears) "01" (one wyvern tear)

Fee:
"__ FA" (250z)

Reward Main/Sub-A/Sub-B:
"0A F0" (2800z) / "02 58" (600z) / "03 E8" (1000z)

Reward Reduction per KO:
"03 AC" (940z)

Line 6 appears to use the same format for reward but refers to rewarded Guild Points from the main/sub-a/sub-b quests


Now, in line 9 I don't know what 02 means, but we can see the "__ 01 __ 01 __ 01"
part again. I firmly believe after it (lines 10 to 14) there's information on the boss monster (rathian here), like X-Y-Z positioning (definitely here), but maybe there's size/strength/time of appearance also I don't know (I just use this stuff to know who am I replacing, so I know where it is going, so as to know place a shark in place of an aptonoth for instance)

Now, in line 15 we can se the "02 04 __ 01 __ 01" part again and following it the information about it, and the same in line 21 with the "02 01 18 __ 01" part regarding the delivering quest

Finally I've found that on the file, before that hex part I posted, there is a part that has information on the stars of the quest and the area where the quest happens, it is always like this "SS AA", where SS is the number of stars and AA the area number, so say i find "01 01" (there is always a bunch of 00s before and it is always on the beginning part of the quest, before the structures I posted), it refers to 1 star quest on the Isle (moga forest), "02 03" - 2 stars quest on the submerged forest (swamp?) or say "06 07" - 6 stars quest on the ocean arena (naval deus area)

Now, I have to go to work now, so I may post some more stuff late at night, but for now I'll leave some more numeric reference for you guys! Hope I've been useful to the community! Ask any questions you want and I'll try answering and please assist me in finding more things out! (such as item rewards, quest start positioning and why oh why doesn't area 06 from shen-moran work on offline nor arena and why neither do any areas beside 09/0A, 0B and 07 work on the arena!)

Area List
01 - Moga Forest
02 - Desert
03 - Swamp
04 - Snow Mountain
05 - Volcano
06 - Great Desert (Shen-Moran Area, doesn't work! Why?)
07 - Ocean Arena (Naval Deus Area)
08 - shows land arena, but the real one is 09 so...?
09 - Land Arena
0A - Water Arena
0B - Shrine (albatorion area)
0C - shows water arena, but the real one is 0A so...?



Monster List, apparently some bytes refer to more than one monster, but it seems this just happens to some inferior monster like fish, and not to something like Diablos or Dos-Jagie (thanks to Vuze for the rest)

01 = Rathian
02 = Rathalos
03 = Quru Pekko
04 = Giginebura
05 = Beliolos
06 = Diablos
07 = Ibirujo
08 = Boroboros
09 = Uragankin
0A = Jagie
0B = Jagienos
0C = Dos-Jagie
0D = Bagie
0E = Dos-Bagie
0F = Lagiacrus
10 = Royaldoros
11 = Ludoros
12 = Chanagable
13 = Agunacotol
14 = Naval Deus
15 = Urocotol
16 = Delukus
17 = Epios
18 = Albatrion
19 = Fenshenlon
1A = Jellyfish / Gigi Whelps?
1B = Aptonoth
1C = Popo
1D = Rinopros
1E = Felyne
1F = Melynx
20 = Fish (Shark? / Carnivorous Catfish?)
21 = Oltaros
22 = Kelbi
23 = Giginebura Egg
24 = Bunahabura (Blue Wing)
25 = Bunahabura (Orange Wing)
26 = Bunahabura (Green Wing)
27 = Bunahabura (Red Wing)

QQ - Quest TypeS!
XX - What / YY - How Many / WW - ??? / CC - Part Number (head,ear etc.)

__ 81 __ XX __ YY Capture Quest
__ 01 __ XX __ YY Kill Boss Quest
81 01 __ XX __ YY Kill Many?
01 01 __ XX __ YY Kill Minions Quest
__ 02 XX XX __ YY Gathering Quest?
04 04 __ XX __ WW Repel Quest
__ 10 __ XX __ YY Trap Quest (not capture)
02 04 __ XX __ CC Break Part Quest
20 __ __ XY __ __ Other Quest (Destroy nest, light torch in area 5 ='03', etc.)
10 __ __ XX __ EE "Fish the Chanagaburu/Stun the Dosujagii" both EE = 03?







HOW TO REPLACE OFFLINE WITH ONLINE QUESTS:

Supposing you want to grab an online quest and put it in place of an offline quest, you would look in the quest01.bin file (the one that contains the online quests, it is inside the ISO, extract it with wiiscrubber) and search for a quest you want and place it in the quest00.bin file (the one that has all the offline quests)

So if I want to put the Albatorion/miragreid quest in place of the first quest (deliver 5 special mushrooms):

1 - I'd look for "01 00 18 00 01" (code for kill 1 albatorion) in the quest01.bin file (this one is easy, it's THE last quest in the file, but normally you'd use the search function)

2 - Find the beginning of the quest, you have to get a feel for it, normally the quests are separated by a bunch of 00s, but it's not always the case, the beginning of a quest generally has a lot of " | "s also...

3 - A couple of lines after the beginning of the quest you'll find a line that has a bunch of 00s and a "06 0B" in the end, 06 is the number of stars of the quest, 0B means it happens on the shrine area (albatorion's area).

4 - Then you'll copy all the code from 06 0B until the end of the quest (until another quest begins, or in this case, the file ends since it's the last quest)

5 - Now open quest00.bin and find the special mushrooms quest (look for "02 00 90 00 05" which means, deliver 5 special mushrooms) and find the beginning of the quest and then go down a little to find a line with a bunch of 00s with "01 01" in the end, that means it's a 1 star quest (first 01) on moga forest (second 01)

6 - Now paste the miragreid quest code over the same part from the mushroom quest code (so you'll paste 06 08 + rest of the code overlapping 01 01 and the rest of the code)

7 - Now go to the remaining parts of the code from the special mushrooms quest and turn everything to 00s (the miragreid code is much smaller than the special mushrooms quest) until you reach the beginning of the second quest. You can skip this but you might find strange stuff in the game if you do, like aptonoth in the lava I don't know...

8 - Put the quest00.bin file back on the Iso of the game and you're done! It looks harder than it really is! And if you do one you'll soon do the others more easily! :D
Big 3rd City Is A Lonely Place.

#2 User is offline   Zolin 

  • Khezu Whelp
  • Group: Members
  • Posts: 24
  • Joined: 22-July 10

Posted 22 July 2010 - 03:35 AM

Hi, one noobish qns... how to read .bin file? i open it with text document, wordpad and notepad.. they dun show those numbers but they show..... those #%^&$^# kind of things... totally different from wat is written above..

#3 User is offline   Bobofango 

  • Basarios
  • Group: Members
  • Posts: 416
  • Joined: 16-July 10
  • PSN:bobofango86
  • Kai:Mr_Bobo
  • LocationAfghanistan

Posted 22 July 2010 - 04:06 AM

View PostZolin, on 22 July 2010 - 03:35 AM, said:

Hi, one noobish qns... how to read .bin file? i open it with text document, wordpad and notepad.. they dun show those numbers but they show..... those #%^&$^# kind of things... totally different from wat is written above..


You need to open it in a Hex Editor such as MadEdit.
http://madedit.sourc...x.php/Main_Page

#4 User is offline   robin07 

  • Khezu Whelp
  • Group: Members
  • Posts: 3
  • Joined: 23-July 10

Posted 23 July 2010 - 04:43 AM

thank you very much for this tutorial, I've got a problem though, actually, when I try to replace more than 1 quest, nothing shows up in the quest list :( it works for 1 quest but not for more, how can I fix that ?

#5 User is offline   Zolin 

  • Khezu Whelp
  • Group: Members
  • Posts: 24
  • Joined: 22-July 10

Posted 23 July 2010 - 05:57 AM

got the same prob... when i try to combine quest, there is nothi show up in my offline quest.. can we copy all the online quest to offline? like copy all the number and paste over all the offline number?

#6 User is offline   robin07 

  • Khezu Whelp
  • Group: Members
  • Posts: 3
  • Joined: 23-July 10

Posted 23 July 2010 - 06:09 AM

and it seems that some quests can't be replaced, I tried so many times with "Jump a jaggi" but nothing shows up ingame in the quest list :( Please help

This post has been edited by robin07: 23 July 2010 - 07:51 AM


#7 User is offline   Bobofango 

  • Basarios
  • Group: Members
  • Posts: 416
  • Joined: 16-July 10
  • PSN:bobofango86
  • Kai:Mr_Bobo
  • LocationAfghanistan

Posted 24 July 2010 - 09:09 AM

It seems that in the English version, the hex lines have been jumbled up a bit. Here's an example from the Hunt Great Jaggi Quest:

00 00 00 00 00 00 00 00 00 00 00 00 0A 0B 00 00
01 03 00 C5 0C 00 00 01 03 01 64 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 01 00 0C 00 01 00 00 02 04 00 0C 00 01
00 00 10 00 00 0C 00 03 00 00 00 64 00 00 03 E8

Orange is the actual monster that's in the quest (this is the main value to change if you want to replace monsters)
Red is the monster's size
Green is the Main Quest goal
Cyan is Subquest A (In this case it is Wound Great Jaggi's Head)
Purple is Subquest B (In this case it is Stun Great Jaggi)

On an unrelated note, I was messing around changing a quest to Land Arena, and it seems that any monster I put in there just couldn't see/notice me. lol. It's great for screenshots. Now if only I can get Alatreon to go into the arena.

#8 User is offline   Zolin 

  • Khezu Whelp
  • Group: Members
  • Posts: 24
  • Joined: 22-July 10

Posted 25 July 2010 - 09:29 AM

hmm.. then how are we able to change a +rank quest into offline? and another thing, when we put +rank quest, those item in rewards, is it +rank too?

unrelated topic... my quest_00 got corrupted... anyone got original quest_00.bin file to share?

#9 User is offline   VioletKIRA 

  • Plessy Queen
  • Group: Master Scribe
  • Posts: 341
  • Joined: 16-July 10
  • LocationChristmas Island

Posted 25 July 2010 - 09:38 AM

@Bobo: Any noticeable changes between the JP and EN versions for other stuff?

Equips, items etc?

This post has been edited by VioletKIRA: 25 July 2010 - 09:38 AM

Big 3rd City Is A Lonely Place.

#10 User is offline   Bobofango 

  • Basarios
  • Group: Members
  • Posts: 416
  • Joined: 16-July 10
  • PSN:bobofango86
  • Kai:Mr_Bobo
  • LocationAfghanistan

Posted 25 July 2010 - 10:33 AM

Dantard created a pre-edited quest00.bin with most online quests converted to offline for the Japanese version. But since the hex coding seems to have shifted slightly (likely to make room for text translation), it won't work in the english version.

Someone also created an actual program for making custom quests that works with the English version..... before Minegarde was swallowed by a black hole. I know I have it somewhere. I'll see if I can find it.

EDIT:

Here it is: http://www.mediafire...t8xid2550s05ig2
The Monster Hunter Tri Quest Editor by Lee Langan

This post has been edited by Bobofango: 25 July 2010 - 10:44 AM


#11 User is offline   robin07 

  • Khezu Whelp
  • Group: Members
  • Posts: 3
  • Joined: 23-July 10

Posted 25 July 2010 - 02:36 PM

View PostBobofango, on 25 July 2010 - 10:33 AM, said:

Dantard created a pre-edited quest00.bin with most online quests converted to offline for the Japanese version. But since the hex coding seems to have shifted slightly (likely to make room for text translation), it won't work in the english version.

Someone also created an actual program for making custom quests that works with the English version..... before Minegarde was swallowed by a black hole. I know I have it somewhere. I'll see if I can find it.

EDIT:

Here it is: http://www.mediafire...t8xid2550s05ig2
The Monster Hunter Tri Quest Editor by Lee Langan

thank you very much for this ;)

#12 User is offline   Atlas 

  • Khezu Whelp
  • Group: Banned
  • Posts: 22
  • Joined: 27-July 10

Posted 27 July 2010 - 06:06 PM

sorry I haven't really had time to fully fix that thing up yet, which version is it that has been posted?

I revised alot of it's code in a second alpha, including inport and export of quests from archives.

#13 User is offline   Zolin 

  • Khezu Whelp
  • Group: Members
  • Posts: 24
  • Joined: 22-July 10

Posted 28 July 2010 - 03:01 AM

View PostAtlas, on 28 July 2010 - 02:06 AM, said:

sorry I haven't really had time to fully fix that thing up yet, which version is it that has been posted?

I revised alot of it's code in a second alpha, including inport and export of quests from archives.


is alpha 0.01.. i find a few things that is weird... i cant change the quest words like mating season - i cant't change from 'hunt a ian and los' to 'hunt 2 los'. Another is it seem like i cannot add another boss too..

And the rewards part, i dunno whether can we change it anot. But, when I tried doing duo +rank los custom quest 4 times, I broke his head, wings and tail, capture both for higher rewards, with great luck and sometime ultra lucky cat skill, all i got from the rewards part was talon and narrow.. if lucky, i got 1 or 2 carapace in rewards... i can't even get a scale+..

are we able to adjust the rewards section?

#14 User is offline   Atlas 

  • Khezu Whelp
  • Group: Banned
  • Posts: 22
  • Joined: 27-July 10

Posted 28 July 2010 - 07:05 AM

I didn't really get many testers the first time i put it up, alot of stuff was incomplete broken or just doing lolnothing.

Anyway I will try and fix up alpha 3 and post it, just give me a day or so:
Posted Image

Posted Image

This post has been edited by Atlas: 28 July 2010 - 07:08 AM


#15 User is offline   Zolin 

  • Khezu Whelp
  • Group: Members
  • Posts: 24
  • Joined: 22-July 10

Posted 28 July 2010 - 07:37 AM

Hi Atlas, I can help u do testing on the alpha 0.03 while u fixing up if u wan.

#16 User is offline   aznboy66666 

  • Khezu Whelp
  • Group: Members
  • Posts: 11
  • Joined: 10-August 10
  • Kai:aznboy666

Posted 12 August 2010 - 12:03 AM

Hi Atlas, I tested out and it works great!!

Currently I'm working on finding what Unknown values are.

and here is my request, could you make mhtq that can read JPN version?

#17 User is offline   kutkurider 

  • Khezu Whelp
  • Group: Members
  • Posts: 160
  • Joined: 19-July 10

Posted 12 August 2010 - 12:34 AM

Currently working on softmodding my wii. So like, I could test the program, but I couldn't test the output.

#18 User is offline   Atlas 

  • Khezu Whelp
  • Group: Banned
  • Posts: 22
  • Joined: 27-July 10

Posted 14 August 2010 - 06:39 PM

http://forums.minega...editor-alpha-3/

this is it's own topic posted here btw.

There was a jpn version but i was having trouble with shift-jis support which is no existant in delphi and din't want to have to deal with it. I suppose i could split off another version of the current code but disable the text editing abilities so i don't have to deal with it.

#19 User is offline   francisngl 

  • Khezu Whelp
  • Group: Members
  • Posts: 1
  • Joined: 15-November 10

Posted 16 November 2010 - 04:50 AM

Hi Dear Atlas:

I am a Monster Hunter Fans from China,In China Millions fans are wait for your software which could support JPN version & Unicode Charactors (cause some Chinese have changed JPN text to CHN text) So Would you like Add JPN Custom Quest function next version? Plz~~~~~~~~

Thank you very much!

#20 User is offline   Atlas 

  • Khezu Whelp
  • Group: Banned
  • Posts: 22
  • Joined: 27-July 10

Posted 23 November 2010 - 10:00 PM

the game doesn't use Unicode, it uses shift-jis, does shift-jis even support Chinese character?

and lol isn't it normally the chinese who make these quest editors?

This post has been edited by Atlas: 23 November 2010 - 10:02 PM


Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users