Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1497.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index21a5.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=8.260e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index21a5.html.zx9'h^ЋOKtext/htmlISO-8859-1gzip@Wed, 11 Mar 2020 00:04:34 GMT0 0P9'h^! Window editing

Author Topic: Window editing  (Read 1819 times)

angelo26

  • Guard Leader
  • *
  • Posts: 44
    • View Profile
Window editing
« on: November 18, 2010, 12:14:30 AM »
Hi guys,
I've been loking for the data in te C1 and C2 banks that will allow me to expand the battle menu window (the one where you choose from fight, XXXX, magic, item) because I want to expand some commands like X-Magic into Dualcast ans so on... All I've found is this:

Code: [Select]
Data: Absolute addressses of menu window graphics
C1/3FE0: 0000ED
C1/3FE3: 8003ED 
C1/3FE6: 0007ED 
C1/3FE9: 800AED 
C1/3FEC: 000EED 
C1/3FEF: 8011ED
C1/3FF2: 0015ED 
C1/3FF5: 8018ED 

Data
C1/3FF8: 571D00
C1/3FFB: 651D00
C1/3FFE: 731D00
C1/4001: 811D00
C1/4004: 8F1D00
C1/4007: 9D1D00
C1/400A: AB1D00
C1/400D: B91D00

C1/4010: AD342F    LDA $2F34      (Wallpaper selection) (from C1/4034, C1/403F)
C1/4013: 2907    AND #$07       (Zero out upper nibble)
C1/4015: 8D342F  STA $2F34      (Store as the wallpaper selection)
C1/4018: 0A      ASL A          (Double it)
C1/4019: 18      CLC
C1/401A: 6D342F  ADC $2F34      (Add in the original [now A holds Wallpaper # times 3])
C1/401D: AA      TAX
C1/401E: BFE23FC1 LDA $C13FE2,X  (load upper byte of address of menu window graphics)
C1/4022: 8512    STA $12
C1/4024: C220    REP #$20
C1/4026: BFE03FC1 LDA $C13FE0,X  (load lower two bytes of address of menu window graphics)
C1/402A: AA      TAX
C1/402B: 7B      TDC
C1/402C: E220    SEP #$20
C1/402E: A08003  LDY #$0380
C1/4031: 8410    STY $10
C1/4033: 60      RTS

Which looks like the background for the battle menus in general.
I also found this data for the actual menu:
 
Code: [Select]
Hotspot data for status menu
C3/370E: 80 00 00 01 04

C3/3713: 9059    (first command, normally "Fight")
C3/3715: 9065    (second command, normally skill goes here)
C3/3717: 9071    (third command, normally "Magic")
C3/3719: 907D    (fourth command, normally "Item")


and I've messed around with it before, but no result.
Any ideas on this? Thanks
« Last Edit: November 18, 2010, 12:22:59 AM by angelo26 »

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Window editing
« Reply #1 on: November 18, 2010, 06:46:45 AM »
The code you pasted for C3 is just hotspot data, the finger position. It has nothing to do with the windows. That first snip is just the addresses for the graphics themselves. If you feel brave, follow the yellow brick road...

119 bugs fixed and counting.

angelo26

  • Guard Leader
  • *
  • Posts: 44
    • View Profile
Re: Window editing
« Reply #2 on: November 18, 2010, 04:56:58 PM »
Ummmm I guess what you mean is "go experiment first and then come back here"? If not, I have no idea what u mean Lenophis  :isuck:

After looking for a while, I found how to increase the window size of the commands on the status window, the address is
Code: [Select]
C3/5F7D: EB 5A 09 06  Just change the "09" byte to make the window longer (by extending the right border).

I believe that to extended the name of the commands from 7 letters to 9 letters is around here:
Code: [Select]
C1/5F1C: A907    LDA #$07 (7 = battle command name length)
C1/5F2E: BFA0CED8 LDA $D8CEA0,X (Load battle command name X)
C1/69ED: A907    LDA #$07 (7 = battle command name length)
C1/69FE: BFA0CED8 LDA $D8CEA0,X  (Loads Battle command name X)

C3/5EF8: A00700  LDY #$0007     (Commands are 7 letters long)
C3/5EFB: BFA0CED8 LDA $D8CEA0,X  (Load Xth letter of Battle Cmd. name)

Is the data I'm looking for in the C2 bank?
Thanks lenophis!

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Window editing
« Reply #3 on: November 18, 2010, 07:04:55 PM »
Is the data I'm looking for in the C2 bank?
Hell if I know. I think it's in C1, actually, since that's where a lot of crap is regarding hard-coding targeting and the such. One person did find out, but he's no longer with us. :sad:

119 bugs fixed and counting.