Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Reload this Page Development: Port of the BW2 Repel system to GBA...

Notices
For all updates, view the main page.

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
Research & Development programs in this forum are subject to moderator approval before they are displayed.



Reply
 
Thread Tools
  #101    
Old February 13th, 2015 (03:14 PM).
Percy's Avatar
Percy Percy is offline
Blaziken ftw
 
Join Date: Sep 2014
Location: Somewhere in the world, obviously
Gender: Male
Nature: Gentle
Posts: 2,071
Quote originally posted by PoK3Matr1x:
HxD (the hex editor i use) Says it cant find any of those offsets, even if though i tried searching it using hex, dec, and oct. (e.g. it says The file does not contain that offset when i search 080830CA)
In HxD press CTRL + G and then type in that offset minus the 080 at the beginning.

Quote originally posted by U.Flame:
Any chance this could work on Sapphire as well?
Nope.
__________________
Pokémon Ranger Academy
I'm on reduced activity 'cause of some issues with our WiFi, and I'm a little busy working with my mom.
Pair

Reply With Quote
  #102    
Old February 15th, 2015 (02:14 AM).
AtecainCorp.'s Avatar
AtecainCorp. AtecainCorp. is offline
Rejishan awake...
 
Join Date: Jun 2008
Location: Takoabe Town (Region Thonsu)
Age: 22
Gender: Male
Nature: Hardy
Posts: 685
After I use Repel the game restart. I make everything like you say in tut. So what's going wrong?
__________________
POKEMON RUBY RENEV - http://www.pokecommunity.com/showthread.php?t=341964
Reply With Quote
  #103    
Old February 24th, 2015 (05:24 PM). Edited February 24th, 2015 by HungLikeATauros.
HungLikeATauros HungLikeATauros is offline
 
Join Date: Feb 2015
Gender: Male
Posts: 33
Can anyone confirm if the compiled script in the first post actually works? No matter how many times I do this, following every step to a tee, I get a gibberish string of "qAF" that freezes the game.


EDIT: Ok, compiled my own script and the proper message comes up, but clicking "yes" freezes the game. For simple hex edits, this feature is obscenely annoying to get working. It's gotta be something with the "callASM" command right?
Reply With Quote
  #104    
Old February 25th, 2015 (01:35 AM).
chrunch's Avatar
chrunch chrunch is offline
Silver Tier
 
Join Date: Oct 2009
Gender: Male
Posts: 1,100
Quote originally posted by HungLikeATauros:
Can anyone confirm if the compiled script in the first post actually works? No matter how many times I do this, following every step to a tee, I get a gibberish string of "qAF" that freezes the game.


EDIT: Ok, compiled my own script and the proper message comes up, but clicking "yes" freezes the game. For simple hex edits, this feature is obscenely annoying to get working. It's gotta be something with the "callASM" command right?
I've never had any problems with it. Are you sure you repointed the script at 0x083100 correctly?
__________________
Reply With Quote
  #105    
Old February 25th, 2015 (08:15 AM).
HungLikeATauros HungLikeATauros is offline
 
Join Date: Feb 2015
Gender: Male
Posts: 33
Quote originally posted by chrunch:
I've never had any problems with it. Are you sure you repointed the script at 0x083100 correctly?
I compiled the script to 74B8B4. I've tried every combination at 083100 to make sure (I've used 74 B8 B4 08, B4 B8 74 08, 75 B8 B4 08, B5 B8 74 08). What should go there?
Reply With Quote
  #106    
Old April 12th, 2015 (09:59 AM).
Diego98 Diego98 is offline
 
Join Date: Jan 2015
Gender: Male
Posts: 1
I want to do this in a spanish ROM but I when the repel finishes, my game restart. I find my game offsets and I tried to modify the ASM routine, but it still no works, can anyone help me?
PD: can anyone give me the routines dissasebbled?
Reply With Quote
  #107    
Old April 25th, 2015 (04:26 PM).
Danny0317's Avatar
Danny0317 Danny0317 is offline
deez nuts!!!1!!!1!!!1!!
Gold Tier
 
