Cataclyptic
Everything I say is a lie
- 199
- Posts
- 10
- Years
- United States of America
- Seen today
Hello, I am currently working on a hack of the GB Pokemon TCG game. I am almost done with most of it, but then realized a potential source of frustrations near the end of pokemon programming: the fact that the AI may not know how to use the new attacks I made. The list (SRC -> Engine -> Duel -> AI --> Special attacks) is quite limited when compared to the number of new special attacks on Pokemon that I've made. I expanded the list by 1 entry, but then after that I get the following errors:
error: src/main.asm(84) -> src/engine/duel/ai/core.asm(1811) -> src/engine/duel/ai/special_attacks.asm(31): jr target out of re
ach (expected -129 < 129 < 128)
error: src/main.asm(84) -> src/engine/duel/ai/core.asm(1811) -> src/engine/duel/ai/special_attacks.asm(15): jr target out of re
ach (expected -129 < 131 < 128)
I'm not sure what this means but it appears to imply that I can't make my list any bigger. Can anyone help me with this?
I am just copying existing code to a new space whenever I do this. For example, I add:
cp SEAKING
jp z, .Teleport
- And then get those errors. If I can't expand the list, is there a way to fill the cp line with multiple pokemon?
error: src/main.asm(84) -> src/engine/duel/ai/core.asm(1811) -> src/engine/duel/ai/special_attacks.asm(31): jr target out of re
ach (expected -129 < 129 < 128)
error: src/main.asm(84) -> src/engine/duel/ai/core.asm(1811) -> src/engine/duel/ai/special_attacks.asm(15): jr target out of re
ach (expected -129 < 131 < 128)
I'm not sure what this means but it appears to imply that I can't make my list any bigger. Can anyone help me with this?
I am just copying existing code to a new space whenever I do this. For example, I add:
cp SEAKING
jp z, .Teleport
- And then get those errors. If I can't expand the list, is there a way to fill the cp line with multiple pokemon?
Last edited: