You are not logged in.
Wow thank you! I'm going to go through this right now
It was 197 for me because I preserved the Fossil and Ghost spaces. Wasn't sure if those could safely be written over without affecting the game
I followed everything and got this error
"error: Unable to place 'Main' (ROM0 section) at $150"
Do you think there's something I messed up on?
sounds like you are gonna have to move stuff around in home. That was what moving the farcopy routines around were for in that commit, but yours might be different. try putting that back how it was
Yup that was it, I moved FarCopyData3 into copy.asm as well and it works perfectly
Thank you so much!
If you look here and copy what I did for Rangi, this should fix the issue of Pokemon above C8 (which is 200 not 197 btw) being treated as trainer classes. It will also fix related issues due to name lists assuming any ID above a certain value is supposed to be a TM or HM, even non-item lists.
I was attempting to add many new trainer classes at once but I started to get the error "Expression must be 8-bit" when using OPP_NEWTRAINER.
I realized that Lance is still at $F7 even though it is labeled as $2F in my copy of Pokered, so I was only able to add 8 new trainer classes. Is there a similar solution for trainers?
After the above fix, trainers still started at 200, but they don't have to. I don't have a commit handy to show what all you would need to do though. There should not be much left that would need changing after that though. There's probably just one or two more instances where it subtracts 200 for the ID from trainers which you'd just need to remove, and then adjust the trainer const macro so that OPP_(trainer name here) doesn't start counting from 200 (or do it the long way and manually change every instance of a trainer class to not use the OPP_ prefix). I'll look into it when I have the chance.
I think I got it to work doing what you said. So far so good anyway. I made these changes. Thanks again for your help!
ld a, [wMapPalOffset]
ld hl, wLetterPrintingDelayFlags
ld a, [hl]
res 1, [hl]
ld a, [wIsTrainerBattle]
jp z, InitWildBattle
ld a, [wEnemyMonSpecies2]
ld [wTrainerClass], a
ld [wEnemyMonSpecies2], a
ld [hStartTileID], a
ld [wAICount], a
coord hl, 12, 0
ld a, $ff
ld [wEnemyMonPartyPos], a
ld a, $2
ld [wIsInBattle], a
\1 EQU const_value
OPP_\1 EQU const_value + 0
const_value = const_value + 1
; get the pointer to trainer data for this class
ld a, [wCurOpponent]
sub $01 ; convert value from pokemon to trainer
ld hl, TrainerDataPointers
ld c, a
ld b, 0
add hl, bc ; hl points to trainer class
ld a, [hli]
ld h, [hl]
ld l, a
ld a, [wTrainerNo]
ld b, a
; get trainer class number
ld a, [wCurOpponent]
ld b, a
ld hl, TeamMoves
Those "sub 0" lines are pointless, you should just take them out. Also "sub $01" could be replaced with "dec a". Also, the "+ 0" is pointless in the trainer const macro, you could just leave it as saying const_value.
Ahh yeah I was being cautious since I don't exactly know what I'm doing, made those adjustments and its still working fine
I've been following this guide to a tee, and I added a 152nd Pokemon just fine.
When I go to add a 153rd though everything works but the front sprite.
I have tried following the Glaceon edit and the Uncompress Sprite edits, but each still give me missingno sprites for my 153rd mon.
Please help me if you can :D