Users browsing this thread: 1 Guest(s)
Window sizing

#1
Posts: 763
Threads: 83
Thanks Received: 55
Thanks Given: 7
Joined: Apr 2015
Reputation: 22
Status
Obliviscence
I am looking for where the window sizes are defined for menu battles. Specifically Rage right now. Making a new ability that does NOT need 256 slots, and I want to reduce how many locations it allocates for the menu. Anyone with experience in menu alteration wanna give me a hand?
  Find
Quote  

#2
Posts: 831
Threads: 41
Thanks Received: 16
Thanks Given: 12
Joined: Nov 2009
Reputation: 18
Status
None
With menu sizes in general, I have been looking for the menu sizes info for many moons now. I tried asking Lenophis, but he doesn't know either. He did suggest two things though: (1)The code is in bank C1; (2) ChrisRPG found this code before for his FF6 Retranslation project, but has since passed away.

I did note that the location of the window size that holds the commands for a specific character for the status menu is here, just in case you might need it:

Code:
C3/5F7D:    EB 5A 09 06  Just change the "09" byte to make the window longer (by extending the right border).
Quote  

#3
Posts: 763
Threads: 83
Thanks Received: 55
Thanks Given: 7
Joined: Apr 2015
Reputation: 22
Status
Obliviscence
Thanks. I guess I have some debugging to do. If I find it I will post it here.

Didn't have much time to look today, but I did find one handy thing that might point us in the right direction.

Code:
C1/8269:    ADFD7A      LDA $7AFD
C1/826C:    0A          ASL A
C1/826D:    AA          TAX
C1/826E:    BF9182C1    LDA $C18291,X
C1/8272:    8DAA7B      STA $7BAA
C1/8275:    BF9282C1    LDA $C18292,X
C1/8279:    8DAB7B      STA $7BAB
C1/827C:    EEA97B      INC $7BA9
C1/827F:    60          RTS

This code runs every time a menu is forced to scroll. Since the window never actually changes size... there has got to be something that keeps this code from running when you've reached the end of the menu. One thing that is odd is that it runs through the same 10 bytes (2 at a time) of data at C1/8291 while it is scrolling through...

Hoping to find more tomorrow.
  Find
Quote  

#4
Posts: 763
Threads: 83
Thanks Received: 55
Thanks Given: 7
Joined: Apr 2015
Reputation: 22
Status
Obliviscence
Found it. Notation added by me.

Code:
C1/8175:    B91389      LDA $8913,Y       (load magic menu position)
C1/8178:    C917        CMP #$17       (Have we reached the end?)

C1/8333:    B91F89      LDA $891F,Y   (load lore menu position)
C1/8336:    C914        CMP #$14      (have we reached the end?)

C1/84F6:    B92B89      LDA $892B,Y    (load rage menu position)
C1/84F9:    C97C        CMP #$7C       (Have we reached the end?)

C1/86E1:    B95389      LDA $8953,Y   (load throw menu position)
C1/86E4:    C9FB        CMP #$FB      (have we reached the end?)

C1/88BB:    B94789      LDA $8947,Y   (load item menu position)
C1/88BE:    C9FB        CMP #$FB      (have we reached the end?)

Each number represents an additional line beyond the original menu. Meaning if you don't want it to scroll, simply change it to C9 00, or EA EA. The tools menu has scrolling code that never gets called because it is set at 00.

I am currently trying to track down where to get rid of or alter the values for the little arrows on the side of the menu that tell you how far up/down the menu you are.
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite