The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page ASM & Hex FireRed - 510 EV cap

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old June 16th, 2019 (3:01 PM). Edited June 16th, 2019 by DarkCyborg.
DarkCyborg DarkCyborg is offline
 
Join Date: Dec 2017
Location: Curitiba, Brazil
Gender: Male
Nature: Lonely
Posts: 31
Just a simple question: does anybody know the hex. address to edit the 510 EV limit on FireRed?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 29th, 2019 (4:04 PM). Edited June 29th, 2019 by DarkCyborg.
DarkCyborg DarkCyborg is offline
 
Join Date: Dec 2017
Location: Curitiba, Brazil
Gender: Male
Nature: Lonely
Posts: 31
Sorry for double post. But since I didn't found an answer on PokéCommunity, I think that it may help other people as well (the only thing I found was about changing 255 EVs limit to 252, but that's individual EV, not the total 510 cap). And maybe I was to brief in my post.

Well, I searched for this on google (before creating this thread) and was suprised that no one had a solution for this problem, as it seems to be a simple thing to change (I might be wrong though). During my research, I found this thread: https://www.pokecommunity.com/showthread.php?t=410198

On that thread, @Mr.Pkmn said that, using pokéemerald disassembly, this limit is stored on the label "MAX_TOTAL_EVS", which can be easily changed. I looked for it and found that it also exists on pokefirered disassembly: https://github.com/pret/pokefirered/blob/master/src/pokemon.c#L5070

However, I'm not using disassembly and I don't have experience with it. I don't even know how to change that label value (I searched for this variable on that file, and it is not defined as 510 anywhere). And since I have already inserted routines and scripts in my ROM, I'd not like to go for it.

So, can I use that to find the location where this variable is stored to change it with a hex editor? If yes, how can I do it?

(Note: my intention with this change is to make the EVs unlimited, just like it was on RBY and GSC).
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 3rd, 2019 (10:12 PM).
jiangzhengwenjzw's Avatar
jiangzhengwenjzw jiangzhengwenjzw is offline
now working on katam
 
Join Date: Sep 2012
Gender: Male
Posts: 175
Hi.
pokefirered is still under construction and has been poorly decompiled (now only 19% source code is available) so it's not safe to simply edit the macro MAX_TOTAL_EVS. What I mean is, in pokeemerald, many things are correctly labeled and documented. Thus, if you edit that macro in pokeemerald every location using that value will be updated. However for pokefirered some of those locations may still be in asm/, which means they're not even decompiled to C, let alone documentation.

If you really want to hack that, you'd better research yourself but it shouldn't be too hard because as you know there's already tutorial on 252 cap. This will require some ASM knowledge (and C, because pokefirered may help a bit). It's not likely to have someone solve this kind of problem for you because people have their own stuff to do. Hope this can help.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old July 4th, 2019 (11:02 AM).
DarkCyborg DarkCyborg is offline
 
Join Date: Dec 2017
Location: Curitiba, Brazil
Gender: Male
Nature: Lonely
Posts: 31
Quote:
Originally Posted by jianghengwenjzw
If you really want to hack that, you'd better research yourself but it shouldn't be too hard because as you know there's already tutorial on 252 cap. This will require some ASM knowledge (and C, because pokefirered may help a bit). It's not likely to have someone solve this kind of problem for you because people have their own stuff to do. Hope this can help.
Hi!
First of all, thank you for your answer.

Well, about pokefirered, there's not very much I can do. I'd use it to try to find the offsets to change the cap, but if even changing that label won't help, probably it won't provide a solution to this problem.

I actually searched for it on the Internet, but nothing was found. Probably nobody has actually found a way to change this limit. The best stuff I found was that thread.

About the 252 cap tutorial, I don't see how it can actually help me, because everything it does is to change 2 offsets (with hex editor) from 0xFF to 0xFC. In fact, this is the whole tutorial:

Quote:
Originally Posted by Touched
Cap individual EVs to 252 instead of 255 Like in Gen VI
Set 080439FC and 08043A02 to 0xFC (FireRed)
It would be helpful if:

1) This tutorial had the offsets to change the 510 cap (in which case would be the direct solution to this problem, and I'd not have created this thread);
2) This tutorial included how they found the location of the individual EV limit, and in that case, maybe I could follow the same steps to find a solution for the total EV cap.

But that's not the purpose of the tutorial, as it was a Quick Research to solve the 252 individual cap.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old July 4th, 2019 (11:48 AM).
jiangzhengwenjzw's Avatar
jiangzhengwenjzw jiangzhengwenjzw is offline
now working on katam
 
Join Date: Sep 2012
Gender: Male
Posts: 175
Quote:
Originally Posted by DarkCyborg View Post
Hi!
First of all, thank you for your answer.

Well, about pokefirered, there's not very much I can do. I'd use it to try to find the offsets to change the cap, but if even changing that label won't help, probably it won't provide a solution to this problem.

I actually searched for it on the Internet, but nothing was found. Probably nobody has actually found a way to change this limit. The best stuff I found was that thread.

About the 252 cap tutorial, I don't see how it can actually help me, because everything it does is to change 2 offsets (with hex editor) from 0xFF to 0xFC. In fact, this is the whole tutorial:



It would be helpful if:

1) This tutorial had the offsets to change the 510 cap (in which case would be the direct solution to this problem, and I'd not have created this thread);
2) This tutorial included how they found the location of the individual EV limit, and in that case, maybe I could follow the same steps to find a solution for the total EV cap.

But that's not the purpose of the tutorial, as it was a Quick Research to solve the 252 individual cap.
Yes, that's why you need ASM skill for that because you need to understand the code. Basically you can't do much without debugging and programming a bit. Porting from emerald might be very doable, but that will require some ASM knowledge as well.
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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 9:22 AM.