Author Topic: Question on SA and something else  (Read 2036 times)

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Question on SA and something else
« on: August 02, 2007, 03:04:11 pm »
I've been working with SA as I believe i've said before, it's quite easy but the only thing I do not get is this

Is there ANY way to make the SA route to empty space?  Because with the whole thing that we're doing as a little test, there is DEFINATELY not enough room for all the sprites to fit into that much of space.

Now for my 2nd question.

Ok, i've been working with expanding the rom and putting Crono's Sprites at the end of the rom as well to see if I can move the graphics to there for a little test i'm doing.  It works out great the game runs fine and sprites show up ONLY in the Character Select Menu.  Once you leave it, the characters are surrounded by random stuff and it's just really weird.  I'm guessing it's because of the sprite assembly but...wouldn't that not matter? :|  It's the same sprites in the same order

242000   242014   PTR   N   Pointers to character graphics - I changed Crono's to 00 00 41, the location is at 410000  I thought maybe C0 00 41 would help but god damn that made it worse.  I'll get a screenshot up. - :/...
« Last Edit: August 02, 2007, 04:17:41 pm by justin3009 »

Vehek

  • Errare Explorer (+1500)
  • *
  • Posts: 1756
    • View Profile
Re: Question on SA and something else
« Reply #1 on: August 03, 2007, 01:16:15 am »
I've done some testing and it looks like the game has trouble loading the PC sprites in the field when they've been relocated. BTW, the "random stuff" is actually part of Ayla's sprites.

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: Question on SA and something else
« Reply #2 on: August 03, 2007, 01:20:46 am »
Yea, When you walk sideways it has Crono's Head and his feet and that's bout it ._.  Blah, this throws my idea out the window ;[

Edit: Walking Left it shwos his head walking right it shows his feet.
« Last Edit: August 03, 2007, 01:25:39 am by justin3009 »

Geiger

  • Guru of Life Emeritus
  • Chronopolitan (+300)
  • *
  • Posts: 315
    • View Profile
    • Geiger's Crypt
Re: Question on SA and something else
« Reply #3 on: August 03, 2007, 10:11:38 am »
You guys are probably missing some pointers somewhere, probably in the ASM code.  For example, the independent string banks are hard to get moved properly because some of them have a dozen pointers in various places in the ASM.

---T.Geiger

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: Question on SA and something else
« Reply #4 on: August 03, 2007, 01:42:25 pm »
><...Well this just makes things more complicated.

Vehek

  • Errare Explorer (+1500)
  • *
  • Posts: 1756
    • View Profile
Re: Question on SA and something else
« Reply #5 on: February 19, 2008, 01:15:05 am »
I can't remember when, but sometime after Justin found this problem, I looked through the rom and found some code that looked like it was involved in loading the sprites.
Now, I've looked closer and I think I have why the game loads graphics from the wrong location.
At C0/E687 is a subroutine which seems to be involved in getting part of the sprite graphics.
This is a description of what part of it does:
Quote
Load graphics bank value into accumulator.
If accumulator is $7F, go to some routines (I think this is for compressed graphics)
Subtract $D2 from accumulator
If accumulator is 0, go to bank $D2 loading code.
Subtract 1 from accumulator
If accumulator is 0, go to bank $D3 loading code.
Subtract 1 from accumulator
If accumulator is 0, go to bank $D4 loading code
Then after that is the code for loading graphics from bank $D5. When we repoint the graphics, it doesn't fit any of the conditions and goes right to the code for getting graphics from bank $D5.

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: Question on SA and something else
« Reply #6 on: February 19, 2008, 09:15:19 am »
Progress yet not progress.  Loads HALF of the correct sprites but then kills everything else xD

Vehek

  • Errare Explorer (+1500)
  • *
  • Posts: 1756
    • View Profile
Re: Question on SA and something else
« Reply #7 on: February 19, 2008, 01:32:22 pm »
What are you trying? Here's what I've managed to do:

(Actually, I did this last night, even before mentioning what I'd found.)
« Last Edit: February 19, 2008, 01:37:30 pm by Vehek »

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: Question on SA and something else
« Reply #8 on: February 19, 2008, 03:07:44 pm »
....!  How did you do that!  That's what I was trying to accomplish!  That's all we needed for the map sprites was for them to load correctly for the 8th char!  Then after we have this, we have to somehow fix it's battle animations and we'll be set mostly for it ^^.

PS: I'm gonna PM you about something that Cheyne and I want to do but with permission. 
« Last Edit: February 19, 2008, 03:10:37 pm by justin3009 »

Vehek

  • Errare Explorer (+1500)
  • *
  • Posts: 1756
    • View Profile
Re: Question on SA and something else
« Reply #9 on: February 19, 2008, 05:57:54 pm »
I made it go to a copy of part of the code. Instead of checking if the bank's $7F, it checks if it's in $41. If it's not, it goes back to the original code and continues normally. Otherwise, it goes to code that loads data from bank $41.

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: Question on SA and something else
« Reply #10 on: February 19, 2008, 07:01:56 pm »
Damn my horrible ASM skills...I'm having horrible issues with this xD

Vehek

  • Errare Explorer (+1500)
  • *
  • Posts: 1756
    • View Profile
Re: Question on SA and something else
« Reply #11 on: February 19, 2008, 07:14:45 pm »
Here's a patch which uses space at 24F540. For now, it only helps with graphics in bank $41.

[attachment deleted by admin]
« Last Edit: February 19, 2008, 07:16:39 pm by Vehek »

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: Question on SA and something else
« Reply #12 on: February 19, 2008, 07:21:23 pm »
Ahh!  Thank you!  I envy your ASM skills =[

Edit: Did you get my PM?
« Last Edit: February 19, 2008, 07:33:13 pm by justin3009 »