The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Reload this Page Development Port of the BW2 Repel system to GBA...
Sign Up Rules/FAQ Daily Battle Blogs Mark Forums Read


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
  #126    
Old July 16th, 2015 (10:32 AM).
Danny0317's Avatar
Danny0317 Danny0317 is offline
Fluorite's back, brah
Gold Tier
 
Join Date: Jun 2013
Location: Miami, FL
Age: 16
Gender: Male
Nature: Hasty
Posts: 1,061
Quote:
Originally Posted by jaizu View Post
A friend got that system for RUBY without insert any ASM rutine, can I ask why I need it in Emerald?
Let me see your friend's and I'll tell you why.
__________________
Reply With Quote

Relevant Advertising!

  #127    
Old July 16th, 2015 (1:31 PM).
Jaizu's Avatar
Jaizu Jaizu is offline
Spanish Rom Hacker
 
Join Date: Jan 2010
Location: Spain
Gender: Male
Posts: 75
Quote:
Originally Posted by Danny0317 View Post
Let me see your friend's and I'll tell you why.
He just found the script a few bytes above the repel dialogue and made a checkitem and removeitem. I think his system is like yours, but I can't find the reason yo insert the routine that u mention since i cant see any callasm or any reason to put it.
Reply With Quote
  #128    
Old July 16th, 2015 (1:40 PM).
Danny0317's Avatar
Danny0317 Danny0317 is offline
Fluorite's back, brah
Gold Tier
 
Join Date: Jun 2013
Location: Miami, FL
Age: 16
Gender: Male
Nature: Hasty
Posts: 1,061
Quote:
Originally Posted by jaizu View Post
He just found the script a few bytes above the repel dialogue and made a checkitem and removeitem. I think his system is like yours, but I can't find the reason yo insert the routine that u mention since i cant see any callasm or any reason to put it.
Does his ask which repel to use 3 times/ have a multibox?

Oh, parece que hablas espanol, es Reoneky?
__________________
Reply With Quote
  #129    
Old August 1st, 2015 (3:13 AM).
Wireshark's Avatar
Wireshark Wireshark is offline
 
Join Date: Feb 2015
Gender: Male
Posts: 9
I tried it twice now and it ended the same way both times.

First i tried MrDollSteak's FireRed rombase and it didn't work,
so I used a clean FireRed rom for my next attempt, but it didn't work either.

So what happens is that when the repel runs out, nothing happens...
No message, no crash, nothing, it's simply not notifying me but I can use another one without any problems
Reply With Quote
  #130    
Old August 26th, 2015 (7:03 AM).
raph333's Avatar
raph333 raph333 is offline
 
Join Date: Nov 2014
Location: NY
Gender: Male
Nature: Lax
Posts: 19
Send a message via Skype™ to raph333
Quote:
Originally Posted by Wireshark View Post
I tried it twice now and it ended the same way both times.

First i tried MrDollSteak's FireRed rombase and it didn't work,
so I used a clean FireRed rom for my next attempt, but it didn't work either.

So what happens is that when the repel runs out, nothing happens...
No message, no crash, nothing, it's simply not notifying me but I can use another one without any problems
This is the same thing happening to me. The repel works fine. I've counted out 100 steps, and afterwards no message comes up. Not even "repel wore off".
__________________

My new hack:
Pokémon: Merging Worlds
http://www.pokecommunity.com/showthread.php?t=354622
Reply With Quote
  #131    
Old September 25th, 2015 (5:07 PM).
Leafbarrett's Avatar
Leafbarrett Leafbarrett is offline
 
Join Date: Mar 2009
Age: 24
Gender: Male
Posts: 75
Quote:
Originally Posted by raph333 View Post
This is the same thing happening to me. The repel works fine. I've counted out 100 steps, and afterwards no message comes up. Not even "repel wore off".
Same here. I am following the tutorial to the letter and it just will not work. This is why I personally want patches for things like this: it's not that I'm lazy, it's that I am physically incapable of getting non-patches to work no matter how many times I do the exact thing I am told to.
Reply With Quote
  #132    
