øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1367.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexaaef.htmldelayedslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=17.100e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexaaef.html.zx :h^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈà•¤t÷OKtext/htmlISO-8859-1gzip8:Öt÷ÿÿÿÿÿÿÿÿÑHWed, 11 Mar 2020 01:24:49 GMT0ó°° ®0®P®€§²ð®:h^ÿÿÿÿÿÿÿÿ"t÷ FFV Sprite editing

Author Topic: FFV Sprite editing  (Read 12629 times)

StrawberryMilk

  • Ymir
  • *
  • Posts: 11
  • Delicious calcium for strong pixels
    • View Profile
FFV Sprite editing
« on: February 19, 2010, 07:04:48 PM »
So I'm testing out sprite editing a bit, I'm using TilEd 2002 and I've been able to find just about every sprite I really need to find. The problem is there's a few sprites I can't find, the ones of Bartz riding Boco at the beginning and the end. I know the FFV editor here has a job sprite editor but I wasn't sure if it had this particular sprite. But if anyone could tell me the address of the sprite or it's relative location in the rom, I'd really appreciate it.

Jorgur

  • Moderator
  • *
  • Posts: 437
  • Gender: Male
    • View Profile
Re: FFV Sprite editing
« Reply #1 on: February 20, 2010, 06:12:44 AM »
I have not found that part either. It might be compressed, meaning it can only be found via ASM analysis. We are just starting out with that, so I do not think we will find out for some time.

Just out of curiosity, what are you going to use this info for?

Odbarc

  • Hell's Rider
  • *
  • Posts: 424
  • Gender: Male
  • FF6 obsessed
    • View Profile
    • Newage3.com, a text based web game RPG I Admin.
Re: FFV Sprite editing
« Reply #2 on: February 20, 2010, 07:58:52 AM »
Does the Boco riding scene take from the existing sprites or is it entirely unique on it's own?

StrawberryMilk

  • Ymir
  • *
  • Posts: 11
  • Delicious calcium for strong pixels
    • View Profile
Re: FFV Sprite editing
« Reply #3 on: February 20, 2010, 07:58:40 PM »
The Boco riding scene is entirely unique, I've edited Bartz's overworld sprites and nothing changed. But yeah, I just wanted to find it because the boco riding sprite now does not match.

Jorgur

  • Moderator
  • *
  • Posts: 437
  • Gender: Male
    • View Profile
Re: FFV Sprite editing
« Reply #4 on: February 21, 2010, 04:22:53 AM »
Remember that the sprite is used in the ending sequence, along with Lenna and Faris riding on chocobos, as well as Cara riding the Hiryuu.

StrawberryMilk

  • Ymir
  • *
  • Posts: 11
  • Delicious calcium for strong pixels
    • View Profile
Re: FFV Sprite editing
« Reply #5 on: February 21, 2010, 02:48:43 PM »
I totally know that, and I scrolled through the whole damn rom several times and found just about everything but those sprites. They're so big that I would have found them if they weren't compressed like you said they might be.

Jorgur

  • Moderator
  • *
  • Posts: 437
  • Gender: Male
    • View Profile
Re: FFV Sprite editing
« Reply #6 on: February 21, 2010, 03:00:47 PM »
 :hmm:

If you have some time on your hands (and patience), you could try the corruption method (elimination). Simply corrupt suspicious parts of the ROM until the sprites change. You can use my ROM overview doc to give you a basic idea of where to begin.
http://slickproductions.org/docs/FF5/ROM%20overview.txt

Disch's corruption tool, Corrupster:
http://www.romhacking.net/utils/2/

Alternatively, if you know ASM you could try finding the graphics loading routines. LightPhoenix has some insight into the graphics system so maybe he could help out.

StrawberryMilk

  • Ymir
  • *
  • Posts: 11
  • Delicious calcium for strong pixels
    • View Profile
Re: FFV Sprite editing
« Reply #7 on: February 22, 2010, 04:00:49 AM »
Even if I were to corrupt it. It would still be compressed data and I wouldn't be able to edit it, and I'm not familiar with ASM, what is it?

Jorgur

  • Moderator
  • *
  • Posts: 437
  • Gender: Male
    • View Profile
Re: FFV Sprite editing
« Reply #8 on: February 22, 2010, 06:22:48 AM »
ASM means Assembly language. It is a set of fundamental instructions used by processors in any computer or console. It is a fairly advanced part of ROM hacking.
Check the assembly chapter in this doc:
http://www.romhacking.net/docs/37/

