Kitty Corp Meow Mix Forums

Super Smash Bros. Brawl Hacking => General Hacking Discussion => Topic started by: ForOhFor Error on August 21, 2011, 02:34:29 PM



Title: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on August 21, 2011, 02:34:29 PM
(I felt On topic was the place to put this, as it is video game hacking. If not, however, feel free to have a Mod move it.)

I've familiarized myself with Okami's file system and what models are where, so I decided I'd try to hack it directly. As a test, I set myself the task of making Oki playable over Ammy...

http://www.youtube.com/watch?v=jmY9JwjyYfI

In this video, you can see the results of this test. There are a few major bugs, listed here:

-The body texture animates -FIXED
-The body's model doesn't animate - Gonna be much tougher than I expected..
-Oki's bow is always there -FIXED


I'll post a tutorial on how to replace the files soon enough...


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: DSX8 on August 21, 2011, 02:59:34 PM
playing as 1 of the canine dog warriors... i had a feeling that u'd be able to do this xD


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on August 21, 2011, 03:06:06 PM
I would, I've just misplaced their files. Of course, the karmic transformers basically allow you to assume their forms, so I thought Oki would be a nice test.

Fixed the animated textures glitch, btw.
And got rid of the bow. 2/3 major bugs squashed.

Just need to get Oki to animate correctly...


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: DSX8 on August 21, 2011, 03:26:46 PM
hmm... im not sure how u can do that


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on August 21, 2011, 03:59:38 PM
I know why, I think. I now know that okami doesn't use CHR0s, but something else. Oki has one bone that changes the node id of everything below it by 1 - and I suspect that the models are animated by node id and not bone name.

So, I know what to change, it'll just take a while...


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: DSX8 on August 21, 2011, 04:20:27 PM
I know why, I think. I now know that okami doesn't use CHR0s, but something else. Oki has one bone that changes the node id of everything below it by 1 - and I suspect that the models are animated by node id and not bone name.

So, I know what to change, it'll just take a while...
hmm i see... interesting O.o


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on August 21, 2011, 09:33:25 PM
I think I meant to say bone index.

But that doesn't make sense, does it? Then the model would be strangely distorted by bones moving to the position of the other index value...

It may well be the node id that controls animation - if so, there's nothing I can do until Blackjack finishes the model rebuilder, due to this piece of info:
It's starting to look like if the node id is changed, all of the primitives in every objects need to be updated. I think that I'll have to finish writing the objects before the model rebuilder can work without problems...
I may find a canine warrior and see if I can get more luck with it..


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: DSX8 on August 21, 2011, 09:41:36 PM
I think I meant to say bone index.

But that doesn't make sense, does it? Then the model would be strangely distorted by bones moving to the position of the other index value...

It may well be the node id that controls animation - if so, there's nothing I can do until Blackjack finishes the model rebuilder, due to this piece of info:I may find a canine warrior and see if I can get more luck with it..
alright, that is fine with me.


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on August 21, 2011, 10:26:33 PM
I'm just glad it's gone so well. Lots of failed attempts, but no actual crashes or freezes.


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: DSX8 on August 21, 2011, 10:28:12 PM
I'm just glad it's gone so well. Lots of failed attempts, but no actual crashes or freezes.
yeah, im surprised ur able to replace amaterasu with Oki


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on August 22, 2011, 08:49:44 AM
Actually, one last look at Oki.

I'm convinced: His tail is the key. Why would it animate, and not the rest of the body?

Looks like it IS bone index after all... SO when the rebuilder is done, I have to change that...


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: DSX8 on August 22, 2011, 10:50:54 AM
Actually, one last look at Oki.

I'm convinced: His tail is the key. Why would it animate, and not the rest of the body?

