You are not logged in.
Pages: 1
Hey I compiled a copy of Pokemon Yellow recently. One of the things (Maybe the only thing) I changed was the max level at the first line of this ASM: https://github.com/pret/pokeyellow/blob … stants.asm
Weirdly enough, Rare candies work on level 100 and shows how much exp it needs the go to the next level, instead of just "0" but when I go to battle, after gaining the exp, it goes back to Lv 100 like in the unmodified versions of R/B/Y...
So, how can I fix this? I want to be able to level up to ~200 because I hate the original level cap :/
Any help would be nice :D
Offline
Since Pokeyellow isn't as far along as Pokered, there are probably some instances that still have a hard-coded value instead of using the Max Level constant. You would need to either wait until those routines are tracked down and updated, or track them down yourself and update them.
You could start by searching for that constant in both Pokered and Pokeyellow, and if you see a routine that shows up in the search results in Pokered but not in Pokeyellow, try going to the appropriate routine and seeing if you can find the value so you can replace it.
Since Max Level was originally 100, that might show up as $64, because that is 100 in hexadecimal.
I am not very active on this forum. I only pop in from time to time.
Offline
There's probably a check in the battle routine that "corrects" the level if it exceeds 100, and the check may not have had its value swapped to a variable.
I'd read through the code for the battle finale, experience awarding, and level up and evolution check, look for anything that compares to or sets to "64" (100, hexidecimal)
Pokemon: Project Neo A Pokemon hack 15 years in the making...
Offline
Okay, thanks for the info guys.
I searched Pokeyellow for '64' and came up with the following things that MIGHT fix it...
- Home.asm : Line 4042 (ld a, $64) A couple of lines down further it even mentions something about Level calcultion
- Engine/experience.asm : 158 (db $65,$8F,$64,$8C ; medium slow: 6/5 n^3 - 15 n^2 + 100 n - 140) Basically has to do with exp growth ; I don't think it's the culprit.
I then searched for 'level' and only one new thing came up, but don't think it matters
- Main.asm : Line 738 (CalcLevelFromExperience: ; 58d99 (16:4d99))
Finally I searched EXP and didn't come across anything new.
I assume the first option is the correct one? If so, I want to change the Max_Level to 250. I'd need to change it to $FA correct?
Offline
If you have the max level defined as a constant, you might as well change it to that~
You'll want to watch those areas for commands like "cp $64", which is "Compare a to $64 (100)", which would be a check or "ld a, $64" which is "load value $64 to a", which would reset the level.
Pokemon: Project Neo A Pokemon hack 15 years in the making...
Offline
If you have the max level defined as a constant, you might as well change it to that~
You'll want to watch those areas for commands like "cp $64", which is "Compare a to $64 (100)", which would be a check or "ld a, $64" which is "load value $64 to a", which would reset the level.
I don't follow. Are you saying I should change it to 250 (FA), or were you warning me about the possible side effects of changing the 100 to 250?
Okay so I changed that value and it lowered PIkachu's (and maybe other pokemon's) stats harshley. At level 100, he had like 87 speed, 35 defense etc
Last edited by jastolze (2016-05-08 22:28:29)
Offline
Neither; if you have the level cap set to a constant, like MAX_LEVEL, change any resulting finds from a hard value ($FA) to MAX_LEVEL.
Might as well change them to a value to test, but if you confirm it might as well set it to MAX_LEVEL or whatever so that you can tinker with it later and not have to hunt down each instance.
Pokemon: Project Neo A Pokemon hack 15 years in the making...
Offline
Okay so I changed that value and it lowered PIkachu's (and maybe other pokemon's) stats harshley. At level 100, he had like 87 speed, 35 defense etc
Offline
What would that Max_Level script look like in asm? What exactly should I put?
Offline
Pages: 1