• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
K
Reaction score
178

Profile posts Latest activity Postings About

  • Oh boy, ummm no. The ASM I sent you. It goes in a script via callasm 0x08XXXXXX + 1. As soon as the rom starts, go set the break point on 08XXXXXX (notice how I didn't write the +1 here). Now, let the script, which contains the callasm, run. The rom should stop. Follow it (F3), and make sure it it is writing to the correct location. This location will not be stationary, but is rather DMA controlled. This is why we have to load the pointer at 0300500C. It will be different every time you run this.

    There is no trace back function. (However, the address in r14 may give some clues as to the routine which called your asm). Also, following BLs with F7 often will leave you more confused than not, so stay in the routine. When you hit "pop {pc}", you are done. You have already scene the asm run.

    Lastly, why would you need to go back if you set the breakpoint correctly? I can tell you exactly which function called the asm: callasm. A scripting command is simply an ASM routine. Scripts work like this:

    1) Script loader - Reads the next byte in the script, multiplies by 4, adds to offset of the script table, goes to that routine.

    2) That routine loads all of our parameters into registers (ie the offset of our asm).

    3) That routine then does what it is supposed to do with those (in this case, it just jumps to the asm with a normal ldr r0, offset; bx r0). Then our ASM is run. Then it returns, returns again, and the process begins again.

    So, there is absolutely no reason that a trace back function is necessary (or even useful) here, because all you will arrive at is the callasm script function routine thingy, and then back to the script loader.
    Okay, navigate to where you put the ASM. That is where you want to set your break. You can use F3 to goto next instruction and F7 to follow BLs. So, set your break, then let the script run that has your ASM.

    You can also break on write. Do this by using ctrl+b (? Maybe, not sure) and typeing [0202063C]!!.
    No$GBA debugger. Just navigate to the line you want to break on, and double click so that it turns red. Yes, it is that simple.:p
    Why are you looking in the memory viewer? Why not look at the actual options themselves. That is what will change. Also, have you tried setting a breakpoint and following it?
    Sorry to suck at this but why isn't this changing in memory viewer, to my understanding:

    push {r0-r3,r14}
    ldr r0, ramlocation \\loads 0300500C
    ldr r0, [r0] \\ Loads the address as a value,
    mov r1, #0x14 \\puts a value of 0x14 (20 dec) in r1
    add r0, r0, r1 \\add 0x14 to 0300500C
    ldr r1, New_Options \\ Loads the value for new options 00000112
    strh r1, [r0] \\ stores the halfword (0x0112) into the address 0x03005020
    Return:
    pop {r0-r3}
    pop {pc}

    Surely this is wrong but I really can't figure it out,
    Actually wait your right about that help box!

    It does disappear thanks man! I will tweak those values though to my liking!

    Also why did you load r2 and r3 if we didn't use them? Safety or something?
    If the help isn't activated, ie the button modes are set to L=A or LR, then that box doesn't appear. The image you are having issues with is completely uncompressed which makes it difficult to track. Though, I just had an idea.....
    Your best bet, since everyone hates the help system anyways, is to change it as soon as the game starts. Run this early in the game via callasm and it will change your options. (It changes all of the options to my favorites, but you can adjust it slightly later if you want.)

    ------------------------------------
    .align 2
    .thumb

    Main:
    push {r0-r3,r14}
    ldr r0, ramlocation
    ldr r0, [r0]
    mov r1, #0x14
    add r0, r0, r1
    ldr r1, New_Options
    strh r1, [r0]
    Return:
    pop {r0-r3}
    pop {pc}


    .align 2


    ramlocation:
    .word 0x0300500C
    New_Options:
    .word 0x00000112
    ---------------------------------------
    Okay, I've got you. JPAN's engine has a feature for this, so you can cross check your work when you are done. I thought you wanted to modify the PID, but really, you just want to use it as part of the encryption key.
    You can push as many times as you want. That is not a typo, you just have to remember to push what you pop.

    Also, his ASM code is used to break apart the DATA section of the pokemon data. The part that is encrypted. It is encrypted by using the PID in combination with other things. What exactly are you trying to do?
    Last Activity: Today 01:38 AM
    Current Activity: Viewing Thread Pokemon data decrypting (asm code)

    That won't work for what you are doing...
    Don't worry about it, it's fine.:)

    I have never edited a PID in my life.XD However, there is a chance it wouldn't happen. Not a great one, but a small chance.
    I haven't done anything since I have been working on my hack. A lot of ASM and graphics later and it looks pretty good.:)
    Aaaah oh wow I'm old haha, well 3rd year civil/environmental engineer. I'm not familiar with AP chem but I wikipedia'd it and it seemed to cover all chem in my 2nd and 3rd year chem nearly! So hats off to you!

    I never took health, it really bored me... If you get into college/uni you can read any sport articles you like! (the boring peer journal ones).

    What sports do you play?

    Oh and calc is fun. But that's coming from a guy who breathes it!
    No, I'm only a Junior. I took the AP Chem test last month, and I am exempt from 2 more exams at least, so I only have to take Pre-calc, Political Science, and Health (ugggh, I hate Health. I love exercise and sports and stuff, but that class is excruciating.) so it shouldn't be too bad.
    I honestly don't know why changing that would make a difference:p.

    Good luck on your exams! Mine are next week. I only have to take three though.^.^ Much better than 7, haha.
    I would love to be a Ruby hacker because that is the game I grew up with, but I mostly hack FR for its obvious perks. I may bring some features into my hack from Ruby. Possibly Dive and the acro bike I think would be cool.
  • Loading…
  • Loading…
  • Loading…
Back
Top