Looks like it IS bone index after all... SO when the rebuilder is done, I have to change that...
or u can try renaming the bones to wat Ammy has


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: mnsg on August 22, 2011, 03:07:07 PM
Interesting stuff there.  Model swaps, however, are often tough to pull off.


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on August 23, 2011, 09:19:01 PM
Well, in this case, only a single bone is different from the model I'm replacing. Once the rebuilder is done, I can remove that bone and it should fix that.


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: DSX8 on August 23, 2011, 09:45:02 PM
Well, in this case, only a single bone is different from the model I'm replacing. Once the rebuilder is done, I can remove that bone and it should fix that.
ah i see... not bad, not bad :P


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on August 23, 2011, 09:46:12 PM
Trying something. I found out how to hex bone index...


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ShadowSnake on August 23, 2011, 10:00:17 PM
nice job FOFE, i had a feeling youd figure out how to mod Okami someday.

cant wait for that tutorial. Playing as Oki would be epic.


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on August 25, 2011, 09:04:49 PM
Well, that failed. It didn't crash, but yeilded the same result as previous tests. However, during an idle animation in which Ammy does a flip, Oki's model animates flawlessly, freezing the model in the end position of the animation.

What's more, Oki's tail still animates quite perfectly...

So here's a video of the strange working animation:
http://www.youtube.com/watch?v=V2s5i7Iab9M


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on September 03, 2011, 04:09:05 PM
Bump, with an update:

The problem ISN'T the bones, but the animations.
I know because the animation in the video ISN'T AMMY'S idle animation!

clearly the problem, then, is in the header of the dat, and not either brres...