Join Date: Jun 2013
Location: Miami, FL
Age: 15
Gender: Male
Nature: Hasty
Posts: 928
Hey guys, I've finally made an ACTUAL* BW2 repel system for emerald.
Okay, before I start off, you're gonna have to credit Darthatron, and Phenom2122, and if you want, Le Pug, Tcoppy, and I.

Anyways, follow the tutorial here, http://www.pokecommunity.com/showthread.php?t=281573 and do the Emerald part in another post instead.

Once you have that done, you're going to have to make this script for all of them:

For Repel:
#dynamic 0xE40000
#org @start
compare 0x40e9 0x1
if 0x4 goto @no
removeitem 0x56 0x1
setvar 0x4021 0x64
setvar 0x40E9 0x1
sound 0x2F
msgbox 0x8E4D3B9 MSG_SIGN '"[player] used a Repel."
end

#org @no
msgbox @nope MSG_SIGN
end

For Super Repel:
#dynamic 0xE40000
#org @start
compare 0x40e9 0x1
if 0x4 goto @no
removeitem 0x53 0x1
setvar 0x4021 0xC8
setvar 0x40E9 0x2
sound 0x2F
msgbox 0x8E4D278 MSG_SIGN '"[player] used a Super Repel."
end

#org @no
msgbox @nope MSG_SIGN
end

#org @nope
= But the effects of a Repel\nlingered from earlier.

For Max Repel:
#dynamic 0xE40000
#org @start
compare 0x40e9 0x1
if 0x4 goto @no
removeitem 0x54 0x1
setvar 0x4021 0xFA
setvar 0x40E9 0x3
sound 0x2F
msgbox 0x8E4D2F5 MSG_SIGN '"[player] used a Max Repel."
end

#org @no
msgbox @nope MSG_SIGN
end

#org @nope
= But the effects of a Repel\nlingered from earlier.


Change the offsets for the dialogue or it won't work.
You can also change the second variable, to whichever you want/is safe, but you'll need to change it later.


Then, make a script with this:

#dynamic 0xE40000
#org @start
msgbox @wore MSG_SIGN
compare 0x40E9 1
if 0x1 goto @repel
compare 0x40E9 2
if 0x1 goto @super
compare 0x40E9 3
if 0x1 goto @max
end

#org @repel
checkitem 0x56 1
compare 0x800d 1
if 0x4 goto @yesrepel
setvar 0x40e9 0
closeonkeypress
end

#org @yesrepel
msgbox @use 0x5
compare LASTRESULT 1
if 0x1 goto @userepel
setvar 0x40e9 0
closeonkeypress
end

#org @userepel
removeitem 0x56 0x1
setvar 0x4021 0x64
setvar 0x40E9 0x1
sound 0x2F
msgbox 0x8E4D3B9 MSG_SIGN '"[player] used a Repel."
end


#org @super
checkitem 0x53 1
compare 0x800d 1
if 0x4 goto @yessuper
setvar 0x40e9 0
closeonkeypress
end

#org @yessuper
msgbox @use 0x5
compare LASTRESULT 1
if 0x1 goto @usesuper
setvar 0x40e9 0
closeonkeypress
end

#org @usesuper
removeitem 0x53 0x1
setvar 0x4021 0xC8
setvar 0x40E9 0x2
sound 0x2F
msgbox 0x8E4D278 MSG_SIGN '"[player] used a Super Repel."
end

#org @max
checkitem 0x54 1
compare 0x800d 1
if 0x4 goto @yesmax
setvar 0x40e9 0
closeonkeypress
end

#org @yesmax
msgbox @use 0x5
compare LASTRESULT 1
if 0x1 goto @usemax
setvar 0x40e9 0
closeonkeypress
end

#org @usemax
removeitem 0x54 0x1
setvar 0x4021 0xFA
setvar 0x40E9 0x3
sound 0x2F
msgbox 0x8E4D2F5 MSG_SIGN '"[player] used a Max Repel."
end