Understanding the compression would be much easier if we knew where the data is stored. Again, this is fairly advanced, so I'm not so sure if anyone has the patience to help you out much.

« Last Edit: February 23, 2010, 05:57:44 AM by Jorgur »

StrawberryMilk

  • Ymir
  • *
  • Posts: 11
  • Delicious calcium for strong pixels
    • View Profile
Re: FFV Sprite editing
« Reply #9 on: February 22, 2010, 06:38:30 PM »
All of the graphics for Bartz and Boco's running scene seem to be at around C3/1000-C3/3000. I tried finding just the sprite I was looking for in there without much luck. Does this help any?

LightPhoenix

  • FF5 Hacker
  • *
  • Posts: 130
    • View Profile
Re: FFV Sprite editing
« Reply #10 on: February 22, 2010, 08:09:36 PM »
My graphics work has most been in understanding the battle animations.  I've done almost no work with non-battle stuff, so I don't know how much I can help you.  My guess would be that Bartz+Boco is a completely separate sprite from either one individually.  When he mounts Boco, Boco is probably removed and Bartz's sprite is changed to the Bartz+Boco one.

I suspect that the B+B sprite is in one of the C Banks, though which one I have no clue.  I would say definitely not C1, C2, or C4, all of which contain code.  The D Banks are mostly combat data and animations.  I suppose it could be in one of the DA through DF banks; from the ROM Overview document those seem to deal with field graphics.

StrawberryMilk

  • Ymir
  • *
  • Posts: 11
  • Delicious calcium for strong pixels
    • View Profile
Re: FFV Sprite editing
« Reply #11 on: February 22, 2010, 09:36:41 PM »
Yeah, I corrupted the whole D Bank and it didn't mess up B+B at all. It's definitely in C and most likely in C3/1000-C3/3000, which is the only section that seemed to affect them at all.

Jorgur

  • Moderator
  • *
  • Posts: 437
  • Gender: Male
    • View Profile
Re: FFV Sprite editing
« Reply #12 on: February 23, 2010, 06:00:27 AM »
When he mounts Boco, Boco is probably removed and Bartz's sprite is changed to the Bartz+Boco one.
He mounts Boco? I didn't think there was anything besides a B+B sprite.

Let me see if I can find any calls to the C3-bank.

 :edit:
I found no JMP's to the C3 area, but I found some JSR's.
The one that seems most suspicious is this call from the C1 bank:
(From LP's C1 disassembly)
Code: [Select]
[...]
C1/FB85: A5 74        LDA $74
C1/FB87: 8D F2 04     STA $04F2
C1/FB8A: A6 72        LDX $72
C1/FB8C: 8E F0 04     STX $04F0
C1/FB8F: A9 7F 8D     LDA #$8D7F
C1/FB92: F5 04        SBC $04,X
C1/FB94: A2 00 C0     LDX #$C000
C1/FB97: 8E F3 04     STX $04F3
C1/FB9A: 22 02 00 C3  JSR $C30002
C1/FB9E: FA           PLX
C1/FB9F: 8E F4 04     STX $04F4
C1/FBA2: FA           PLX
C1/FBA3: 8E F2 04     STX $04F2
C1/FBA6: FA           PLX
C1/FBA7: 8E F0 04     STX $04F0
C1/FBAA: AB           PLB
C1/FBAB: FA           PLX

The rest are all in C0, so I don't even know if they are actually code.

 :edit:
I couldn't help myself, I removed the call to C3, and...nothing happened. I'll check the C0 calls now. If that fails...I will try something else.

 :edit:
That also failed. Unless the graphic loading code is located in C6+, which I doubt, the graphic loading procedure uses a jump with indirect addressing (or some other creepy method). I'll try some different other stuff now.
« Last Edit: February 23, 2010, 07:01:43 AM by Jorgur »

LightPhoenix

  • FF5 Hacker
  • *
  • Posts: 130
    • View Profile
Re: FFV Sprite editing
« Reply #13 on: February 23, 2010, 01:00:44 PM »
Quote
He mounts Boco? I didn't think there was anything besides a B+B sprite.

You may well be right; it's been a while since I've played the beginning of the game.

StrawberryMilk

  • Ymir
  • *
  • Posts: 11
  • Delicious calcium for strong pixels
    • View Profile
Re: FFV Sprite editing
« Reply #14 on: February 25, 2010, 02:20:51 AM »
:edit:
That also failed. Unless the graphic loading code is located in C6+, which I doubt, the graphic loading procedure uses a jump with indirect addressing (or some other creepy method). I'll try some different other stuff now.
Did you ever find anything?