The dat header for Ammy is this monster:
00000000 | 00 00 00 81 00 00 04 40 00 00 0F 80 00 00 65 20 - ......@...€..e
00000010 | 00 00 99 A0 00 00 C5 80 00 00 F7 E0 00 01 15 40 - ..™ ..Å€..÷à...@
00000020 | 00 01 27 60 00 01 57 20 00 01 68 E0 00 01 78 80 - ..'`..W ..hà..x€
00000030 | 00 01 87 A0 00 01 A2 20 00 01 B8 40 00 01 CC 40 - ..‡ ..¢ ..¸@..Ì@
00000040 | 00 01 DF C0 00 01 F3 A0 00 02 06 E0 00 02 1A 80 - ..ßÀ..ó ...à...€
00000050 | 00 02 35 20 00 02 46 80 00 02 55 80 00 02 6A 00 - ..5 ..F€..U€..j.
00000060 | 00 02 7E C0 00 02 8C C0 00 02 A2 A0 00 02 B5 E0 - ..~À..ŒÀ..¢ ..µà
00000070 | 00 02 C2 C0 00 02 D7 20 00 02 E8 C0 00 02 F6 60 - ..ÂÀ..× ..èÀ..ö`
00000080 | 00 03 07 60 00 03 16 20 00 03 24 00 00 03 31 00 - ...`... ..$...1.
00000090 | 00 03 43 60 00 03 5D A0 00 03 70 00 00 03 80 40 - ..C`..] ..p...€@
000000A0 | 00 03 9B A0 00 03 AD 60 00 03 BE E0 00 03 CD 80 - ..› ..­`..¾à..Í€
000000B0 | 00 03 DB 20 00 03 EC A0 00 04 09 40 00 04 29 C0 - ..Û ..ì ...@..)À
000000C0 | 00 04 3C E0 00 04 51 00 00 04 64 40 00 04 76 E0 - ..<à..Q...d@..và
000000D0 | 00 04 93 40 00 04 A7 80 00 04 B2 A0 00 04 C2 00 - ..“@..§€..² ..Â.
000000E0 | 00 04 C9 60 00 04 DE C0 00 04 F5 C0 00 05 01 00 - ..É`..ÞÀ..õÀ....
000000F0 | 00 05 16 40 00 05 2C A0 00 05 3A 60 00 05 45 20 - ...@.., ..:`..E
00000100 | 00 05 55 80 00 05 65 A0 00 05 74 40 00 05 A4 80 - ..U€..e ..t@..¤€
00000110 | 00 05 D8 80 00 05 F3 C0 00 06 05 60 00 06 18 A0 - ..Ø€..óÀ...`...
00000120 | 00 06 24 E0 00 06 65 C0 00 06 8C 00 00 06 A7 40 - ..$à..eÀ..Œ...§@
00000130 | 00 06 C5 A0 00 06 DE C0 00 06 F3 80 00 07 05 C0 - ..Å ..ÞÀ..ó€...À
00000140 | 00 07 21 40 00 07 34 80 00 07 4F A0 00 07 69 A0 - ..!@..4€..O ..i
00000150 | 00 07 7C 40 00 07 8F 60 00 07 9E E0 00 07 B3 E0 - ..|@..`..žà..³à
00000160 | 00 07 C9 40 00 07 D7 20 00 07 EB 60 00 07 EF E0 - ..É@..× ..ë`..ïà
00000170 | 00 08 00 A0 00 08 1F 40 00 08 37 E0 00 08 54 00 - ... ..@..7à..T.
00000180 | 00 08 75 00 00 08 8A 20 00 08 9F A0 00 08 AD C0 - ..u...Š ..Ÿ ..­À
00000190 | 00 08 C4 E0 00 08 E4 E0 00 08 E5 20 00 08 E5 60 - ..Äà..äà..å ..å`
000001A0 | 00 08 E5 A0 00 08 E5 E0 00 08 E6 20 00 08 E6 60 - ..å ..åà..æ ..æ`
000001B0 | 00 08 E6 A0 00 08 E6 E0 00 08 E7 20 00 08 E7 60 - ..æ ..æà..ç ..ç`
000001C0 | 00 08 E7 A0 00 08 E7 E0 00 08 E8 20 00 08 E8 60 - ..ç ..çà..è ..è`
000001D0 | 00 08 E8 A0 00 08 E8 E0 00 08 E9 20 00 08 E9 60 - ..è ..èà..é ..é`
000001E0 | 00 08 E9 A0 00 08 EA 00 00 08 EA 60 00 08 EA A0 - ..é ..ê...ê`..ê
000001F0 | 00 08 EA E0 00 08 EB 20 00 08 EB 60 00 08 EB A0 - ..êà..ë ..ë`..ë
00000200 | 00 08 EC 20 00 08 F2 80 4D 44 00 00 42 52 54 00 - ..ì ..ò€MD..BRT.
00000210 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000220 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000230 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000240 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000250 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000260 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000270 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000280 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000290 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
000002A0 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
000002B0 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
000002C0 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
000002D0 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
000002E0 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
000002F0 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000300 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000310 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000320 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000330 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000340 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000350 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000360 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000370 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000380 | 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - MOT.MOT.MOT.MOT.
00000390 | 4D 4F 54 00 4D 4F 54 00 53 45 51 00 53 45 51 00 - MOT.MOT.SEQ.SEQ.
000003A0 | 53 45 51 00 53 45 51 00 53 45 51 00 53 45 51 00 - SEQ.SEQ.SEQ.SEQ.
000003B0 | 53 45 51 00 53 45 51 00 53 45 51 00 53 45 51 00 - SEQ.SEQ.SEQ.SEQ.
000003C0 | 53 45 51 00 53 45 51 00 53 45 51 00 53 45 51 00 - SEQ.SEQ.SEQ.SEQ.
000003D0 | 53 45 51 00 53 45 51 00 53 45 51 00 53 45 51 00 - SEQ.SEQ.SEQ.SEQ.
000003E0 | 53 45 51 00 53 45 51 00 53 45 51 00 53 45 51 00 - SEQ.SEQ.SEQ.SEQ.
000003F0 | 53 45 51 00 53 45 51 00 53 45 51 00 53 45 51 00 - SEQ.SEQ.SEQ.SEQ.
00000400 | 43 41 4D 00 43 41 4D 00 42 52 53 00 00 00 00 00 - CAM.CAM.BRS.....
00000410 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - ................
00000420 | 00 00 00 00 00 00 00 00 4D 44 00 00 70 6C 30 30 - ........MD..pl00
00000430 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - ................
00000440 | 73 63 72 00 00 00 00 00 00 04 00 00 00 00 00 00 - scr.............
00000450 | 00 00 0A 20 00 00 0A 60 00 00 0A A0 00 00 0A E0 - ... ...`... ...à
00000460 | 6D 64 62 00 00 00 00 20 00 26 00 00 00 00 00 00 - mdb.... .&......
00000470 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - ................
00000480 | 80 00 00 00 41 55 AA D6 00 00 00 00 FF FF FF FF - €...AUªÖ....ÿÿÿÿ
00000490 | 00 00 00 00 80 00 00 00 37 49 53 9C 00 00 00 00 - ....€...7ISœ....
000004A0 | 00 00 00 00 BE C3 9A E1 C0 33 75 A3 00 00 00 01 - ....¾ÃšáÀ3u£....
000004B0 | 80 00 00 00 BE B7 61 67 BF FC 44 C8 00 00 00 02 - €...¾·ag¿üDÈ....
000004C0 | 00 00 00 00 35 86 37 BD C0 03 30 E0 00 00 00 03 - ....5†7½À.0à....
000004D0 | 00 00 00 00 BF 09 44 FE 3E F2 C7 DA 00 00 00 00 - ....¿.Dþ>òÇÚ....
000004E0 | 00 00 00 00 B5 86 37 BD 40 1C 37 04 00 00 00 05 - ....µ†7½@.7.....
000004F0 | 80 00 00 00 B5 86 37 BD 3F F7 5F 24 00 00 00 06 - €...µ†7½?÷_$....
00000500 | BF E2 7A 63 BF 04 D1 85 3E F0 7C E9 00 00 00 00 - ¿âzc¿.Ñ…>ð|é....
00000510 | BE 51 11 F1 C0 0A B6 E1 40 05 31 F0 00 00 00 08 - ¾Q.ñÀ.¶á@.1ð....
00000520 | 00 00 00 00 C0 2E DF 3B B7 DA 1A 93 00 00 00 09 - ....À.ß;·Ú.“....
00000530 | 00 00 00 00 C0 8F 0F 73 38 6A E1 8B 00 00 00 0A - ....À.s8já‹....
00000540 | 80 00 00 00 C0 07 4F EC B9 08 50 9C 00 00 00 0B - €...À.Oì¹.Pœ....
00000550 | 3F E2 7D 2C BF 04 D1 85 3E F0 7C C8 00 00 00 00 - ?â},¿.Ñ…>ð|È....
00000560 | 3E 51 1D 7A C0 0A B6 E1 40 05 31 F0 00 00 00 0D - >Q.zÀ.¶á@.1ð....
00000570 | 38 2B F7 6A C0 2E DF 3B B7 D1 B7 17 00 00 00 0E - 8+÷jÀ.ß;·Ñ·.....
00000580 | B8 2B F7 6A C0 8F 0F 73 38 66 AF CD 00 00 00 0F - ¸+÷jÀ.s8f¯Í....
00000590 | 80 00 00 00 C0 07 4F EC B9 08 50 9C 00 00 00 10 - €...À.Oì¹.Pœ....
000005A0 | C0 02 8F 5C BF 80 46 4A C0 28 B4 85 00 00 00 04 - À.\¿€FJÀ(´…....
000005B0 | 00 00 00 00 C0 63 11 23 B6 49 53 9C 00 00 00 12 - ....Àc.#¶ISœ....
000005C0 | 80 00 00 00 C0 63 57 7E 38 38 8C A4 00 00 00 13 - €...ÀcW~88Œ¤....
000005D0 | B5 86 37 BD C0 33 9B FA B7 27 C5 AC 00 00 00 14 - µ†7½À3›ú·'Ŭ....
000005E0 | 40 02 8F 5C BF 80 46 41 C0 28 B4 85 00 00 00 04 - @.\¿€FAÀ(´…....
000005F0 | 00 00 00 00 C0 63 11 23 B6 49 53 9C 00 00 00 16 - ....Àc.#¶ISœ....
00000600 | 80 00 00 00 C0 63 57 7E 38 38 8C A4 00 00 00 17 - €...ÀcW~88Œ¤....
00000610 | B5 86 37 BD C0 33 9B FA B7 27 C5 AC 00 00 00 18 - µ†7½À3›ú·'Ŭ....
00000620 | 00 00 00 00 3F 29 DA F0 C0 61 04 4B 00 00 00 04 - ....?)ÚðÀa.K....
00000630 | 80 00 00 00 C0 4A 24 96 BF BC 85 88 00 00 00 1A - €...ÀJ$–¿¼…ˆ....
00000640 | 00 00 00 00 C0 5F 0A 3D 80 00 00 00 00 00 00 1B - ....À_.=€.......
00000650 | 00 00 00 00 BE CF BE 55 3F 61 61 3D 00 00 00 07 - ....¾Ï¾U?aa=....
00000660 | 00 00 00 00 40 1F 9F 56 00 00 00 00 00 00 00 00 - ....@ŸV........
00000670 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1E - ................
00000680 | BF 80 62 4E 3F D3 12 6F 3F 06 E9 79 00 00 00 07 - ¿€bN?Ó.o?.éy....
00000690 | 3F 80 62 4E 3F D3 12 6F 3F 06 E9 79 00 00 00 07 - ?€bN?Ó.o?.éy....
000006A0 | 80 00 00 00 BE DF 5B 3E 3E CF A3 DB 00 00 00 1D - €..

And Oki's is this one here:
00000000 | 00 00 00 0F 00 00 00 A0 00 00 76 C0 00 00 85 20 - ....... ..vÀ..…
00000010 | 00 00 8D C0 00 00 C4 20 00 00 E0 80 00 00 FB A0 - ..À..Ä ..à€..û
00000020 | 00 01 17 40 00 01 21 00 00 01 21 40 00 01 21 80 - ...@..!...!@..!€
00000030 | 00 01 21 C0 00 01 22 00 00 01 22 40 00 01 2C 40 - ..!À.."..."@..,@
00000040 | 42 52 54 00 4D 44 00 00 49 43 4F 00 53 45 53 00 - BRT.MD..ICO.SES.
00000050 | 53 45 53 00 4D 4F 54 00 4D 4F 54 00 4D 4F 54 00 - SES.MOT.MOT.MOT.
00000060 | 53 45 51 00 53 45 51 00 53 45 51 00 53 45 51 00 - SEQ.SEQ.SEQ.SEQ.
00000070 | 53 45 51 00 45 46 46 00 42 52 53 00 00 00 00 00 - SEQ.EFF.BRS.....
00000080 | 00 00 00 00 00 00 00 02 42 52 54 00 65 73 34 39 - ........BRT.es49
00000090 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - ................

I'd love some help figuring them out...

Edit: And here are 3 unused models I've found:
http://www.youtube.com/watch?v=WvAKDU9f6vc


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: songeflemy on September 05, 2011, 06:39:12 PM
OMG this is so great, I was praying someone would do this, let's hope you can get this done.


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: Naruto200Man on September 20, 2011, 07:37:05 PM
Could this tutorial you plan on making also work on other wii games? *has fun ideas for Con 3 Revolution*


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on September 20, 2011, 08:55:28 PM
No.


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: Naruto200Man on September 20, 2011, 09:09:25 PM
Awww *sadface*

Hehe what about getting models from other wii games into okami O_o

Tsunade over sakuya would be funny as [censored] xD


Title: Re: Hacking Okami - Play as Oki (Alpha version) video
Post by: ForOhFor Error on September 21, 2011, 04:27:22 AM
No.
I can't even get models from Okami Itself to work fully >.>