Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development

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
  #76    
Old July 3rd, 2014 (12:57 PM).
Creator135's Avatar
Creator135
 
Join Date: May 2014
Gender: Male
Quote originally posted by Phenom2122:
Well you could compile it with XSE, I suggest you download it and look through some of the tutorials on this site. But I see that a compiled version of the script has already been provided. So you're going to need HxD again. Where he says

"Here's a compiled version of the script for anyone having problems:"

You need to copy and paste these hex numbers into free space in your rom. Anywhere there are enough 'FF' bytes. There is a tool on this forum somewhere for finding free space but in this case it is such a small amount of bytes that we don't need it.

So once you've copied this into a FF byte area of your choice, put the cursor at the beginning of your new values. Look in the bottom left corner of HxD, that will tell you your current address in the rom. Write that number down somewhere.

Now for the final step go to 083100. Here you will need to enter that number that you wrote down earlier. However, it needs to reverse.
Just as an example, say your number was E01414. First, split it into bytes so that it looks like E0 14 14. Now put those in reverse order 14 14 E0.
Those are the numbers that you enter at 083100, your own numbers of course. Make sure the very next byte is '08'.

That should be it.

Thank you so much. I've now taken a step further into ROM Hacking.
Reply With Quote
  #77    
Old July 3rd, 2014 (01:32 PM).
Phenom2122's Avatar
Phenom2122
 
Join Date: Jun 2014
Gender: Male
Nature: Quiet
I'm glad I could help translate it lol. Now that you've done this, it'll come more naturally every time
Reply With Quote
  #78    
Old August 4th, 2014 (11:31 PM).
hackstar's Avatar
hackstar
Check it out!!
 
Join Date: Jan 2013
Location: Dhaka
Gender: Male
Nature: Bashful
Cool! anyway will this work for emerald too?
__________________
Do not waste your time by seeing my signature.
Reply With Quote
  #79    
Old August 5th, 2014 (12:33 AM).
Dark Sneasel's Avatar
Dark Sneasel
I like being a drone.
Community Supporter
 
Join Date: Jun 2013
Location: Miami, FL
Age: 14
Gender: Male
Nature: Hasty
Quote originally posted by hackstar:
Cool! anyway will this work for emerald too?
No, it will not. The offsets are different, and as of now, no one has achieved it on Emerald, at least what I know from.
__________________
Pokémon Fluorite Version (Beta 2 Released)


Join Poketch.com, a new ROM hacking community! Click on the image for more!
Reply With Quote
  #80    
Old August 9th, 2014 (06:15 PM). Edited August 13th, 2014 by Mustachemon.
Mustachemon's Avatar
Mustachemon
 
Join Date: Aug 2014
Gender: Male
Quote originally posted by Phenom2122:
Well you could compile it with XSE, I suggest you download it and look through some of the tutorials on this site. But I see that a compiled version of the script has already been provided. So you're going to need HxD again. Where he says

"Here's a compiled version of the script for anyone having problems:"

You need to copy and paste these hex numbers into free space in your rom. Anywhere there are enough 'FF' bytes. There is a tool on this forum somewhere for finding free space but in this case it is such a small amount of bytes that we don't need it.

So once you've copied this into a FF byte area of your choice, put the cursor at the beginning of your new values. Look in the bottom left corner of HxD, that will tell you your current address in the rom. Write that number down somewhere.

Now for the final step go to 083100. Here you will need to enter that number that you wrote down earlier. However, it needs to reverse.
Just as an example, say your number was E01414. First, split it into bytes so that it looks like E0 14 14. Now put those in reverse order 14 14 E0.
Those are the numbers that you enter at 083100, your own numbers of course. Make sure the very next byte is '08'.

That should be it.
I've done this several times with different offsets and even with a clear rom, but it won't work! When repel runs out, it'll flash a text box with nothing written on it for less that a second. That's all that happens.

EDIT: I was using Ctrl+V instead of Ctrl+B on HxD.