#org @wore
= The Repel's effect wore off[.]

#org @use
= Use another?

After you're done with that, go to 0x2A4B2A and replace the script there with "goto and 0x(the offset for that script).

It hasn't been tested much, but it should work. If you find any bugs, write them here.

*The only difference is that the screen goes to the Overworld when using it. Sorry about that, but I really don't know any other way to do it.
__________________
Pokémon Fluorite Version (Beta 2 Released)


Beta 1 is out! Click on the image to get it!

Hey guys, I'm really sorry to advertise here, but my friend's band just released a really good song, and I think I'd mean a lot to them if I shared it, so..

https://soundcloud.com/the-keys-to-lincoln-road/thinking-of-you-nana
Reply With Quote
  #108    
Old April 25th, 2015 (09:23 PM).
Percy's Avatar
Percy Percy is offline
Blaziken ftw
 
Join Date: Sep 2014
Location: Somewhere in the world, obviously
Gender: Male
Nature: Gentle
Posts: 2,071
Ah, a way much more efficient than mine! Nice find, Sneasel! Never would have dreamed of using that way! I'm gonna test this out soon!
__________________
Pokémon Ranger Academy
I'm on reduced activity 'cause of some issues with our WiFi, and I'm a little busy working with my mom.
Pair

Reply With Quote
  #109    
Old April 26th, 2015 (03:04 PM). Edited April 26th, 2015 by kleenexfeu.
kleenexfeu kleenexfeu is online now
 
Join Date: Aug 2013
Gender: Male
Posts: 108
Quote originally posted by Dark Sneasel:
Spoiler:
Hey guys, I've finally made an ACTUAL* BW2 repel system for emerald.
Okay, before I start off, you're gonna have to credit Darthatron, and Phenom2122, and if you want, Le Pug, Tcoppy, and I.

Anyways, follow the tutorial here, http://www.pokecommunity.com/showthread.php?t=281573 and do the Emerald part in another post instead.

Once you have that done, you're going to have to make this script for all of them:

For Repel:
#dynamic 0xE40000
#org @start
compare 0x40e9 0x1
if 0x4 goto @no
removeitem 0x56 0x1
setvar 0x4021 0x64
setvar 0x40E9 0x1
sound 0x2F
msgbox 0x8E4D3B9 MSG_SIGN '"[player] used a Repel."
end

#org @no
msgbox @nope MSG_SIGN
end

For Super Repel:
#dynamic 0xE40000
#org @start
compare 0x40e9 0x1
if 0x4 goto @no
removeitem 0x53 0x1
setvar 0x4021 0xC8
setvar 0x40E9 0x2
sound 0x2F
msgbox 0x8E4D278 MSG_SIGN '"[player] used a Super Repel."
end

#org @no
msgbox @nope MSG_SIGN
end

#org @nope
= But the effects of a Repel\nlingered from earlier.

For Max Repel:
#dynamic 0xE40000
#org @start
compare 0x40e9 0x1
if 0x4 goto @no
removeitem 0x54 0x1
setvar 0x4021 0xFA
setvar 0x40E9 0x3
sound 0x2F
msgbox 0x8E4D2F5 MSG_SIGN '"[player] used a Max Repel."
end

#org @no
msgbox @nope MSG_SIGN
end

#org @nope
= But the effects of a Repel\nlingered from earlier.


Change the offsets for the dialogue or it won't work.
You can also change the second variable, to whichever you want/is safe, but you'll need to change it later.


Then, make a script with this:

#dynamic 0xE40000
#org @start
msgbox @wore MSG_SIGN
compare 0x40E9 1
if 0x1 goto @repel
compare 0x40E9 2
if 0x1 goto @super
compare 0x40E9 3
if 0x1 goto @max
end

#org @repel
checkitem 0x56 1
compare 0x800d 1
if 0x4 goto @yesrepel
setvar 0x40e9 0
closeonkeypress
end

