Author Topic: Character Graphics Swap hack.  (Read 3681 times)

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1538
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Character Graphics Swap hack.
« Reply #15 on: August 27, 2018, 02:16:12 am »
Some of the animations are designed to line up. Standard battle pose, attack, and casting work nicely, but Cylcone's particular animation doesn't match with anything of Ayla's. A new sprite could have its data set up to match properly.

IHBP

  • Architect of Kajar
  • Enlightened One (+200)
  • *
  • Posts: 284
    • View Profile
Re: Character Graphics Swap hack.
« Reply #16 on: August 27, 2018, 08:06:01 am »
Ya that makes sense, not really an issue starting from scratch though.

Rjenyawd

  • Iokan (+1)
  • *
  • Posts: 13
  • ..but time flows like a river, and history repeats
    • View Profile
Re: Character Graphics Swap hack.
« Reply #17 on: July 14, 2019, 02:33:28 am »
THAT could be a problem with Frog's sprite swap to a human spritsheet.  Frog is a shorter character that uses less pixel block segments than a full sized human sprite like Chrono or Lucca. ...So animation assembly could be broken for a swap to a taller sprite.
« Last Edit: July 14, 2019, 02:49:35 am by Rjenyawd »

IHBP

  • Architect of Kajar
  • Enlightened One (+200)
  • *
  • Posts: 284
    • View Profile
Re: Character Graphics Swap hack.
« Reply #18 on: July 14, 2019, 08:39:20 am »
I'd just start with a bigger sprite as the base, probably Crono's. Then just edit the animations in High-Tech

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1538
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Character Graphics Swap hack.
« Reply #19 on: July 14, 2019, 03:50:43 pm »
All PCs are size 0 sprites, which consist of 4 16x16 blocks. You'd have to change the sprite assembly, but the animation order might still work.

IHBP

  • Architect of Kajar
  • Enlightened One (+200)
  • *
  • Posts: 284
    • View Profile
Re: Character Graphics Swap hack.
« Reply #20 on: July 14, 2019, 06:35:45 pm »
Well that's a relief, so is this still a possibility?

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1538
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Character Graphics Swap hack.
« Reply #21 on: July 14, 2019, 07:27:02 pm »
Yeah. I'll make more progress on it... eventually.

IHBP

  • Architect of Kajar
  • Enlightened One (+200)
  • *
  • Posts: 284
    • View Profile
Re: Character Graphics Swap hack.
« Reply #22 on: September 20, 2019, 02:36:01 pm »
Not sure what methods you're using to do this but I was wondering...

Since each character is made up of three parts Graphics packet, Animation, and Palette, (Sprite size is irrelevant here) couldn't you just tie those to an address in the 7E28XX range like you did with the run speed value? Then a simple ingame event could set those addresses to new values.

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1538
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Character Graphics Swap hack.
« Reply #23 on: September 20, 2019, 03:11:14 pm »
There's also sprite assembly.

Potentially this could be done by storing 4 bytes per character to RAM, but it would require less space to have a single swap byte and a second table.

IHBP

  • Architect of Kajar
  • Enlightened One (+200)
  • *
  • Posts: 284
    • View Profile
Re: Character Graphics Swap hack.
« Reply #24 on: September 20, 2019, 03:16:14 pm »
Space is not really an issue, I haven't checked in a while but I think I have something like 200 addresses left.
Plus for the moment I'm mostly interested in one character.

Would this method actually be any faster or easier?

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1538
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Character Graphics Swap hack.
« Reply #25 on: September 20, 2019, 04:14:48 pm »
I can do a quick glance at the idea. Some of the harder parts are hard either way, but it might be faster in some ways.

IHBP

  • Architect of Kajar
  • Enlightened One (+200)
  • *
  • Posts: 284
    • View Profile
Re: Character Graphics Swap hack.
« Reply #26 on: September 20, 2019, 06:48:35 pm »
Hopefully it yields something good.

IHBP

  • Architect of Kajar
  • Enlightened One (+200)
  • *
  • Posts: 284
    • View Profile
Re: Character Graphics Swap hack.
« Reply #27 on: December 18, 2019, 01:55:40 pm »
This idea is probably a longshot but that's usually where obsessions take you eventually.

I was playing around with the newest Warrior Workshop's character graphics editor and noticed that the changes you make work perfectly on the field but they are reverted in the Character Swap menu.

This tells me that the game already stores two sets of character data, if we adjust the pointer so the field and character menu share the same data we could store a second appearance for each character in the second set.

It would still require an ingame routine to swap them but it might work?

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1538
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Character Graphics Swap hack.
« Reply #28 on: December 18, 2019, 03:10:39 pm »
The game ignores certain data at various points, unfortunately. A few parts of the code ignore the sprite data for PCs and assumes the correct value is equal to the character index.

I added that data for... some reason in future support of other plugins.

IHBP

  • Architect of Kajar
  • Enlightened One (+200)
  • *
  • Posts: 284
    • View Profile
Re: Character Graphics Swap hack.
« Reply #29 on: February 05, 2020, 08:49:02 am »
So I discovered yesterday that the character portraits are loaded from ram, which means I can change them in game with a single command.  This is good since any alternate appearances would need a new portrait,  what I need to know is what does it take to expand the portrait index and add new entries with custom graphics?