The PokéCommunity Forums  

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

Notices


Advertise here

daniilS's Profile Picture

daniilS daniilS is online now

busy trying to do stuff not done yet

Visitor Messages

Showing Visitor Messages 1 to 10 of 11
  1. hackstar
    2 Weeks Ago 10:23 PM
    hackstar
    Oh sorry I cant believe it everything is possible in gba....WHAT A OUTSTANDING!!!

  2. GoGoJJTech
    July 4th, 2014 11:16 AM
    GoGoJJTech
    laptop stolen
    kindle fire stolen
    I hate my family

  3. Syndrome10
    June 1st, 2014 05:05 AM
    Syndrome10
    Take your time and thanks.

  4. Syndrome10
    June 1st, 2014 12:08 AM
    Syndrome10
    Greetings:

    In the thread of Platinum Red and Blue (I didn't wanted to post there, because it's thread for a hack, not a resource or something), you mentioned that it's only 2 simple routines to make forms work. Would you mind sharing them, please? I am making a similar hack of FireRed, but it will use Platinum Pokémon and other features, but it will stay at Kanto and I could really use Giratina, Arceus and Shaymin formes.

    Cheers, danillS!

  5. kearnseyboy6
    May 22nd, 2014 03:13 PM
    kearnseyboy6
    Hey I think I fixed the heavy ball!

    Spoiler:
    .text
    .align 2
    .thumb
    .thumb_func
    .global heavyball

    main:
    ldr r0, pokeindex
    ldrh r0, [r0]
    mov r1, #0x24
    mul r0,r1
    ldr r1, pokedextable
    add r1, r0, r1
    add r1, r1, #0xE
    ldrh r1, [r1] \\r1 now contains the weight in kg-1
    ldr r2, stattable
    ldr r0, pokeindex
    ldrh r0, [r0]
    mov r4, #0x1C
    mul r0, r4
    add r2, r2, r0
    ldrb r2, [r2] \\r2 loads the catchrate of the poke
    cmp r1, #0x1000
    bhi plusforty
    cmp r1, #0xBB8
    bhi plusthirty
    cmp r1, #0x7D0
    bhi plustwenty
    cmp r2, #20 \\checks to see if catchrate <20 (hence 0 chance)
    bhi minustwenty
    mov r4, #0
    b ender

    plusforty:
    mov r0, #0x0
    add r0, r2, #40
    mov r1, r2
    bl 0x081E4019
    mov r3, r0 \\integer stored in r3
    mov r0, #0x0
    add r0, r2, #40
    mov r1, r2
    bl 0x081E4685 \\remainder stored in r0
    b intdivision

    plusthirty:
    mov r0, #0x0
    add r0, r2, #30
    mov r1, r2
    bl 0x081E4019
    mov r3, r0
    mov r0, #0x0
    add r0, r2, #30
    mov r1, r2
    bl 0x081E4685
    b intdivision

    plustwenty:
    mov r0, #0x0
    add r0, r2, #20
    mov r1, r2
    bl 0x081E4019
    mov r3, r0
    mov r0, #0x0
    add r0, r2, #20
    mov r1, r2
    bl 0x081E4685
    b intdivision

    minustwenty:
    mov r0, #0x0
    sub r0, r2, #20
    mov r1, r2
    bl 0x081E4019
    mov r3, r0
    mov r0, #0x0
    sub r0, r2, #20
    mov r1, r2
    bl 0x081E4685
    b intdivision

    intdivision
    mov r4, #0
    mov r1, #10
    mul r0, r1
    mov r1, r2 \\This load 10x the remainder to give an integer when divided
    bl 0x081E4019 \\divides 10x remainder by C, always <10 due to math laws
    mul r3, r1
    add r4, r0, r3 \\adds the remainder and whole together

    ender:
    ldr r0, catchratecalcfunction
    mov pc, r0

    .align 2
    pokeindex: .word 0x0202077E
    pokedextable: .word 0x08735100
    stattable: .word 0x08722600
    catchratecalcfunction: .word 0x0802d62a

  6. kearnseyboy6
    May 17th, 2014 06:45 AM
    kearnseyboy6
    But what if you can use algebra to not need extra addition.

    Say we have a catch rate of 20. And it has a +40 for being heavy. We want to multiply the catchrate by a ball bonus (x) to obtain 60 (20+40).

    So x will always be equal to (C + heavyweight) / C . This x now has the correct ball bonus.

    So looking at knizz' disassembly calling these routines division will give us the ball bonus to 0 decimal places... I don't know how the remainder will fit in.

    So essentially put (C + heavyweight) = r0 and C = r1.

    I'll find a way to get the remainder working by tomorrow. I need sleep now.

    EDIT: I figured how to get remainder division working

  7. kearnseyboy6
    May 17th, 2014 04:04 AM
    kearnseyboy6
    I am fairly certain that I can make a heavy ball, although it's hairy and I must use division... Is there any way to do division at all!!?

    Also with your asm can I use other registers temporarily?

  8. kearnseyboy6
    May 16th, 2014 02:40 PM
    kearnseyboy6
    Thanks heaps for the reply!

    I totally forgot to add the 84 and the reason for level 17 not working is because lsr will round down 8.5 to 8?

    I'm going to keep practicing on other balls if you don't mind and eventually make graphics, and you're welcome to use them.

    I am so horrible at disassembly and finding specific routines, and NO$GBA debugger is what I have been using. I will learn it, eventually haha!

    Thanks for the feedback, I really do appreciate it!

  9. Bruce Banner
    December 15th, 2013 05:53 PM
    Bruce Banner
    no im trying to make more friends.

  10. Bruce Banner
    December 14th, 2013 11:34 AM
    Bruce Banner
    Hey what's up? how're you today?

About Me

  • About daniilS
    Gender
    Male ♂
    Favorite Pokémon
    Aegislash
  • Signature

    Thanks to JPAN, Jambo51, Shiny Quagsire and knizz for teaching me almost everything I know about hacking, through tutorials or in person.

Statistics

Total Posts
Activity by Forum
Visitor Messages
Blog
General Information
  • Last Activity: 1 Minute Ago 02:51 AM
  • Join Date: August 5th, 2013
  • Referrals: 1

Friends

Showing Friends 1 to 9 of 9

All times are UTC -8. The time now is 02:52 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
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éCommunity.com.
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.