Registrarse

[ASM] FR | Gender based bag palette

The_Learner

Usuario de oro
Hello everyone, I am The_Learner

I as a Rom-hacker always hated the limitation while inserting new bags.
You could only use only one pal for both male and female bag.

So I made the ASM routine to overcome this problem.
and to notify you guys this is for US FR rom.

Código:
/* at 108340 00 48 00 47 (insert loc of this routine +1) */

.text
.align 2
.thumb

main:
    ldr r0, =(0x0300500C)
    ldr r0, [r0]
    ldrb r0, [r0, #0x8]
    cmp r0, #0x0
    bne female
    ldr r0, male_pal
    b pal_load_maybe

female:
    ldr r0, female_pal
    b pal_load_maybe

pal_load_maybe:
    ldr r1, handling_something
    bl call_via_r1
    ldr r1, return_loc
    bx r1    

call_via_r1:
    bx r1

.align 2 
male_pal:        .word 0x08XXXXXX
female_pal:        .word 0x08YYYYYY
handling_something:    .word 0x0800ec28|1
return_loc:        .word 0x08108352|1

Código:
XXXXXX is the pointer to AA AA AA 08 64 00
YYYYYY is the pointer to BB BB BB 08 64 00

where,
AA AA AA 08 is pointer to compressed male bag pallete
BB BB BB 08 is pointer to compressed female bag pallete

here in this image I inserted the routine at 800000
my XXXXXX is 800030
YYYYYY is 800040

The output of the code



Maybe ignore the wiered palette, I inserted them just to test.
But the routine works amazingly :D

Hola a todos, soy The_Learner

Como un Rom-Hacker siempre he odiado las limitaciones a la hora de insertar nuevas mochilas.
Solo podías utilizar una paleta para ambos el chico y la chica.

Asi que hice una Rutina ASM para superar este problema
y notificar que esto es para una rom FR USA.

Código:
/* at 108340 00 48 00 47 (insert loc of this routine +1) */

.text
.align 2
.thumb

main:
    ldr r0, =(0x0300500C)
    ldr r0, [r0]
    ldrb r0, [r0, #0x8]
    cmp r0, #0x0
    bne female
    ldr r0, male_pal
    b pal_load_maybe

female:
    ldr r0, female_pal
    b pal_load_maybe

pal_load_maybe:
    ldr r1, handling_something
    bl call_via_r1
    ldr r1, return_loc
    bx r1    

call_via_r1:
    bx r1

.align 2 
male_pal:        .word 0x08XXXXXX
female_pal:        .word 0x08YYYYYY
handling_something:    .word 0x0800ec28|1
return_loc:        .word 0x08108352|1

Código:
XXXXXX is the pointer to AA AA AA 08 64 00
YYYYYY es el puntero a  BB BB BB 08 64 00

where,
AA AA AA 08 es el puntero comprimido a la mochila del chico [B](Paleta)[/B]
BB BB BB 08 es el puntero comprimido a la mochila de la chica [B](Paleta)[/B]

Esta es la imagen donde yo he insertado la rutina en 800000
mi XXXXXX es 800030
YYYYYY es 800040

Este es el resultado del codigo



Ignorad la paleta tan extraña, la he insertado solo para hacer una prueba.
Pero la rutina funciona asombrosamente :D
 
Última edición:

KanaCn

由紀カクタス
Re: Gender based bag palette

This Tutorial is perfectly the tutorial i was looking for!
It worked fine doing it on a Clean Fire Red Rom. I wish you keep giving all of us more of your Super-Tutorials :)

See Ya! ;D
 

Dark Aurora

Apolo Kaktus :v
Respuesta: Gender based bag palette

Hello, first of all, wow, and then accept my congratulations for this tutorial that is quite interesting, but the next one I recommend you to translate it into Spanish because there are people who do not know English.
 

The_Learner

Usuario de oro
Re: Respuesta: Gender based bag palette

Yuki❄;390771 dijo:
This Tutorial is perfectly the tutorial i was looking for!
It worked fine doing it on a Clean Fire Red Rom. I wish you keep giving all of us more of your Super-Tutorials :)
See Ya! ;D
It will work good with worked(edited) roms as well, and I am happy you liked it.

You can make a patch of that
This is just a single routine, also everyone will need to insert the palette themselves so patch is not a proper way ;)

Hello, first of all, wow, and then accept my congratulations for this tutorial that is quite interesting, but the next one I recommend you to translate it into Spanish because there are people who do not know English.
Thanks for the first one,
And for the second one: I dont know spanish,
So if anyone know spanish then he/she can help me by translating it andI will put that in the main thread as well.
 

The_Learner

Usuario de oro
Respuesta: [FR] Gender based bag palette

Sorry guys If I forgot to tell about which rom to use for this routine.
This routine is supposed to work with US FR rom i.e. BPRE.

Porting it to other language FR rom might be just some proper pointer finding.
 

KanaCn

由紀カクタス
I translated your thread. @The_Learner

Hola a todos, soy The_Learner

Como un Rom-Hacker siempre he odiado las limitaciones a la hora de insertar nuevas mochilas.
Solo podías utilizar una paleta para ambos el chico y la chica.

Asi que hice una Rutina ASM para superar este problema
y notificar que esto es para una rom FR USA.

