< >
Hello, guest! Please log in or register.

The PokéCommunity

Go Back     The PokéCommunity Forums > Darthatron Conversation Between Darthatron and FBI


Conversation Between Darthatron and FBI
Showing Visitor Messages 1 to 14 of 14
  1. FBI
    February 9th, 2013 5:50 AM
    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 9: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 http://www.romhackersonline.com/social/irc-chat/ all the time.
  3. FBI
    February 8th, 2013 8:18 PM
    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 6: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
    February 8th, 2013 6:19 PM
    Yeah, FireRed. Sorry for the late reply, I ran off to go get something to eat :P
  6. Darthatron
    February 8th, 2013 5:53 PM
    I figured it was comedic. You can call me whatever you want.

    You're hacking FireRed, right?
  7. FBI
    February 8th, 2013 5:48 PM
    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
    February 8th, 2013 5:46 PM
    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 5:40 PM
    Also don't worry about being so formal with me.
  10. Darthatron
    February 8th, 2013 5: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?
  11. FBI
    February 8th, 2013 5:31 PM
    I want to try to give Pokemon passive HP regen outside of battle (1 hp gained every 10 steps), given the Pokemon is not affected by status affects.

    So far I've just been able to check which Pokemon are affected by a status changing move. Adding HP and doing that outside of battle is a little hard for me right now though.
    From what I've read though, changing HP requires manipulating some encrypted data.
    That is my mini-feature I was working on, great hack overseer Darthatron.
  12. Darthatron
    February 8th, 2013 5:14 PM
    At ease, soldier.

    Is there anything specific you're trying to do at the moment?
  13. FBI
    February 8th, 2013 4:29 PM
    As of now, I only know how to do ASM from scripts. I've actually been trying to branch from existing routines to my own little chunk of code, but I still haven't found out how.

    I'm more-less trying to learn as I go. That is the status of my ASM knowledge, General Darthatron, sir.
  14. Darthatron
    February 8th, 2013 4:09 PM
    Hello! Have you done any reverse engineering, or do you only know how to put ASM into scripts?

  All times are GMT -8. The time now is 5:43 AM.

Contact Us Archive Privacy Statement Terms of Service Top