#org @yesrepel
msgbox @use 0x5
compare LASTRESULT 1
if 0x1 goto @userepel
setvar 0x40e9 0
closeonkeypress
end

#org @userepel
removeitem 0x56 0x1
setvar 0x4021 0x64
setvar 0x40E9 0x1
sound 0x2F
msgbox 0x8E4D3B9 MSG_SIGN '"[player] used a Repel."
end


#org @super
checkitem 0x53 1
compare 0x800d 1
if 0x4 goto @yessuper
setvar 0x40e9 0
closeonkeypress
end

#org @yessuper
msgbox @use 0x5
compare LASTRESULT 1
if 0x1 goto @usesuper
setvar 0x40e9 0
closeonkeypress
end

#org @usesuper
removeitem 0x53 0x1
setvar 0x4021 0xC8
setvar 0x40E9 0x2
sound 0x2F
msgbox 0x8E4D278 MSG_SIGN '"[player] used a Super Repel."
end

#org @max
checkitem 0x54 1
compare 0x800d 1
if 0x4 goto @yesmax
setvar 0x40e9 0
closeonkeypress
end

#org @yesmax
msgbox @use 0x5
compare LASTRESULT 1
if 0x1 goto @usemax
setvar 0x40e9 0
closeonkeypress
end

#org @usemax
removeitem 0x54 0x1
setvar 0x4021 0xFA
setvar 0x40E9 0x3
sound 0x2F
msgbox 0x8E4D2F5 MSG_SIGN '"[player] used a Max Repel."
end

#org @wore
= The Repel's effect wore off[.]

#org @use
= Use another?

After you're done with that, go to 0x2A4B2A and replace the script there with "goto and 0x(the offset for that script).

It hasn't been tested much, but it should work. If you find any bugs, write them here.

*The only difference is that the screen goes to the Overworld when using it. Sorry about that, but I really don't know any other way to do it.
Nice find ! But I tested and that doesn't work, are you sure about the 0x2A4B2A ? And what are you calling "goto" ? Just make a pointer of our script ?
Oh yeah, precisions could be useful.
The first repel works, and after nothing happen, not even the "repel wores off". But if I try to use another it says "already used". Then I saw a pointer 2 bytes after the location you given. At 2A4B2C, so I tried to replace that pointer with the one you gave :
The first repel works. Then I walk until it wores off, and then a textbox with weird things appear, and I can't reuse a repel, when I try it said "already used".
I've correctly repointed the textbox so, I don't know why it does not work
Reply With Quote
  #110    
Old April 26th, 2015 (03:41 PM).
Danny0317's Avatar
Danny0317 Danny0317 is offline
deez nuts!!!1!!!1!!!1!!
Gold Tier
 