Old September 25th, 2015 (5:29 PM).
Danny0317's Avatar
Danny0317 Danny0317 is offline
Fluorite's back, brah
Gold Tier
 
Join Date: Jun 2013
Location: Miami, FL
Age: 16
Gender: Male
Nature: Hasty
Posts: 1,061
Quote:
Originally Posted by Leafbarrett View Post
Same here. I am following the tutorial to the letter and it just will not work. This is why I personally want patches for things like this: it's not that I'm lazy, it's that I am physically incapable of getting non-patches to work no matter how many times I do the exact thing I am told to.
Did you do this part?

"Finally, replace the pointer at 08083100 with the pointer to the script. TADA! It's done. It works a treat. Let me know if you guys have any trouble, or if you find an issue with it."

As harsh as it may sound, unless there's an error on the first post, then you're probably not doing absolutely everything you have to. My suggestion would just be to try again.
__________________
Reply With Quote
  #133    
Old September 26th, 2015 (3:58 PM).
Leafbarrett's Avatar
Leafbarrett Leafbarrett is offline
 
Join Date: Mar 2009
Age: 24
Gender: Male
Posts: 75
Quote:
Originally Posted by Danny0317 View Post
Did you do this part?

"Finally, replace the pointer at 08083100 with the pointer to the script. TADA! It's done. It works a treat. Let me know if you guys have any trouble, or if you find an issue with it."

As harsh as it may sound, unless there's an error on the first post, then you're probably not doing absolutely everything you have to. My suggestion would just be to try again.
Er... sorry, I never meant to imply the first post was wrong. Rather, I was saying that I just can't get it to work correctly because I'm me, and can't do anything right.

Yes, I did do that. In fact, here.
https://www.youtube.com/watch?v=sO_AP6cbaz0
Instead of just saying "I did everything", here is a video of me attempting it a third time, showing step by step what I did, and the result afterwards (failure again). Sorry about the aspect ratio screwery, I didn't think that through very much.
Reply With Quote
  #134    
Old September 27th, 2015 (11:10 PM). Edited September 28th, 2015 by Buffel Saft.
Buffel Saft's Avatar
Buffel Saft Buffel Saft is offline
 
Join Date: Sep 2013
Gender: Male
Posts: 93
Quote:
Originally Posted by Leafbarrett View Post
Yes, I did do that. In fact, here.

Instead of just saying "I did everything", here is a video of me attempting it a third time, showing step by step what I did, and the result afterwards (failure again). Sorry about the aspect ratio screwery, I didn't think that through very much.
As far as I can tell you've made all the byte changes correctly. Have you tried compiling the script in XSE yourself instead of using the compiled version? I had a similar problem and that's what fixed it for me.

EDIT: It's worth noting that there's nothing wrong with the compiled code given in the OP, it's just that it can't be directly pasted into the ROM unless you place it at 0x800000, or edit the pointers within it. It's much easier to just compile the script.
Reply With Quote
  #135    
Old September 28th, 2015 (12:44 PM).
Leafbarrett's Avatar
Leafbarrett Leafbarrett is offline
 
Join Date: Mar 2009
Age: 24
Gender: Male
Posts: 75
Quote:
Originally Posted by Buffel Saft View Post
As far as I can tell you've made all the byte changes correctly. Have you tried compiling the script in XSE yourself instead of using the compiled version? I had a similar problem and that's what fixed it for me.

EDIT: It's worth noting that there's nothing wrong with the compiled code given in the OP, it's just that it can't be directly pasted into the ROM unless you place it at 0x800000, or edit the pointers within it. It's much easier to just compile the script.
...oh. Will try this later on.
Reply With Quote
  #136    
Old October 31st, 2015 (2:44 AM).
BlackAce93 BlackAce93 is offline
 
