Author Topic: Finding Tech Graphics?  (Read 1990 times)

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Finding Tech Graphics?
« on: August 01, 2007, 07:41:53 pm »
I've been itching to do a test with somethign for techs but I haven't figured out just how to find the graphics some techs use.  AKA, Crono's Slash, or Frog's Slurp.  Hell, I don't even know where to find ANY of the normal attack's graphics.  I'm thinking you might have to do the breakpoint thing that I think Geiger posted.  I know some of the graphics are uncompressed and are in the 2bpp Planar form which i'm checking out atm to make sure i'm not making a total idiot out of myself.

Quote
Set a Execute breakpoint on C14658 to get the address of the 2 byte pointer for the animation script of the tech you want to edit.

Flip the bytes from your pointer around and put a CE in front of it to get directly to the animation script data for that tech.

Example:
I set an exec breakpoint for C14658. I want to find the animation data for Cyclone. The moment I do the Cyclone tech, I get this in the debugger:


Code:
$C1/4658   BF 00 00 CE   LDA $CE0000,x[$CE:090D]   A:0000   X:090D   Y:0000   P:envmxdiZc   

So, the pointer for Cyclone begins at CE090D. At CE090D I see 2 bytes: 17 09

I flip them to get 09 17 and put a CE in front to get CE0917.

CE0917 is the start of Cyclone's animation script data.



If you don't plan on moving or expanding the data, you might not want the pointer and just want the data.

Set an exec breakpoint on C14CC4 and do your tech.
Doing Cyclone with this breakpoint gives me:


Code:
$C1/4CC4   B7 E6   LDA [$E6],y[$CE:0917]   A:0000   X:0000   Y:0000   P:envMxdiZC
The animation script begins at CE0917.

This breakpoint also works for the regular attacks, like Crono's default sword attack. Breakpointing C14CC4 gives me:


Code:
$C1/4CC4   B7 E6   LDA [$E6],y[$CE:038E]   A:0000   X:0000   Y:0000   P:envMxdiZC

CE038E is the animation script for Crono's sword attack.

I'm not entirely sure.  Thought i'd ask.
« Last Edit: August 01, 2007, 07:54:34 pm by justin3009 »

JLukas

  • Fan Project Leader
  • Squaretable Knight (+400)
  • *
  • Posts: 426
    • View Profile
Re: Finding Tech Graphics?
« Reply #1 on: August 01, 2007, 07:55:57 pm »
Look in a tile editor around the $100000-120000 range.  They're uncompressed, 3 bitplane or 4 bitplane (I don't remember), and jumbled together, but you should be able to find what you're looking for.

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: Finding Tech Graphics?
« Reply #2 on: August 01, 2007, 08:05:33 pm »
Had a feeling on this.  Only visible techs I could see were Ice 2 and Life O_o  Then again I stuck to 4 and 2 bit plane.  Thank you :D

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: Finding Tech Graphics?
« Reply #3 on: August 04, 2007, 10:38:40 pm »
Just to clarify, are even the kinda Geometry techs in there as well?  Such as Luminaire and Flare?  Or are those just randomly drawn graphics.

JLukas

  • Fan Project Leader
  • Squaretable Knight (+400)
  • *
  • Posts: 426
    • View Profile
Re: Finding Tech Graphics?
« Reply #4 on: August 04, 2007, 10:55:29 pm »
If it's like Event Command FE, you'll need to look for the coordinates data used for drawing shapes (solid color objects) on screen.

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: Finding Tech Graphics?
« Reply #5 on: August 05, 2007, 01:13:10 am »
Mmk.  That gives more ideas for tech drawings.

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: Finding Tech Graphics?
« Reply #6 on: August 05, 2007, 07:09:55 pm »
It was probably obvious but the drawing event for Luminaire is NOT in the hex area nor in the tech data.