The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Darthatron
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read


Conversation Between Darthatron and FBI agent
Showing Visitor Messages 1 to 10 of 14
  1. FBI agent
    February 9th, 2013 05:50 AM
    FBI agent
    Alrighty, I'm gonna try that VM again and see what happens. PC IRC Doesn't work for me, but I got in RHO's.

    Wait, so is GetPokemonData some kind of function that accesses the information in r0 given a value for r1? If so I would do something like:

    branch my routine

    @my routine
    ldr r0, .Pokemon_data (just the pointer, not the actual data)
    mov r1, #0x3A
    ldr r3, .GetPokemonData

    and it would return the Pokemon pointed by r0's Current HP and place it in r2 (in this case?).
    I think I'm misinterpreting, unless there really is a function as awesome as that.
    SetPokemonData obviously works in the same nature as GetPokemonData, I'm just waiting to get corrected here :P

    I get everything else pretty much, though the goal of adding and subtracting 4 bytes sorta escapes me (is that just to clear?).

    I've only been doing reading things the long way, so I've never actually used these built-in functions (assuming that's what they are).

  2. Darthatron
    February 8th, 2013 09:56 PM
    Sorry buddy. I went out. Um, I'm always on the IRC if you can get that working.

    Or you can find me on all the time.

  3. FBI agent
    February 8th, 2013 08:18 PM
    FBI agent
    Do you have some other means of contact? I can't send longer VMs over PC because it times me out.

  4. Darthatron
    February 8th, 2013 06:56 PM
    Okay, well, 06D5E8 in the ROM is some ASM that is in my notes as activating every step. This calls the Repel checks and such as well. I suggest you branch from here.

    Try just making it heal once every step for now.

    0803FBE8 is GetPokemonData. R0 needs to contain a pointer to the Pokemon. R1 is either 0x39 for getting the Pokemon's Current HP; 0x3A for getting it's Max HP; 0x37 for it's Status Ailment.

    0804037C is SetPokemonData. R0 contains the pointer to the Pokemon. R1 contains the same values as above. R2 contains a pointer to free RAM.

    When I say free RAM, I mean it's best to use the Stack for that. So just subtract 4 from the Stack at the start of the function and add 4 to it after everything.

    PUSH {R0-R2,LR}
    SUB SP, SP, 4
    Everything else

    ADD SP, SP, 4
    POP {R0-R2,PC}

    You dig?

  5. FBI agent
    February 8th, 2013 06:19 PM
    FBI agent
    Yeah, FireRed. Sorry for the late reply, I ran off to go get something to eat :P

  6. Darthatron
    February 8th, 2013 05:53 PM
    I figured it was comedic. You can call me whatever you want.

    You're hacking FireRed, right?

  7. FBI agent
    February 8th, 2013 05:48 PM
    FBI agent
    I'm not really looking to be formal, it's more comedic when I title people (not to say that it's comical to consider you a general) :P

  8. FBI agent
    February 8th, 2013 05:46 PM
    FBI agent
    Sure, if you can show me how I record the number of steps taken? I assume I can find clues in the same code that repel/safari zone uses. Since you did the repel port recently maybe you can tell me where it starts :P

    P.S I'm trying to not use Jpan's engine if I can.

  9. Darthatron
    February 8th, 2013 05:40 PM
    Also don't worry about being so formal with me.

  10. Darthatron
    February 8th, 2013 05:39 PM
    That sounds interesting! Is there any way I can help you? Offsets or something? Or would you prefer to just work on it alone for now?

All times are UTC -8. The time now is 04:50 AM.

Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™,
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / Poké
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.