Join Date: Jan 2014
Gender: Male
Posts: 21
Quote:
Originally Posted by Darthatron View Post
So, clearly the best thing about BW2 is the fact that it asks if you'd like to use another repel if it expires.
THIS IS AWESOME!
Why did Gamefreak not add this earlier?
Anyway, I've made a port of it for FireRed. I hope you enjoy it.



It will only ask you if you'd like to use another repel if you have another one of the same repel you just used. Otherwise it will just tell you the repel expired. This is how it works in BW2.

There are a lot of byte changes to be made. Sorry for that.

Code:
080830CA: 0C 48 EB F7 4C FA 01 06 00 29 16 D0 41 1E 0C 06 0D 0A 07 48 EB F7 51 FA 00 2C 0E D1 03 4C 25 80 05 48 E6 F7 FA FC 01 20 08 E0 30 AD 03 02
08083119: 06
080A19A5: 06
080A19F6: 1C
080A19F8: 11
080A19FC: 0F
080A1A0E: 21 88 09 02 41 40
080A1A1E: 34 4B 28 21 71 43 5B 18 D9 79 30 1C 02 22 17 4B FF F7 49 FB C7 F7 85 FF 70 BD 20 40 00 00 FF FF 00 00 30 AD 03 02
080A1A5A: 00 00 00 00
080A1A68: 00 00 00 00
081BFB66: 00 00 00 B5 04 48 50 21 00 F0 01 F8 00 BD 00 4A 10 47 1D 74 07 08 99 19 0A 08 00 00 00 00 00 00
Then you have to compile this script. You can compile it anywhere, just note the pointer you compiled it to:
Code:
#org @Main
lock
checkitem 0x800E 1
compare LASTRESULT 1
if b_>= goto @ThereAreMore
msgbox @RepelExpired 3
release
end

#org @ThereAreMore
msgbox @UseAnother 5
closeonkeypress
compare LASTRESULT 1
if b_true goto @CallASM
end

#org @CallASM
callasm 0x081BFB69
end

#org @RepelExpired
= Repel's effect wore off.

#org @UseAnother
= Repel's effect wore off...\nUse another?
Here's a compiled version of the script for anyone having problems:
Code:
6A 47 0E 80 01 00 21 0D 80 01 00 06 04 1C 00 80 08 0F 00 39 00 80 08 09 03 6C 02 FF 0F 00 54 00 80 08 09 05 68 21 0D 80 01 00 06 01 32 00 80 08 02 FF 23 69 FB 1B 08 02 FF CC D9 E4 D9 E0 B4 E7 00 D9 DA DA D9 D7 E8 00 EB E3 E6 D9 00 E3 DA DA AD FF 00 FF CC D9 E4 D9 E0 B4 E7 00 D9 DA DA D9 D7 E8 00 EB E3 E6 D9 00 E3 DA DA AD AD AD FE CF E7 D9 00 D5 E2 E3 E8 DC D9 E6 AC FF 00 FF FF FF FF
Finally, replace the pointer at 08083100 with the pointer to the script. TADA! It's done. It works a treat. Let me know if you guys have any trouble, or if you find an issue with it.

EMERALD USERS SEE THIS POST
Sorry I was dumb >< how can I edit ? I open my rom and search for the address but it said this file does not contain that address >< pls help me
Reply With Quote
  #137    
Old December 20th, 2015 (8:44 AM).
Lightning X's Avatar
Lightning X Lightning X is offline
 
Join Date: Oct 2015
Location: ???
Age: 19
Gender: Male
Nature: Calm
Posts: 89
Quote:
Originally Posted by BlackAce93 View Post
Sorry I was dumb >< how can I edit ? I open my rom and search for the address but it said this file does not contain that address >< pls help me
which address?
Reply With Quote
  #138    
Old March 16th, 2016 (11:42 AM).
kristianangel89's Avatar
kristianangel89 kristianangel89 is offline
 
Join Date: Mar 2016
Posts: 68
This works realy good for my patch! Thanks bro
__________________
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 GMT -8. The time now is 1:24 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2016 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 - 2016 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.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2016.