Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Reload this Page Research: Keeping TMs After Use

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
  #1    
Old December 14th, 2013 (06:54 PM).
The Shiny Ho-Oh's Avatar
The Shiny Ho-Oh The Shiny Ho-Oh is offline
Golden Bird
 
Join Date: Sep 2010
Location: In the Blazing Skies
Age: 22
Gender: Male
Nature: Bold
Posts: 45
I've been working on my ideal FireRed game for a while now, and I've implemented a ton of stuff from here that is absolutely amazing and makes the game feel so much more fresh, but one of the things I've been thinking about is saving TMs like in the new game. I have no experience scripting for Pokemon, but I do have a background in game programming, so bare with me here.

There is a function for checking what type of item you use. You could say that if the item used is a TM, after you use one, and it is not an HM, the game would "quietly" add one to your bag. I recently implemented the BW2 Repel System from Pokecommunity, so I know checking items and removing them from the bag/(adding them to the bag) shouldn't be much problem, if you can stop it from displaying "picked up TM##", you should be able to get the basic idea of keeping TMs in the game.

Thoughts?
__________________
Reply With Quote
  #2    
Old December 18th, 2013 (01:58 AM).
kearnseyboy6's Avatar
kearnseyboy6 kearnseyboy6 is offline
Aussie's Toughest Mudder
 
Join Date: Dec 2008
Posts: 280
Sorta been done before: Use this info to further your research

http://www.romhackersonline.com/xf/index.php?threads/quick-pok%C3%A9mon-research-thread.102/
__________________
HOLIDAYING CURRENTLY!!
Reply With Quote
  #3    
Old December 24th, 2013 (06:43 PM).
ShyRayq's Avatar
ShyRayq ShyRayq is online now
Unprofessional Unprofessional
 
Join Date: Aug 2007
Gender: Male
Nature: Adamant
Posts: 877
Sorry, but the locations that the person found were in Fire Red 1.1

Since everyone uses FR v.1, I found the locations in that verison.
They are at 0x124EA0 and 0x124F6C.
__________________
3DS Friend Code: 5069-3944-3902
IGN: Peter, (Pokemon Y, Pokemon OR)
Friend Safari: (Fighting) Throh, Meditite, Breloom
Live Pokedex (Y) Completed as of 02/03/14 (718), 10/11/14 (719)
Live Pokedex (OR) Completed as of 25/12/14 (719)
Big thanks especially to DestinedJagold, Xerneas_X, Elements1 and ~RNC~

PM me if you want to trade, or add my FC.
Reply With Quote
  #4    
Old January 25th, 2014 (11:44 PM).
Leafbarrett's Avatar
Leafbarrett Leafbarrett is offline
 
Join Date: Mar 2009
Age: 22
Posts: 68
So, I notice that all these things are exclusively for Fire Red (as always, because everyone hates Emerald apparently). Does anyone know how I would go about doing this in Emerald?
Reply With Quote
  #5    
Old January 26th, 2014 (12:54 AM).
ShyRayq's Avatar
ShyRayq ShyRayq is online now
Unprofessional Unprofessional
 
Join Date: Aug 2007
Gender: Male
Nature: Adamant
Posts: 877
Quote originally posted by Leafbarrett:
So, I notice that all these things are exclusively for Fire Red (as always, because everyone hates Emerald apparently). Does anyone know how I would go about doing this in Emerald?
http://www.pokecommunity.com/showpost.php?p=7993745&postcount=420
Here you go, this SHOULD work.
__________________
3DS Friend Code: 5069-3944-3902
IGN: Peter, (Pokemon Y, Pokemon OR)
Friend Safari: (Fighting) Throh, Meditite, Breloom
Live Pokedex (Y) Completed as of 02/03/14 (718), 10/11/14 (719)
Live Pokedex (OR) Completed as of 25/12/14 (719)
Big thanks especially to DestinedJagold, Xerneas_X, Elements1 and ~RNC~

