Conversation Between Kenny1 and FBI
1 to 15 of 23
  1. FBI
    December 4th, 2014 7:31 AM
    Oaks tutorial and those "multi-choice" boxes work differently. I'm not sure why texts don't load properly or whatever it is that's the problem, but I'm honestly not interested in graphics.
  2. Kenny1
    December 4th, 2014 12:08 AM
    Hi, I finally finished the routine, it doesnt crash the rom, and as far as I see, doesn't mess with the graphics(it does ;-;). Can I post it?

    Edit~ Any idea how to add exceptions for battles and multiple choice?

    So, I found out that 'some' textboxes dont load properly. like the multiple choice one, and the box that goes around a showsprite. Also, Oaks tutorial doesnt work ;-;. I'm still looking into it though, cuz this could be a cool feature to have.
  3. FBI
    November 27th, 2014 11:27 AM
    Confirm the offset 0x020370de and the offset you're using at table. The routine itself seems fine.
  4. Kenny1
    November 27th, 2014 11:13 AM
    I don't understand, that offset is EXACTLY the same in other FR roms ;-; The routine doesn't even change it
  5. Kenny1
    November 27th, 2014 11:10 AM
    ;-; Now it says undefined opcode there where gamefreak appears.
  6. FBI
    November 27th, 2014 11:04 AM
    You branch from at 0814FEC4, you put the asm in free space :o
  7. Kenny1
    November 27th, 2014 11:02 AM
    The hook, or the ASM?
  8. FBI
    November 27th, 2014 10:57 AM
    at 0814FEC4
  9. Kenny1
    November 27th, 2014 10:56 AM
    :|, I didn't know that, where would I place the hook?

    Edit~ It didn't work, during the flashback, it turned into a black screen ;-;
  10. FBI
    November 27th, 2014 7:29 AM
    Oh dear, this routine has a few things wrong with it essentially. Did you run it through a debugging program? and step through it ingame?

    I took a quick peek just now, the routine you're branching from is called not only for text boxes, but the block boxes too (start menu, map names) but not for sign boxes :P

    Anyways, I fixed your routine's errors. Now if you insert this at 0814FEC4, it should come out better. Ofcourse where deadbeef is the real table :P

    .align 2

    lsl r0, r0, #0x18
    lsr r0, r0, #0x18
    ldr r3, .Var
    ldrh r3, [r3]
    ldr r1, .TableOffset
    lsl r3, #0x2
    add r1, r1, r3
    ldr r2, =(0x814FECA +1) @returning here won't change the pals
    bx r2

    .align 2

    .word 0x020370de

    .word 0xDEADBEEF @ummm, get the right one lol

  11. Kenny1
    November 26th, 2014 11:00 PM
    Ok, I dont Think I'll be getting this right ;-;. So, I'll give you the offset where you can change the offset of r1, to change it. At 0814FED0 there is a bl 80017D0, the value in r1 should be changed before this, to the offset of the image, not a pointer, the offset(dont ask me why). I posted this, so that you can maybe make a routine that will work, if you want, I can post my non working routine again.

    .align 2

    push {r0-r4, r7, lr}
    bl Checkvar
    ldrh r0, [r0]
    ldr r2, .TableOffset
    lsl r0, #0x2
    ldrh r1, [r0, r2]
    bl Return

    push {lr}
    ldr r0, .Var
    pop {pc}

    mov r2, #0x0A0
    lsl r2, r2, #0x2
    mov r3, r4
    ldr r7, .Ret
    pop {r0, r2-r4}
    bx r7

    .align 2

    .word 0x020370de

    .word 0xDEADBEEF

    .word 0x0814FED1
  12. Kenny1
    November 26th, 2014 10:44 PM
    My routine no longer crashes the rom, now it makes the map go black(or green) and textboxes no longer show up, even in battle.
  13. FBI
    November 26th, 2014 10:43 AM
    ldrb works the same as strb :D
    I think :D
  14. Kenny1
    November 26th, 2014 9:50 AM
    Yeah, It failed again.

    I think its the way I used ldrb, I actually forgot how it works :P
  15. FBI
    November 26th, 2014 9:47 AM
    Great work, you can post it on the resources thread I made if you want. Sorry I wasn't much help :P