fst....uh..fix code

Started by Stuff, September 02, 2011, 04:31:39 PM

Previous topic - Next topic

Stuff

That's what I was gonna call it...if it worked >.>

So when using the mh3 quest editor, you can give quests an unused id so that it shows on the list without replacing an existing one. The problem is that the game responds to the new quest00.bin size by displaying an empty quest list. It is somewhat amusing but dam. So some one tried messing with the .dol and in it, he found something like this:

8058AF90     00000000     00000000      0 5 / q      u e s t
8058AFA0      0 0 . b      i n . .      0 5 / q      u e s t
8058AFB0      0 1 . b      i n . .      0 5 / q      u e s t
8058AFC0      0 3 . b      i n . .     *0003A540*     8058AF98
8058AFD0     00064180     8058AFA8     00000000     807910F8

That's actually a copy cells from my mem1, but it's very similar to what he saw, if not the same. He tells me 0x03A540 is the size of quest00.bin. Stuff happens, and then him changing that to match his quest00.bin size didn't fix the problem. So he tells me to look for the size in memory, maybe we can find something, and I found it 6 times.

8058AFC8
817E08C8
817E08D4
817E08E0
817E08EC
817E08F8

The first one looks like the .dol or whatever, and then the next 5....well they seem to be for each language. Messing with the first one, wipes my whole quest list, and the second one seems to be for english. Change the size there to a smaller size made ceadeus disappear, but not in spanish. I didn't bother trying to see if any other one worked for spanish.

So that was a nice discovery. Maybe changing it to a bigger size would display the rest of the quests in the bigger quest00.bin. The dude used some 04 codes for these addresses, some combination of them, only one at a time, etc, and he eventually made it work with sneek. Well, it displayed 1 more quest. :/ It would've been nice though because we were getting somewhere, but I couldn't get any combination of the codes to work with usbloader or riivolution.

I was thinking about how the quests might be cached if there's more than the game is designed to work with, since there's the entire quest list in mem2:

Quote from: Skiller on July 24, 2011, 05:55:37 PMMission Offsets
90208DE0 <-- Random Value

0000 - 0010 = Name
002C - 004C = Main Objective
0088 - ??/??/Quest Rank/Floor
008C =
00DC = Sucess Conditions
013A = Quest timer
013C = Start of Fail Conditions
0310 = Boss order 1/BO2/BO3/Quest Flags
0314 = Monster/Boss ID/??/Enabled <- Monster 1
0318 = Max/Min/Size/Level  <- Monster 1
031C = Monster/Boss ID/??/Enabled <- Monster 2
0320 = Max/Min/Size/Level  <- Monster 2
0324 = Monster/Boss ID/??/Enabled <- Monster 3
0328 = Max/Min/Size/Level  <- Monster 3
0330 = ??/Objective 3/OB2/OB1  <-- Main Objective
0334 = ??/Monster/??/Amount  <-- Main Objective
0338 = ??/Objective 3/OB2/OB1  <-- Objective A
033C = ??/Monster/??/Amount  <-- Objective A
0340 = ??/Objective 3/OB2/OB1  <-- Objective B
0344 = ??/Monster/??/Amount  <-- Objective B
0348 = Contract
034C = Objective 1 Money
0350 = Objective 2 money
0354 = Objective 3 Money
0358 = Death Reduction
035C = ??/??/??/HR Points
036C = ??/Resources/??/??
0370 = Supply Set Number
0378 = ??/??/??/Starting Position
0380 = General Enemy Level
039C = Item/Amount/Ratio 1 <-Main
03A0 = Item/Amount/Ratio 2
03A4 = Item/Amount/Ratio 3
03A8 = Item/Amount/Ratio 4
03AC = Item/Amount/Ratio 5
03B0 = Item/Amount/Ratio 6
03B4 = Item/Amount/Ratio 7
03B8 = Item/Amount/Ratio 8
03BC = Item/Amount/Ratio 9
03C0 = Item/Amount/Ratio 10
03C4 = Item/Amount/Ratio 11 <-Main
03C8 = Item/Amount/Ratio 1 <-Aditional Rewards
03CC = Item/Amount/Ratio 2
03D0 = Item/Amount/Ratio 3
03D4 = Item/Amount/Ratio 4
03D8 = Item/Amount/Ratio 5
03DC = Item/Amount/Ratio 6
03E0 = Item/Amount/Ratio 7
03E4 = Item/Amount/Ratio 8
03E8 = Item/Amount/Ratio 9
03EC = Item/Amount/Ratio 10
03F0 = Item/Amount/Ratio 11 <-Aditional Rewards
That's just a small slice of the area. If you scroll up or down, you can see that's pretty much quest00.bin, but it's only there when you're offline. When you go online, you can see quest01.bin cached after the last quest in quest00.bin. After >.>. It doesn't reuse the space  quest00 was using. So I believe that for offline quests, if we could just make it display the rest of the quests, you have the space for quest00 and quest01 and possible quest03 combined to cache quests. For online it's a different story. Maybe you can push it to the top somehow. idk. Anyway, we kind of gave up at some point.

But maybe someone knows better of what can be done. I think someone might've ran into a similar issue with brawl+. But idk. This would've been awesome for custom quest fans.
.make Stuff happen.
Dropbox. If you don't have one, get it NOW! +250MB free if you follow my link :p.

Mod code Generator ~50% complete but very usable:
http://dl.dropbox.com/u/24514984/modcodes/modcodes.htm