Update: I changed all the bytes and added the compiled part and then repointed, but now repel will run off and nothing will happen. I also have no idea what I'm doing wrong, can somebody help?

I've tried using a clear rom, but it doesn't work. Clearly something I'm doing is wrong.

EDIT: Now I've done it! I feel like a million bucks for figuring this out! Hahaha. For some odd reason, the compiled code that the OP provided didn't work at all, but compiling the script with XSE did. I've also learned how to use XSE, which is pretty cool. If you're reading this, don't forget that you also have to change the pointer located at 083100 on a Hex Editor. Anyway, thanks for the sweet code!
Reply With Quote
  #81    
Old August 29th, 2014 (05:15 AM). Edited August 29th, 2014 by hydrostorm.
hydrostorm
 
Join Date: Apr 2010
Hi. Please don't close this thread/ban/warn me for reviving something this old. I'm a newbie to ROM-Hacking, and I'm pretty sure I followed all of the instructions properly, however, after taking 100 steps, it doesn't ask me if I want to use another nor that it expired. Please respond ASAP. Thanks in advance.

(P.S.) By "doesn't work" I mean another multichoice box shows up (actually 2 of them), instead of the expected Yes/No with the message thing.

EDIT: IMAGES -(IMGUR.COM)
/ahxTU0z (1st Image; note the small multichoice box on the lower right hand corner)
/tjrODMw (2nd Image; the second screen of the multichoice, opened right after selecting any of the two options from the first)
/cQZUDLt (3rd Image; reuse of repel after exiting multichoice boxes, eternal freeze)
Reply With Quote
  #82    
Old August 30th, 2014 (06:19 AM).
Artemis64
 
Join Date: Mar 2014
Gender: Male
Can this be ported to Emerald? The pointer is at 0xB58C0
Reply With Quote
  #83    
Old October 11th, 2014 (07:32 AM).
anonyboy's Avatar
anonyboy
 
Join Date: Sep 2013
Location: Israel
Gender: Male
Nature: Adamant
Hi, i've tried to insert this system but after my repel maxes out instead of asking me for another one it prompts the slot machine game. what should i do?
Reply With Quote
  #84    
Old October 13th, 2014 (01:40 PM).
Dark Sneasel's Avatar
Dark Sneasel
I like being a drone.
Community Supporter
 
Join Date: Jun 2013
Location: Miami, FL
Age: 14
Gender: Male
Nature: Hasty
For emerald:

Alright, so with the help of Le Pug and Touched, I've made a very, very ratchet system for it. The repel's effect wore off script offset is at 2A4B2A, so you can repoint it or just goto @pointer it...
Anyways, of course, this would be much better with a multichoice, but just for testing I did yes/no boxes. Anyways, here it is, you don't need to credit us or anything..

#dynamic 0xE40000
#org @start
lockall
msgbox @woreoff 0x6
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @Repel
msgbox @2 0x5
compare 0x800D 0x1
if 0x1 goto @Super
msgbox @3 0x5
compare 0x800D 0x1
if 0x1 goto @Max
releaseall
end

#org @Repel
checkitem 0x56 0x1
compare 0x800D 0x1
if 0x4 goto @rp
msgbox @notenough 0x6
releaseall
end

#org @notenough
= You don't have enough.

#org @rp
sound 0x2F
msgbox @usedr MSG_SIGN
removeitem 0x56 0x1
setvar 0x4021 100
release
end

#org @usedr
= [player] used a Repel.

#org @1
= Use a Repel?

#org @2
= Use a Super Repel?

#org @3
= Use a Max Repel?

#org @Super
checkitem 0x53 0x1
compare 0x800D 0x1
if 0x4 goto @sp
msgbox @notenough 0x6
releaseall
end

#org @sp
sound 0x2F
msgbox @useds MSG_SIGN
removeitem 0x53 0x1
setvar 0x4021 200
releaseall
end

#org @useds
= [player] used a Super Repel.

#org @Max
checkitem 0x54 0x1
compare 0x800D 0x1
if 0x4 goto @mp
msgbox @notenough 0x6
releaseall
end

