Recent content by CyberDork34

  1. C

    [ASM & Hex] Trouble with hooking

    I'm continuing my work to implement custom tag battles in Pokemon Emerald, and I've come across an issue with hooking. The issue is as follows. So far, if I load Steven as the partner in the partner battle it works perfectly: I've overwritten the seven partner trainer IDs before Steven to...
  2. C

    [Audio] Change Battle Music in Firered?

    To change which song plays during a trainer battle in XSE you can do In addition, I've noticed some trainer classes are hard-coded with certain themes and effects. For example, if you start a trainer battle with a gym leader, the music will automatically be set to the gym leader theme and the...
  3. C

    [Script] Is it possible to have a 2-on-1 or 1-on-2 battle?

    So you'll notice that in the gen3 games, no double battle trainers (twins, loving couple, sr and jr, etc) will fight you if you don't have more than one pokemon. This is to subtly cover up the fact that there is no code in any of the gen 3 games that correctly handles what to do if you just have...
  4. C

    [Other✓] Character is unable to move to the left? Invisible wall? Please Help!

    If you're overwriting something and you're absolutely sure that the the thing you're putting in is the same size as what's there, then it's easier to overwrite what there. For example, all images of the same size take up the same space in memory. So if there was a compressed 64x64 image at an...
  5. C

    [Other✓] Character is unable to move to the left? Invisible wall? Please Help!

    If this is still an issue, try and re-edit (carefully) the pokemon stats on a clean ROM, and then re-edit the map. I've found it's very easy for ROM editors to write garbage into places you didn't intend, which can corrupt the data in weird ways. I know I've had problems with overwriting music...
  6. C

    [ASM & Hex] [Emerald] Setting or changing player backsprite before a battle (tag battles, etc)

    So I did a little more research and it turns out this is actually expected behavior which sucks for me I guess but whatever I'll figure it out. Basically, in the battle frontier you're allowed to have an AI partner, but they didn't want to make a few more backsprites for every trainer class. So...
  7. C

    [ASM & Hex] [Emerald] Setting or changing player backsprite before a battle (tag battles, etc)

    Hello again. For my hack, there are a few points in the story where it would be really nice if the player participated in a multi battle with and/or against some of the major characters. Pokemon Emerald is the only gen3 game (and the first game in the series), to implement this feature in the...
  8. C

    [ASM & Hex] Help Make My Pseudocode into Real Code ASM for Emerald and Ruby?

    I would look into a few of the tutorials that are available to learn about assembly, including ones that are available on this forum. and general ARM ASM tutorials on YouTube. This basically involves looping through an array. The player's party is located at 0x020244EC in Emerald, while the...
  9. C

    [Script] Setting flags mid-battle

    The only reliable idea popping into my head for now is to write an ASM hook to wherever the main battle loop is, loop through the opponent's party, check to see if they only have one pokemon with more than 0 HP. If true, toggle this catchable flag, and then branch to the rest of the main battle...
  10. C

    [ASM & Hex] [Pokemon Emerald + C] Indexing arrays with a non-const variable leads to undefined behavior?

    I have. For the time being, I had started this project as a ROM hack and I think that's how I'm going to finish it. When I do a second project that's a bit more complicated, I'll start with the decomp for sure. Obviously with pokeemerald you don't get weird issues like this one, but it's a...
  11. C

    [ASM & Hex] [Pokemon Emerald + C] Indexing arrays with a non-const variable leads to undefined behavior?

    The issue is resolved as of now. As you can see I never really post here though I guess that might change, so I'm not sure if I'm supposed to mark as solved or if a mod will. A description of what happens for those who run into this problem in the future. The GitHub repository was made for...
  12. C

    [ASM & Hex] [Pokemon Emerald + C] Indexing arrays with a non-const variable leads to undefined behavior?

    I decided to run through the code again and annotated it line by line to make sure that it's really doing what you'd expect, and I came to the same conclusion that assembler is correct. Go figure the professionals over at the GNU project know what they're doing. I thought maybe it's somehow...
  13. C

    [ASM & Hex] [Pokemon Emerald + C] Indexing arrays with a non-const variable leads to undefined behavior?

    That's actually somewhat helpful to point out. I had thought the issue was something like "non-const variables don't work for indexing arrays", but the only time the arrays are ever really indexed are with non-const variables. It could be that indexing in general is messed up for some reason...
  14. C

    [ASM & Hex] [Pokemon Emerald + C] Indexing arrays with a non-const variable leads to undefined behavior?

    Hello. I'm working on a ROM hack of Pokemon Emerald and I'm trying to add a few custom battle types. I'm actually a lot more comfortable writing code in C than ASM, so that's what I've been doing. I'm using this GitHub repository as a template (can't post links yet, sorry...
Back
Top