The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary Hack Research & Development (https://www.pokecommunity.com/forumdisplay.php?f=195)
-   -   Research Keeping TMs After Use (https://www.pokecommunity.com/showthread.php?t=315126)

The Shiny Ho-Oh December 14th, 2013 6:54 PM

Keeping TMs After Use
 
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?

kearnseyboy6 December 18th, 2013 1:58 AM

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/

ShyRayq December 24th, 2013 6:43 PM

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.

Leafbarrett January 25th, 2014 11:44 PM

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?

ShyRayq January 26th, 2014 12:54 AM

Quote:

Originally Posted by Leafbarrett (Post 8059788)
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.

Jambo51 January 26th, 2014 2:14 AM

Quote:

Originally Posted by ShyRayq (Post 8003394)
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.

LCCoolJ95 February 2nd, 2014 9:46 AM

This would be a good time to post this:

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

Reusable TMs in Emerald...yeaaa

MrDollSteak February 2nd, 2014 6:38 PM

Quote:

Originally Posted by LCCoolJ95 (Post 8073705)
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?

Telinc1 February 2nd, 2014 11:34 PM

Quote:

Originally Posted by MrDollSteak (Post 8074417)
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).

Zarafaust February 3rd, 2014 4:03 AM

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.

MrDollSteak February 3rd, 2014 5:34 AM

Quote:

Originally Posted by Telinc1 (Post 8074850)
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.

LCCoolJ95 February 3rd, 2014 8:44 AM

Quote:

Originally Posted by MrDollSteak (Post 8074417)
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.

MrDollSteak February 3rd, 2014 8:15 PM

Quote:

Originally Posted by LCCoolJ95 (Post 8075341)
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.

kearnseyboy6 February 4th, 2014 5:44 AM

I have tried expanding the TM's but so far I have had no luck. Repointing and expanding simply doesn't work... I think

LCCoolJ95 February 4th, 2014 10:31 AM

Quote:

Originally Posted by MrDollSteak (Post 8076350)
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...

Domad4444 October 14th, 2016 1:09 PM

Just found this:
https://www.reddit.com/r/PokemonROMhacks/comments/51aj8t/reusable_tms_in_firered/

It's just a change of 3 bytes in any hex editor.
It functions great besides it shows quantity, though it's better than the HM icon in my opinion.
If someone could use this method and remove the quantity it would be perfect.

AtecainCorp. October 15th, 2016 2:14 PM

Any Solution for it in Pokemon Ruby?

DizzyEgg October 16th, 2016 12:26 AM

Quote:

Originally Posted by AtecainCorp. (Post 9450998)
Any Solution for it in Pokemon Ruby?

I've got one. Stop using Ruby and switch to Emerald.

AtecainCorp. October 16th, 2016 2:17 AM

Quote:

Originally Posted by DizzyEgg (Post 9451565)
I've got one. Stop using Ruby and switch to Emerald.

Nice try. But all of you whatever you do. I DO NOT CHANGE FROM RUBY Since it was great rombase.

Nex October 16th, 2016 6:39 AM

Quote:

Originally Posted by AtecainCorp. (Post 9451635)
Nice try. But all of you whatever you do. I DO NOT CHANGE FROM RUBY Since it was great rombase.

"Since it was great rombase"
I see what you did there...

Blah October 18th, 2016 6:44 AM

Actually with PokeRuby being worked on, it's definitely a gaining viability to be a ROM base to hack with. Definitely once that gets more leverage it'd be easier to hack Ruby than EM or FR. So the elitism here is a few months too late, hehe.

The bulbapedia article here http://bulbapedia.bulbagarden.net/wiki/Item_data_structure_in_Generation_III has what you are looking for concerning the item table location and mystery byte locations for Ruby. If the HM icon appears, then you'll have to do some debugging and nop some comparisons. If EM doesn't display the HM icon, then Ruby likely won't either. Cheers~

destinedjagold October 21st, 2016 1:03 AM

Quote:

Originally Posted by FBI (Post 9454851)
Actually with PokeRuby being worked on, it's definitely a gaining viability to be a ROM base to hack with. Definitely once that gets more leverage it'd be easier to hack Ruby than EM or FR.

PokéRuby? This is the first I've heard of this project (then again, I was so busy with work in the previous months anyway...). Is there a forum thread of this research somewhere?

Quote:

Originally Posted by AtecainCorp. (Post 9450998)
Any Solution for it in Pokemon Ruby?

Wait... I thought this was already possible in Ruby? I even have the method in my notes.

Code:

Open your Ruby ROM with a Hex Editor and go to 0x6F210. Change the [A8] byte to [90].


If I remember correctly, this will only let you use a TM as many times as you want.

AtecainCorp. October 21st, 2016 1:20 AM

Quote:

Originally Posted by destinedjagold (Post 9458302)
PokéRuby? This is the first I've heard of this project (then again, I was so busy with work in the previous months anyway...). Is there a forum thread of this research somewhere?



Wait... I thought this was already possible in Ruby? I even have the method in my notes.

Code:

Open your Ruby ROM with a Hex Editor and go to 0x6F210. Change the [A8] byte to [90].


If I remember correctly, this will only let you use a TM as many times as you want.

Did you maybe know also how expand Limit of Items in pockets? I especialy need it for Key Items. Since on my hack Johto Items do not allways fit on Key Item Pocket.

destinedjagold October 21st, 2016 1:22 AM

Quote:

Originally Posted by AtecainCorp. (Post 9458319)
Did you maybe know also how expand Limit of Items in pockets? I especialy need it for Key Items. Since on my hack Johto Items do not allways fit on Key Item Pocket.

Nope. I don't really know how to do in-dept research and stuff within ROMs. I'm just relying on tools and tutorials and trying to understand how they work to the best of my abilities. Nothing more. :3

AtecainCorp. October 21st, 2016 1:24 AM

Quote:

Originally Posted by destinedjagold (Post 9458324)
Nope. I don't really know how to do in-dept research and stuff within ROMs. I'm just relying on tools and tutorials and trying to understand how they work to the best of my abilities. Nothing more. :3

I also do my own researches. Now I focusing on Possiblities with Dex Expansion.


All times are GMT -8. The time now is 8:39 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 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 © 2023.