PM me if you want to trade, or add my FC.
Reply With Quote
  #6    
Old January 26th, 2014 (02:14 AM).
Jambo51's Avatar
Jambo51 Jambo51 is offline
Glory To Arstotzka
 
Join Date: Jun 2009
Gender: Male
Nature: Quiet
Posts: 730
Quote originally posted by ShyRayq:
Sorry, but the locations that the person found were in Fire Red 1.1

Since everyone uses FR v.1, I found the locations in that verison.
They are at 0x124EA0 and 0x124F6C.
Actually, everyone always uses FireRed 1.0, not 1.1. Not entirely sure why this is, but if you look around the site, you'll see plenty of threads for fixing the bugs left by Game Freak in 1.0. Reason this matters is that 1.0 and 1.1 have differing locations for many of their structures and only the 1.0 locations are known.
__________________
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
Reply With Quote
  #7    
Old February 2nd, 2014 (09:46 AM).
LCCoolJ95's Avatar
LCCoolJ95 LCCoolJ95 is offline
Limited Capacity
 
Join Date: May 2009
Location: The World That Never Was
Age: 20
Gender: Male
Nature: Naive
Posts: 261
This would be a good time to post this:

http://www.youtube.com/watch?v=nx9CLiXvSwM

Reusable TMs in Emerald...yeaaa
__________________
"The greatest obstacle in life is Yourself. Overcome it, and you will achieve the greatest accomplishment of all." -Art Beins, 1982

Pokémon Emerald 650 (Resource Patch): http://www.pokecommunity.com/showthread.php?t=346694
Pokémon Theta Emerald: http://www.pokecommunity.com/showthread.php?t=349258
Reply With Quote
  #8    
Old February 2nd, 2014 (06:38 PM).
MrDollSteak's Avatar
MrDollSteak MrDollSteak is offline
Formerly known as 11bayerf1
 
Join Date: Dec 2008
Location: Hong Kong
Age: 20
Gender: Male
Posts: 507
Quote originally posted by LCCoolJ95:
This would be a good time to post this:

http://www.youtube.com/watch?v=nx9CLiXvSwM

Reusable TMs in Emerald...yeaaa
Hey great job! How did you remove the quantity?
This'll be great for Fire Red too.

Wouldn't happen to be the Mystery Bytes would it?
__________________
Reply With Quote
  #9    
Old February 2nd, 2014 (11:34 PM).
Telinc1's Avatar
Telinc1 Telinc1 is offline
Weirdo Extraordinaire
 
Join Date: Jun 2013
Gender: Male
Nature: Bold
Posts: 81
Quote originally posted by MrDollSteak:
Hey great job! How did you remove the quantity?
This'll be great for Fire Red too.

Wouldn't happen to be the Mystery Bytes would it?
I just tried it. Setting the first Mystery to 1 removes the quantity, but it sticks the little HM icon in the start of the name and it overlaps with the "No. XX" text. Also, it makes it so that the TM can't be held (which is a good thing, IMO).
__________________

Check out my hacks by clicking on the userbar!
Check out my new website!
Reply With Quote
  #10    
Old February 3rd, 2014 (04:03 AM).
Zarafaust Zarafaust is offline
 
Join Date: Dec 2012
Gender: Male
Posts: 1
There seems to be a bug in this method, as soon as you close the the TM case the tm vanishes. It will thus let you use the one tm on multiple pokemon but it can still only be used once.
Reply With Quote
  #11    
Old February 3rd, 2014 (05:34 AM).
MrDollSteak's Avatar
MrDollSteak MrDollSteak is offline
Formerly known as 11bayerf1
 
Join Date: Dec 2008
Location: Hong Kong
Age: 20
Gender: Male
Posts: 507
Quote originally posted by Telinc1:
I just tried it. Setting the first Mystery to 1 removes the quantity, but it sticks the little HM icon in the start of the name and it overlaps with the "No. XX" text. Also, it makes it so that the TM can't be held (which is a good thing, IMO).
I thought that would be the case, because I noticed that HMs all were mystery 1, and TMs 0.