Join Date: Jun 2013
Location: Miami, FL
Age: 15
Gender: Male
Nature: Hasty
Posts: 928
Quote originally posted by kleenexfeu:
Nice find ! But I tested and that doesn't work, are you sure about the 0x2A4B2A ? And what are you calling "goto" ? Just make a pointer of our script ?
Oh yeah, precisions could be useful.
The first repel works, and after nothing happen, not even the "repel wores off". But if I try to use another it says "already used". Then I saw a pointer 2 bytes after the location you given. At 2A4B2C, so I tried to replace that pointer with the one you gave :
The first repel works. Then I walk until it wores off, and then a textbox with weird things appear, and I can't reuse a repel, when I try it said "already used".
I've correctly repointed the textbox so, I don't know why it does not work
I did the goto cuz I was too lazy to go back and actually point it to the script (repel's effect wore off), lol. Did you make sure to follow both tutorials properly? Had you used the var I used before?
__________________
Pokémon Fluorite Version (Beta 2 Released)


Beta 1 is out! Click on the image to get it!

Hey guys, I'm really sorry to advertise here, but my friend's band just released a really good song, and I think I'd mean a lot to them if I shared it, so..

https://soundcloud.com/the-keys-to-lincoln-road/thinking-of-you-nana
Reply With Quote
  #111    
Old April 26th, 2015 (03:50 PM).
kleenexfeu kleenexfeu is online now
 
Join Date: Aug 2013
Gender: Male
Posts: 108
Quote originally posted by Dark Sneasel:
I did the goto cuz I was too lazy to go back and actually point it to the script (repel's effect wore off), lol. Did you make sure to follow both tutorials properly? Had you used the var I used before?
Yes I did. Basically I copied/passed your script, changed the textbox, added a textbox for the repel because it was missing. But I don't know what are you calling "goto". I know if the address of my script is 95 00 00, a pointer is 00 00 95 08, is that are you calling goto ?

And for the Darthatron (adapted by phenom) callingscript from item, I already used this and worked every time so I'm sure I haven't missed something here.
Reply With Quote
  #112    
Old April 26th, 2015 (03:52 PM).
Danny0317's Avatar
Danny0317 Danny0317 is offline
deez nuts!!!1!!!1!!!1!!
Gold Tier
 
Join Date: Jun 2013
Location: Miami, FL
Age: 15
Gender: Male
Nature: Hasty
Posts: 928
Quote originally posted by kleenexfeu:
Yes I did. Basically I copied/passed your script, changed the textbox, added a textbox for the repel because it was missing. But I don't know what are you calling "goto". I know if the address of my script is 95 00 00, a pointer is 00 00 95 08, is that are you calling goto ?

And for the Darthatron (adapted by phenom) callingscript from item, I already used this and worked every time so I'm sure I haven't missed something here.
come here, so we can fix that
http://chat.linkandzelda.com:9090/?channels=problem&nick=kleenexfeu&uio=MTE9MjA16a#
__________________
Pokémon Fluorite Version (Beta 2 Released)


Beta 1 is out! Click on the image to get it!

Hey guys, I'm really sorry to advertise here, but my friend's band just released a really good song, and I think I'd mean a lot to them if I shared it, so..

https://soundcloud.com/the-keys-to-lincoln-road/thinking-of-you-nana
Reply With Quote
  #113    
Old May 12th, 2015 (11:43 PM).
Criminon's Avatar
Criminon Criminon is offline
Pokemon: Aqua Blue
 
Join Date: Aug 2012
Gender: Male
Posts: 156
Hmmm... anyone have this completely ruin the effect of repel? It just lets me use it infinitely but it no longer repels and I never get an end message.

Edit: I swear I mess everything up the first time on everything I add... I got it working! Works great.
__________________
FC: 3582 - 9598 - 9978. Add me!
Reply With Quote
  #114    
Old May 12th, 2015 (11:47 PM).
Splash's Avatar
Splash Splash is offline
But nothing happened.
 
Join Date: Oct 2009
Location: Just use an Old Rod
Gender: Male
Nature: Hasty
Posts: 528
Quote originally posted by Criminon:
Hmmm... anyone have this completely ruin the effect of repel? It just lets me use it infinitely but it no longer repels and I never get an end message.

Edit: I swear I mess everything up the first time on everything I add... I got it working! Works great.
You did it wrong mate.. try compiling the script yourself..
__________________
༼ つ ◕_◕ ༽つ PRAISE Splash ༼ つ ◕_◕ ༽つ
|VM|Firered A RebooT|PM
|
|Pokemon FlareRed: Total Reboot!
|
Rom Hacking Beginners Click Here
!
Reply With Quote
  #115    
Old May 12th, 2015 (11:53 PM).
Criminon's Avatar
Criminon Criminon is offline
Pokemon: Aqua Blue
 
Join Date: Aug 2012
Gender: Male
Posts: 156
Quote originally posted by Splash:
You did it wrong mate.. try compiling the script yourself..

I did compile the script myself. I'm just at work, so sometimes I get distracted. I forgot to copy the 11 over on offset 080A19F8, haha.
__________________
FC: 3582 - 9598 - 9978. Add me!
Reply With Quote
  #116    
Old 2 Weeks Ago (03:47 PM). Edited 2 Weeks Ago by GalladedOlive.
GalladedOlive's Avatar
GalladedOlive GalladedOlive is offline
Former Pokémon ROM Hacker/Video Editor
 
Join Date: Jul 2013
Gender: Male
Nature: Naughty
Posts: 15
Send a message via Skype™ to GalladedOlive
Can someone actually make a video tutorial on this, so I can see how to do it? I'm not one of those learners by just reading things, but I'd prefer to just have a video ready so that I can easily just repeat the process in my head. It's really appreciated if you do that. Thanks for your help.
Reply With Quote
  #117    
Old 2 Weeks Ago (11:10 AM).
Danny0317's Avatar
Danny0317 Danny0317 is offline
deez nuts!!!1!!!1!!!1!!
Gold Tier
 
Join Date: Jun 2013
Location: Miami, FL
Age: 15
Gender: Male
Nature: Hasty
Posts: 928
Quote originally posted by GalladedOlive:
Can someone actually make a video tutorial on this, so I can see how to do it? I'm not one of those learners by just reading things, but I'd prefer to just have a video ready so that I can easily just repeat the process in my head. It's really appreciated if you do that. Thanks for your help.
Well, I don't mean to sound like a dick, and I could be wrong, but I don't think anyone really will. Most tutorials for ROM hacking are written, not videos.. Why not give it a try like this and just ask questions if you get any?
__________________
Pokémon Fluorite Version (Beta 2 Released)


Beta 1 is out! Click on the image to get it!

Hey guys, I'm really sorry to advertise here, but my friend's band just released a really good song, and I think I'd mean a lot to them if I shared it, so..

https://soundcloud.com/the-keys-to-lincoln-road/thinking-of-you-nana
Reply With Quote
  #118    
Old 2 Weeks Ago (12:50 PM).
GalladedOlive's Avatar
GalladedOlive GalladedOlive is offline
Former Pokémon ROM Hacker/Video Editor
 
Join Date: Jul 2013
Gender: Male
Nature: Naughty
Posts: 15
Send a message via Skype™ to GalladedOlive
Quote originally posted by Danny0317:
Well, I don't mean to sound like a dick, and I could be wrong, but I don't think anyone really will. Most tutorials for ROM hacking are written, not videos.. Why not give it a try like this and just ask questions if you get any?



You know, you're actually right about that. I guess I need to find that extra learning style that I've yet to discover. But, I'll try my best, & see how it goes.
__________________
Check Me Out On Twitter, Twitch, & YouTube!


Twitter: https://www.twitter.com/Poke_Merch/
Twitch: http://www.twitch.tv/pokemerchlive
YouTube: https://m.youtube.com/channel/UCeHjrnBBWGQ9A3UAFD4voIQ
Reply With Quote
  #119    
Old 2 Weeks Ago (11:45 AM).
MegaTorterra102's Avatar
MegaTorterra102 MegaTorterra102 is online now
 
Join Date: May 2015
Location: U.S.A
Gender: Male
Nature: Relaxed
Posts: 3
Could you make this for pokemon emerald?
Reply With Quote
  #120    
Old 1 Week Ago (01:31 AM).
Percy's Avatar
Percy Percy is offline
Blaziken ftw
 
Join Date: Sep 2014
Location: Somewhere in the world, obviously
Gender: Male
Nature: Gentle
Posts: 2,071
Quote originally posted by MegaTorterra102:
Could you make this for pokemon emerald?
There is one: Link
__________________
Pokémon Ranger Academy
I'm on reduced activity 'cause of some issues with our WiFi, and I'm a little busy working with my mom.
Pair

Reply With Quote
  #121    
Old 1 Week Ago (03:26 AM).
MegaTorterra102's Avatar
MegaTorterra102 MegaTorterra102 is online now
 
Join Date: May 2015
Location: U.S.A
Gender: Male
Nature: Relaxed
Posts: 3
I can't read.
I forgot it was on this page.
Whoops.
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 03:20 PM.