øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1530.msg15320e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index62c7.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;sa=topics;u=169e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index62c7.html.zx~™h^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿȰ€.ŸsOKtext/htmlISO-8859-1gzip8:ÖŸsÿÿÿÿÿÿÿÿWed, 11 Mar 2020 08:12:07 GMT0ó°° ®0®P®€§²ð®}™h^iŸs Question about character names

Author Topic: Question about character names  (Read 1625 times)

angelo26

  • Guard Leader
  • *
  • Posts: 44
    • View Profile
Question about character names
« on: January 23, 2011, 10:23:19 PM »
I was looking through the C1 and C3 banks to see where does the game loads character names from address 47AC0, but I couldn't find any!

My thought is that if I would like to increase character names like up to 8 letters, I would need to let the code know the new address with the expanded names, but I cannot find any code that points to 47AC0. Can somebody explain please?

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Question about character names
« Reply #1 on: January 24, 2011, 08:24:44 PM »
Bank C4 has nothing on character names, and the location you listed has this:
Code: [Select]
C47AC0-C47F3F       SHOP          Shop Specifications (128 items, 9 bytes each [1 title byte, 8 items])
There's about 6 or 7 routines you need to tweak scattered in C0, C1, C2, and C3 if you want to expand character names.

119 bugs fixed and counting.

angelo26

  • Guard Leader
  • *
  • Posts: 44
    • View Profile
Re: Question about character names
« Reply #2 on: January 25, 2011, 02:48:02 PM »
Thank you sir, I didn't know there were routines concerning character names, spells and item names in the C0 bank :O TY TY

angelo26

  • Guard Leader
  • *
  • Posts: 44
    • View Profile
Re: Question about character names
« Reply #3 on: February 02, 2011, 01:35:06 AM »
OK, I was able to find most instances in the code that refers to the names, here's the one that allows you to increase letters in the "Please enter a name" screen:

Code: [Select]
Change character XX's name to YY
(gen. act. 7F)

C0/A03A: 20AD9D  JSR $9DAD
C0/A03D: A906    LDA #$06
C0/A03F: 8D0242  STA $4202
C0/A042: A5EC    LDA $EC
C0/A044: 8D0342  STA $4203
C0/A047: EA      NOP
C0/A048: EA      NOP
C0/A049: EA      NOP
C0/A04A: AE1642  LDX $4216
C0/A04D: BFC078C4 LDA $C478C0,X
C0/A051: 990216  STA $1602,Y
C0/A054: BFC178C4 LDA $C478C1,X
C0/A058: 990316  STA $1603,Y
C0/A05B: BFC278C4 LDA $C478C2,X
C0/A05F: 990416  STA $1604,Y
C0/A062: BFC378C4 LDA $C478C3,X
C0/A066: 990516  STA $1605,Y
C0/A069: BFC478C4 LDA $C478C4,X
C0/A06D: 990616  STA $1606,Y
C0/A070: BFC578C4 LDA $C478C5,X
C0/A074: 990716  STA $1607,Y
C0/A077: A903    LDA #$03
C0/A079: 4C5C9B  JMP $9B5C

Initially I want the character names to be 8 letters long, and I figured I need to add a couple of STA's followed by LDA's in the code up above.

But my problem is with the actual menu; when I change all the associated code, here's what happens: Naming screen is ok (cursor gets crazy), and when accessing the menu, the character's level becomes crazy, and one of the letters from the name seems to be erased.
Sounds like some variable is overflowing, but I'm not sure. Any ideas?

« Last Edit: February 02, 2011, 01:44:53 AM by angelo26 »