What I may try and do is find the ASM that loads that mystery value stuff, and depending on whether its an actual HM or not, not display the HM logo.

If I do get around to doing that (and if it works) I suppose I'll put it over here.
__________________
Reply With Quote
  #12    
Old February 3rd, 2014 (08:44 AM).
LCCoolJ95's Avatar
LCCoolJ95 LCCoolJ95 is offline
Limited Capacity
 
Join Date: May 2009
Location: The World That Never Was
Age: 20
Gender: Male
Nature: Naive
Posts: 261
Quote originally posted by MrDollSteak:
Hey great job! How did you remove the quantity?
This'll be great for Fire Red too.

Wouldn't happen to be the Mystery Bytes would it?
it is actually.

I used the GBA Item Editor. I actually did this months ago, but without actually using a hex editor and changing a few bytes, the TM would not be considered reusable.

I compared TM50 to HM01 to see what was different between them. A TM uses the Mystery Bytes 0 0, while the HM uses 1 0. I changed all the TMs to 1 0 to see what would happen, and I got what I did in the video. It doesn't show the quantity.

However, you can still buy more than one TM in the game, through the Poké Marts and the Game Corner.
__________________
"The greatest obstacle in life is Yourself. Overcome it, and you will achieve the greatest accomplishment of all." -Art Beins, 1982

Pokémon Emerald 650 (Resource Patch): http://www.pokecommunity.com/showthread.php?t=346694
Pokémon Theta Emerald: http://www.pokecommunity.com/showthread.php?t=349258
Reply With Quote
  #13    
Old February 3rd, 2014 (08:15 PM).
MrDollSteak's Avatar
MrDollSteak MrDollSteak is offline
Formerly known as 11bayerf1
 
Join Date: Dec 2008
Location: Hong Kong
Age: 20
Gender: Male
Posts: 507
Quote originally posted by LCCoolJ95:
it is actually.

I used the GBA Item Editor. I actually did this months ago, but without actually using a hex editor and changing a few bytes, the TM would not be considered reusable.

I compared TM50 to HM01 to see what was different between them. A TM uses the Mystery Bytes 0 0, while the HM uses 1 0. I changed all the TMs to 1 0 to see what would happen, and I got what I did in the video. It doesn't show the quantity.

However, you can still buy more than one TM in the game, through the Poké Marts and the Game Corner.
Yeah the mystery byte is the same as in Fire Red.
The only difference is that 01 puts an HM logo in front for fire red.
__________________
Reply With Quote
  #14    
Old February 4th, 2014 (05:44 AM).
kearnseyboy6's Avatar
kearnseyboy6 kearnseyboy6 is offline
Aussie's Toughest Mudder
 
Join Date: Dec 2008
Posts: 280
I have tried expanding the TM's but so far I have had no luck. Repointing and expanding simply doesn't work... I think
__________________
HOLIDAYING CURRENTLY!!
Reply With Quote
  #15    
Old February 4th, 2014 (10:31 AM).
LCCoolJ95's Avatar
LCCoolJ95 LCCoolJ95 is offline
Limited Capacity
 
Join Date: May 2009
Location: The World That Never Was
Age: 20
Gender: Male
Nature: Naive
Posts: 261
Quote originally posted by MrDollSteak:
Yeah the mystery byte is the same as in Fire Red.
The only difference is that 01 puts an HM logo in front for fire red.
In Emerald it doesn't happen...weird...
__________________
"The greatest obstacle in life is Yourself. Overcome it, and you will achieve the greatest accomplishment of all." -Art Beins, 1982

Pokémon Emerald 650 (Resource Patch): http://www.pokecommunity.com/showthread.php?t=346694
Pokémon Theta Emerald: http://www.pokecommunity.com/showthread.php?t=349258
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 09:50 PM.