Código:
/* at 108340 00 48 00 47 (insert loc of this routine +1) */

.text
.align 2
.thumb

main:
    ldr r0, =(0x0300500C)
    ldr r0, [r0]
    ldrb r0, [r0, #0x8]
    cmp r0, #0x0
    bne female
    ldr r0, male_pal
    b pal_load_maybe

female:
    ldr r0, female_pal
    b pal_load_maybe

pal_load_maybe:
    ldr r1, handling_something
    bl call_via_r1
    ldr r1, return_loc
    bx r1    

call_via_r1:
    bx r1

.align 2 
male_pal:        .word 0x08XXXXXX
female_pal:        .word 0x08YYYYYY
handling_something:    .word 0x0800ec28|1
return_loc:        .word 0x08108352|1

Código:
XXXXXX is the pointer to AA AA AA 08 64 00
YYYYYY es el puntero a  BB BB BB 08 64 00

where,
AA AA AA 08 es el puntero comprimido a la mochila del chico [B](Paleta)[/B]
BB BB BB 08 es el puntero comprimido a la mochila de la chica [B](Paleta)[/B]

Esta es la imagen donde yo he insertado la rutina en 800000
mi XXXXXX es 800030
YYYYYY es 800040

Este es el resultado del codigo



Ignorad la paleta tan extraña, la he insertado solo para hacer una prueba.
Pero la rutina funciona asombrosamente :D
 

Gold

Porrero a tiempo parcial
Miembro insignia
Respuesta: [FR] Gender based bag palette

i don't know why, but it doesn't work, when I navigate into the bag menu, it only displays the bag in black, I don't know why it happens.
the bytes that I insert where there.
Código:
0B 48 00 68 00 7A 00 28 01 D1 05 48 01 E0 05 48 FF E7 05 49 00 F0 02 F8 04 49 08 47 08 47 C0 46 60 45 E8 08 60 45 E8 08 29 EC 00 08 53 83 10 08 0C 50 00 03
 
Última edición:

The_Learner

Usuario de oro
Respuesta: [FR] Gender based bag palette

Я u k i !;395100 dijo:
i don't know why, but it doesn't work, when I navigate into the bag menu, it only displays the bag in black, I don't know why it happens.
the bytes that I insert where there.
Código:
0B 48 00 68 00 7A 00 28 01 D1 05 48 01 E0 05 48 FF E7 05 49 00 F0 02 F8 04 49 08 47 08 47 C0 46 60 45 E8 08 60 45 E8 08 29 EC 00 08 53 83 10 08 0C 50 00 03
Can you tell me what exactly you did,
and also how you got those bytes and where you isnerted them ??

I think you should look into the tutorial once again,
Atleast I can confirm that its working.

So I want you to elaborate what you did step by step
 

Neon Skylar

Rojo Fuego User
Respuesta: [FR] Gender based bag palette

Intente implementar esto y no me funciono.. Lo inserte en B00000, mi XXXXXX fue B00060 y YYYYYY fue B00090, realice la prueba de colocar las mochilas de diferentes colores pero no funciono
 

Omega

For endless fight
Miembro del equipo
Moderador/a
Respuesta: [FR] Gender based bag palette

Esto no lo había visto, que maravilla poder asignarle su propia paleta a la mochila dependiendo el personaje, intentare implementarlo en cuanto tenga algo de tiempo, por cierto, ¿Hay bugs conocidos?

Saludos!!!
 
Re: Respuesta: [FR] Gender based bag palette

Ωmega;415950 dijo:
Esto no lo había visto, que maravilla poder asignarle su propia paleta a la mochila dependiendo el personaje, intentare implementarlo en cuanto tenga algo de tiempo, por cierto, ¿Hay bugs conocidos?

Saludos!!!
There aren't any bugs.
 

Neon Skylar

Rojo Fuego User
Respuesta: Re: Respuesta: [FR] Gender based bag palette

There aren't any bugs.
I tried to implement this and it did not work. I inserted it in B00000, my XXXXXX was B00060 and YYYYYY was B00090, I did the test of placing the backpacks of different colors but it did not work

in which I'm wrong?
 
Re: Respuesta: Re: Respuesta: [FR] Gender based bag palette

I tried to implement this and it did not work. I inserted it in B00000, my XXXXXX was B00060 and YYYYYY was B00090, I did the test of placing the backpacks of different colors but it did not work

in which I'm wrong?
Have you hooked it? Make sure XXXXXX and YYYYYY are your compressed palletes.
 
Respuesta: Re: Respuesta: Re: Respuesta: [FR] Gender based bag palette

Please explain to me in detail how is the process for me to get it right ... look for an address after B00000 ...
Insert your bags with NSE

Remember the compressed palletes and graphics address

Use your hex knowledge to point it to male and female default address( I mean pointer like if you inserted your bag at 800000, reverse hex it and replace with the default one)

XXXXXX and YYYYYY would be your compressed palletes

Hook it at the given address. (Hope you know how to do that)

Profit ??? :p
 

Jaizu

Usuario mítico
Respuesta: [FR] Gender based bag palette

This is awesome man. How did you find those pointers? Let's hope someone works with this in an emerald rom 8)
 
Arriba