No Enemy for FF4 After Years Pal

Started by Patedj, May 13, 2011, 04:01:17 PM

Previous topic - Next topic

Patedj

#15
I decided to simply nop the callers bl and what happens is the avatar disappears. I've got the graphics' address.

edit:
This is the map's function
[spoiler]80069200:  9421FF50   stwu   r1,-176(r1)
|  |  |  |  |  |  80069204:  7C0802A6   mflr   r0
|  |  |  |  |  |  80069208:  900100B4   stw   r0,180(r1)
|  |  |  |  |  |  8006920C:  BF210094   stmw   r25,148(r1)
|  |  |  |  |  |  80069210:  7C7F1B78   mr   r31,r3
|  |  |  |  |  |  80069214:  48001FB1   bl   0x8006b1c4
|  |  |  |  |  |  80069218:  801F0E80   lwz   r0,3712(r31)
|  |  |  |  |  |  8006921C:  2C000001   cmpwi   r0,1
|  |  |  |  |  |  80069220:  41820010   beq-   0x80069230
|  |  |  |  |  |  80069224:  2C000003   cmpwi   r0,3
|  |  |  |  |  |  80069228:  41820014   beq-   0x8006923c
|  |  |  |  |  |  8006922C:  4800012C   b   0x80069358
|  |  |  |  |  |  80069230:  7FE3FB78   mr   r3,r31
|  |  |  |  |  |  80069234:  4800A6E1   bl   0x80073914 nopping this will stop the map from staying on. When the avatar comes out of a town/chocobo's home the map will appear but not stay on (turns black after a sec).[/spoiler]
You can pm me, I've got time for your troubles.

Patedj

#16
[spoiler]80069200:  9421FF50   stwu   r1,-176(r1)
|  |  |  |  |  |  80069204:  7C0802A6   mflr   r0
|  |  |  |  |  |  80069208:  900100B4   stw   r0,180(r1)
|  |  |  |  |  |  8006920C:  BF210094   stmw   r25,148(r1)
|  |  |  |  |  |  80069210:  7C7F1B78   mr   r31,r3
|  |  |  |  |  |  80069214:  48001FB1   bl   0x8006b1c4
|  |  |  |  |  |  80069218:  801F0E80   lwz   r0,3712(r31)
|  |  |  |  |  |  8006921C:  2C000001   cmpwi   r0,1
|  |  |  |  |  |  80069220:  41820010   beq-   0x80069230
|  |  |  |  |  |  80069224:  2C000003   cmpwi   r0,3
|  |  |  |  |  |  80069228:  41820014   beq-   0x8006923c
|  |  |  |  |  |  8006922C:  4800012C   b   0x80069358
|  |  |  |  |  |  80069230:  7FE3FB78   mr   r3,r31
|  |  |  |  |  |  80069234:  4800A6E1   bl   0x80073914[/spoiler]

80069214:  48001FB1   bl   0x8006b1c4 nopping this will stop directions (but still allow the map to appear).

80069234:  4800A6E1   bl   0x80073914 nopping this will stop the map from appearing and any directions to be noticed.

Further on

|  |  |  |  |  |  |  |  80067154:  4BFAD959   bl   0x80014aac nopping this will stop the character from looking right.

80073B8C:  4BFA1E2D   bl   0x800159b8 nopping this will stop full screening the game

80073B90:  4BFA579D   bl   0x8001932c nopping this will default screening


|  |  |  |  |  |  80069238:  48000120   b   0x80069358 nopping this will execute "sight" (this will automatically take you into the menu section and show you the whole map) neat! I'll do a button activation for this!
You can pm me, I've got time for your troubles.

Patedj

Sight(map) On/Off
281FB3DA 00000C00
04069238 60000000
CC000000 00000000
04069238 48000120
E0000000 80008000
It'll bring you to the menu. Exit the menu and you'll see the map instead of your avatar.
Button condition can be changed to whatever you like. It's now set as a+b.
You can pm me, I've got time for your troubles.

Patedj

#18
I decided that my search wasn't good enough so I did another search. This time when I poke it it equips the chocobo and the song and all (after I re-enter the map) Yay!.

Code to have chocobo on maps. [spoiler]I'm still working on having no monsters in dungeons.[/spoiler]
281FB3DA 00000C00
0406CC24 38000001
CC000000 00000000
0406CC24 38000000
E0000000 80008000