#org @mp
sound 0x2F
msgbox @usedm MSG_SIGN
removeitem 0x54 0x1
setvar 0x4021 250
release
end

#org @usedm
= [player] used a Max Repel.

#org @woreoff
= The Repel's effect wore off[.]
__________________
Pokémon Fluorite Version (Beta 2 Released)


Join Poketch.com, a new ROM hacking community! Click on the image for more!
Reply With Quote
  #85    
Old October 13th, 2014 (03:40 PM).
pokemontutorialTV's Avatar
pokemontutorialTV
 
Join Date: Feb 2014
Location: Germany, K-Town
Gender: Male
Nature: Calm
Send a message via Skype™ to pokemontutorialTV
@Dark Sneasel
Steps are in HEX, so the line
Quote:
setvar 0x4021 100
is currently wrong and produces 256 steps-repel.

Nice to see someone else dont mess up the hole bag routine Thats the better soulotion i guess to
__________________
Making Youtube Videos about Pokémon.
_______________________________________________
Pokémon Zoisit:

_______________________________________________
My Youtube Channel with over 1000 videos to Pokémon: http://www.youtube.com/user/pokemontutorialTV
Reply With Quote
  #86    
Old October 13th, 2014 (03:53 PM).
Dark Sneasel's Avatar
Dark Sneasel
I like being a drone.
Community Supporter
 
Join Date: Jun 2013
Location: Miami, FL
Age: 14
Gender: Male
Nature: Hasty
Quote originally posted by pokemontutorialTV:
@Dark Sneasel
Steps are in HEX, so the line

is currently wrong and produces 256 steps-repel.

Nice to see someone else dont mess up the hole bag routine Thats the better soulotion i guess to
In the newest XSE you don't need to put 0x in front of a number and it won't be hex.
__________________
Pokémon Fluorite Version (Beta 2 Released)


Join Poketch.com, a new ROM hacking community! Click on the image for more!
Reply With Quote
  #87    
Old October 13th, 2014 (04:10 PM).
HidoranBlaze's Avatar
HidoranBlaze
 
Join Date: Apr 2013
Age: 18
Gender: Male
Quote originally posted by pokemontutorialTV:
@Dark Sneasel
Steps are in HEX, so the line

is currently wrong and produces 256 steps-repel.

Nice to see someone else dont mess up the hole bag routine Thats the better soulotion i guess to
You know, you keep saying Darthatron's routine sucks. Why don't you share your routine with us? You have more than 15 posts now, I believe.
Reply With Quote
  #88    
Old October 14th, 2014 (02:52 AM).
pokemontutorialTV's Avatar
pokemontutorialTV
 
Join Date: Feb 2014
Location: Germany, K-Town
Gender: Male
Nature: Calm
Send a message via Skype™ to pokemontutorialTV
Quote:
You know, you keep saying Darthatron's routine sucks. Why don't you share your routine with us? You have more than 15 posts now, I believe.
Because DarkSneasel posted the soulution? If you setvar 0x4021 0x9, repel work for 9 steps. Some Routines do "backgroundwork" and those stepcounters are some of those.
You can compare also this var, for example, for an quest or sth. else like this:

Code:
compare 0x4021 25
if 0x1 goto @operdoor
//doorclosed
end

@opendoor
//open secret door
end
__________________
Making Youtube Videos about Pokémon.
_______________________________________________
Pokémon Zoisit:

_______________________________________________
My Youtube Channel with over 1000 videos to Pokémon: http://www.youtube.com/user/pokemontutorialTV
Reply With Quote
  #89    
Old October 14th, 2014 (09:06 AM).
HidoranBlaze's Avatar
HidoranBlaze
 
Join Date: Apr 2013
Age: 18
Gender: Male
Quote originally posted by pokemontutorialTV:
Because DarkSneasel posted the soulution? If you setvar 0x4021 0x9, repel work for 9 steps. Some Routines do "backgroundwork" and those stepcounters are some of those.
You can compare also this var, for example, for an quest or sth. else like this:

Code:
compare 0x4021 25
if 0x1 goto @operdoor
//doorclosed
end

@opendoor
//open secret door
end
DarkSneasel's script doesn't work exactly like BW's repels though. BW automatically uses the type of repel you used last time. You have to manually choose the repel you want to use though, in DarkSneasel's case. So it's, like DarkSneasel said, a ratchet solution.
(I still think this is cool, but an ASM port of Darthatron's repel routine would be better though)
Reply With Quote
  #90    
Old October 14th, 2014 (02:48 PM). Edited October 14th, 2014 by Dark Sneasel.
Dark Sneasel's Avatar
Dark Sneasel
I like being a drone.
Community Supporter
 
Join Date: Jun 2013
Location: Miami, FL
Age: 14
Gender: Male
Nature: Hasty
Wait, there's an emerald item ASM hack? So can't we just make one var, and give it a different value depending on the repel they use, then do the repel effect, and then after the repel wears off, compare the var?

edit: it appears that ASM doesn't work, and big daddy Touched is working on some items stuff
__________________
Pokémon Fluorite Version (Beta 2 Released)


Join Poketch.com, a new ROM hacking community! Click on the image for more!
Reply With Quote
  #91    
Old October 15th, 2014 (03:33 AM).
pokemontutorialTV's Avatar
pokemontutorialTV
 
Join Date: Feb 2014
Location: Germany, K-Town
Gender: Male
Nature: Calm
Send a message via Skype™ to pokemontutorialTV
Quote:
DarkSneasel's script doesn't work exactly like BW's repels though. BW automatically uses the type of repel you used last time. You have to manually choose the repel you want to use though, in DarkSneasel's case. So it's, like DarkSneasel said, a ratchet solution.
(I still think this is cool, but an ASM port of Darthatron's repel routine would be better though)
Why the f*** ASM, if this solution dont mess up your hole bag routines? I dont really understand. If you want to choose the repel, implement a multichoice-box. That is the best soultion i think.
__________________
Making Youtube Videos about Pokémon.
_______________________________________________
Pokémon Zoisit:

_______________________________________________
My Youtube Channel with over 1000 videos to Pokémon: http://www.youtube.com/user/pokemontutorialTV
Reply With Quote
  #92    
Old October 19th, 2014 (10:34 PM).
Lance32497's Avatar
Lance32497
LanceKoijer of Pokemon_Addicts
 
Join Date: Aug 2014
Location: Criscanto town-Ginoa Region xD
Gender: Male
Nature: Adamant
What about super repel and Max repel?
__________________
My Threads

Reply With Quote
  #93    
Old October 20th, 2014 (01:14 AM).
Lance32497's Avatar
Lance32497
LanceKoijer of Pokemon_Addicts
 
Join Date: Aug 2014
Location: Criscanto town-Ginoa Region xD
Gender: Male
Nature: Adamant


I DID IT! ! !

But wait?

After I pressed YES, It restarts!!

Hpw can I fix that? Also The callasm offset given by dartharton, Do I need to change that or just copy that?
__________________
My Threads

Reply With Quote
  #94    
Old October 30th, 2014 (03:32 PM).
Patrick74161
 
Join Date: Jul 2014
Gender: Male
That's Awesome! I Don't Play around with Scripting much...Not a stronghold for me. Maybe someone can make this into an ips Patch for Everyone to enjoy!
__________________
Reply With Quote
  #95    
Old October 31st, 2014 (07:23 AM).
HidoranBlaze's Avatar
HidoranBlaze
 
Join Date: Apr 2013
Age: 18
Gender: Male
Quote originally posted by Patrick74161:
That's Awesome! I Don't Play around with Scripting much...Not a stronghold for me. Maybe someone can make this into an ips Patch for Everyone to enjoy!
9 times out of 10, you're not going to get an ips patch in the research forums. I suggest learning how to compile scripts and how to use a hex editor, since this isn't really hard to insert if you know how to do those two things.
Reply With Quote
  #96    
Old October 31st, 2014 (04:07 PM).
Patrick74161
 
Join Date: Jul 2014
Gender: Male
Quote originally posted by HidoranBlaze:
9 times out of 10, you're not going to get an ips patch in the research forums. I suggest learning how to compile scripts and how to use a hex editor, since this isn't really hard to insert if you know how to do those two things.
Yeah, I Had Realized that when i saw Non ips stuff in the research forms here. I started to learn how to insert a hex editor... Thanks!
__________________
Reply With Quote
  #97    
Old October 31st, 2014 (10:02 PM).
thiaguinhohp's Avatar
thiaguinhohp
Hacking newbie
 
Join Date: Dec 2013
Location: Brasil
Gender: Male
Nature: Adamant
Why people dont do amazing things like this for Emerald ??? Emerald got battle frontier so its much better than fire red. Wake up hackers :o
__________________
One of my dreams is to make my first Emerald hack rom! I will do it!
Reply With Quote
  #98    
Old 4 Weeks Ago (03:18 AM). Edited 4 Weeks Ago by Percy.
Percy's Avatar
Percy
Known in the past as BlazikenXY
 
Join Date: Sep 2014
Location: Somewhere in the world, obviously
Age: 18
Gender: Male
Nature: Gentle
Hello! So, I have managed to develop another ratchet repel system for Emerald, and here's the script:
Code:
#dynamic 0xE40000

#org @repelsystem
lock
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @yes
release
end

#org @yes
lock
multichoice 0x0 0x3 0x71 0x0
copyvar 0x8000 0x800D
compare 0x800D 0x0
if 0x1 goto @repel
compare 0x800D 0x1
if 0x1 goto @superrepel
compare 0x800D 0x2
if 0x1 goto @maxrepel
compare 0x800D 0x3
if 0x1 goto @exit
release
end

#org @exit
release
end

#org @1
= Repel's effect wore off...\pUse another?

#org @repel
checkitem 0x56 0x1
compare 0x800D 0x1
if 0x4 goto @rp
msgbox @notenough 0x6
release
end

#org @notenough
= You don't have enough.

#org @rp
sound 0x2F
msgbox @usedr MSG_SIGN
removeitem 0x56 0x1
setvar 0x4021 100
release
end

#org @usedr
= [player] used a Repel.

#org @superrepel
checkitem 0x53 0x1
compare 0x800D 0x1
if 0x4 goto @sp
msgbox @notenough 0x6
releaseall
end

#org @sp
sound 0x2F
msgbox @useds MSG_SIGN
removeitem 0x53 0x1
setvar 0x4021 200
releaseall
end

#org @useds
= [player] used a Super Repel.

#org @maxrepel
checkitem 0x54 0x1
compare 0x800D 0x1
if 0x4 goto @mp
msgbox @notenough 0x6
release
end

#org @mp
sound 0x2F
msgbox @usedm MSG_SIGN
removeitem 0x54 0x1
setvar 0x4021 250
release
end

#org @usedm
= [player] used a Max Repel.
Here's how to apply it. First, you must grab hold of XSE, and this tool: http://www.pokecommunity.com/showthread.php?t=335308, and of course, a clean Emerald ROM.

Open your ROM with Complete Multichoice Box Editor and XSE. Copy this script in XSE. And, in CMBE, expand or edit one of the choices, to

Repel
Super Repel
Max Repel
Exit

Save it. And compile the script. Fire up your hex editor, and navigate to where you implemented your repel system, and copy it, then go to 2A4B2A, and paste it there.
And, if you have some questions, or you found some bugs, just PM or VM me.

PS: Here's a pic:

edit: btw, I copied some parts from Dark Sneasel's script. So, some of this, is to him.
__________________
Credits to Ilona-the-Sinister for my avatar.

Hey, folks! I don't know what to put here, so I better just advertise.
Can you give me a hand with my hack? Just PM me.

Oh, yeah, I don't need any mappers, now, 'cause I already have 2, and now I need Music Composer, and spriting. And, if you're friendly enough, VM me, and we can chat!
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 05:34 AM.