v2. Works better. Every time you exit a town/dungeon/etc. you will have chocobo equipped.
281FB3DA 00000C00
045442A8 00000001
CC000000 00000000
045442A8 00000000
E0000000 80008000

these codes don't seem to work all the time

I'm starting to think that this is not the chocobo's address again and more the map function.
You can pm me, I've got time for your troubles.

Patedj

here's all frames
You can pm me, I've got time for your troubles.

Patedj

I made a log of the initial break (start to end function) but unfortunately, it loops on one of the addresses for ever. I left it run all night and it repeated the line over and over....
You can pm me, I've got time for your troubles.

Patedj

#21
Woh!! I don't know how I did it but there's a way to have the flying ship equipped after exiting a town.

either this
8006BDBC:  2C000006   cmpwi   r0,6
8006BDC0:  41820038   beq-   0x8006bdf8

or this


8006BE50:  546307FF   rlwinm.   r3,r3,0,31,31
8006BE54:  41820324   beq-   0x8006c178
it's this one.

Flying ship at exit
281FB3DA 00000C00
0406BDAC 38000001
0406BDB8 38000006
0406BE54 60000000
CC000000 00000000
0406BDAC 38000000
0406BDB8 38000000
0406BE54 41820324
E0000000 80008000
Do not re-embark
You can pm me, I've got time for your troubles.

Patedj

#22
I was able to do a log from the read to the end of the function, with and without the chocobo equipped.
You can pm me, I've got time for your troubles.

Patedj

8006C224:  90760F08   stw   r3,3848(r22)   r3 = 000014B5   r22 = 805428E0   [805437E8] = 000014B5
vs
8006C224:  90760F08   stw   r3,3848(r22)   r3 = 000003E8   r22 = 805428E0   [805437E8] = 000014B5
Allows for the avatar to enter towns and such. No effect on the chocobo.
You can pm me, I've got time for your troubles.

Patedj

beginning logs for the blr, it crashed for both.
You can pm me, I've got time for your troubles.

Patedj

#25
8006B628:  807F0F00   lwz   r3,3840(r31)   r3 = 804D8060   r31 = 805428E0   [805437E0] = 00000004
or this one. They offer different music.
8006B68C:  801F0E90   lwz   r0,3728(r31)   r0 = 00000000   r31 = 805428E0   [80543770] = 00000000
This is the music selector. Let's test it out.

I'm thinking of doing this to it but it crashes...

[spoiler]stwu r1,-16(r1)
stw r14,8(r1)
mr r17,r3
lis r15, 0x801F
ori r15,r15,0xB3DA
li r16, 1024
cmpw r15,r16
beq COMPARE
bl END

COMPARE:
cmpw r17,3
bgt ZERO
b ADD

ZERO:
li r17,0
b END

ADD:
li r14,1
add r17,r17,r14
mr r3,r17

END:
lwz r14,8(r1)
addi r1,r1,16
[/spoiler]

I've changed it to this but still no luck
[spoiler]stwu r1,-16(r1)
stw r14,8(r1)
lwz r17,0(r0)
lis r15,-32737
ori r15,r15,46042
li r16,1024
cmpw r15,r16
beq- 0x08
bl 0x24
cmpw r17,r0
bgt- 0x08
b 0x0C
li r17,0
b 0x10
li r14,1
add r17,r17,r14
lwz r0,0(r17)
lwz r14,8(r1)
addi r1,r1,16
[/spoiler]

I really am getting down on not being able to do a music roller...
anyways.
you can simply choose your favorite song and stick to it if you'd like

0406B628 38600004
0=normal
1=Flying ship
2=Whale
3=Flying ship
4=chocobo
+=same things again

0406B68C 3800000x
0=normal map exploration
1=moon walk
2=underground walk
3=ceremonial
+=ceremonial
You can pm me, I've got time for your troubles.

Patedj

#26
This stops the music from changing between towns/map/fights no it doesn't..
0406B688 60000000
You can pm me, I've got time for your troubles.

Patedj

#27
walk on top of grass
C2076CD8 00000002
38800000 90830078
60000000 00000000
You can pm me, I've got time for your troubles.

James0x57

You need a code to walk on grass? o.O


Patedj

Your tripping! [spoiler]instead of only seeing the head walk when you enter a forest you see the whole body as if it was walking on soil. So it looks like you are walking on grass[/spoiler]
You can pm me, I've got time for your troubles.