Users browsing this thread: 1 Guest(s)
Patch: Restored Ability Names (Update)
(11-09-2018, 01:10 PM)Antamaru Wrote: Hello Silentenigma, i found a bug in your hack.
The learning rate of spells in the extra item menu is shifted.
Don't know if this was already in Angelo's patch.
Greetz
That is possible to fix yourself. If you remove the colon and one of the two empty spaces after it, it'll shrink the string enough to fit in the space. Here's how it looks on my game where I did that.
Here's the code.
Code:
C3/5AF9: A2929E LDX #$9E92 ; 7E/9E92
C3/5AFC: 8E8121 STX $2181 ; Set WRAM LBs
C3/5AFF: A9C1 LDA #$C1 ; Char: ":"
C3/5B01: 8D8021 STA $2180 ; Add to string
C3/5B04: A9FF LDA #$FF ; Space char
C3/5B06: 8D8021 STA $2180 ; Add to string
C3/5B09: 8D8021 STA $2180 ; Add to string
C3/5B0C: A9D7 LDA #$D7 ; Char: "×"
C3/5B0E: 8D8021 STA $2180 ; Add to string
C3/5B11: A5E0 LDA $E0 ; Learning rate
C3/5B13: 20E004 JSR $04E0 ; Turn into text
C3/5B16: A5F8 LDA $F8 ; Tens digit
C3/5B18: 8D8021 STA $2180 ; Add to string
C3/5B1B: A5F9 LDA $F9 ; Ones digit
C3/5B1D: 8D8021 STA $2180 ; Add to string
C3/5B20: 9C8021 STZ $2180 ; End string
C3/5B23: 4CD97F JMP $7FD9 ; Draw string
The colon add at 5AFF along with the "add to string" command afterward, and one of the two "add to string" commands for the Space immediately after, are what you want to remove. Remove just one of the "add to string" commands for the space to leave one space between the Spell name and the "xLearn Rate" data. You don't want to just NOP out the commands, retype in the Hex and that'll give you room to add two spaces at the end of the string, invisible.
With those lines removed, it should look like this.
Code:
C3/5AF9: A2929E LDX #$9E92 ; 7E/9E92
C3/5AFC: 8E8121 STX $2181 ; Set WRAM LBs
C3/5AFF: A9FF LDA #$FF ; Space char
C3/5B01: 8D8021 STA $2180 ; Add to string
C3/5B04: A9D7 LDA #$D7 ; Char: "×"
C3/5B06: 8D8021 STA $2180 ; Add to string
C3/5B09: A5E0 LDA $E0 ; Learning rate
C3/5B0B: 20E004 JSR $04E0 ; Turn into text
C3/5B0E: A5F8 LDA $F8 ; Tens digit
C3/5B10: 8D8021 STA $2180 ; Add to string
C3/5B13: A5F9 LDA $F9 ; Ones digit
C3/5B15: 8D8021 STA $2180 ; Add to string
C3/5B18: A9FF LDA #$FF ; Space char
C3/5B1A: 8D8021 STA $2180 ; Add to string
C3/5B1D: 8D8021 STA $2180 ; Add to string
C3/5B20: 9C8021 STZ $2180 ; End string
C3/5B23: 4CD97F JMP $7FD9 ; Draw string
The spaces added at the end, I remember, are because the game covers up some text with the magic text in the Esper menu. I don't recall the details, though. You may or may not need them depending on what you're doing, check your Esper menus and see.
The following 3 users say Thank You to DrakeyC for this post:
• Antamaru (11-14-2018), SilentEnigma (02-25-2019), Warrax (02-26-2019)
• Antamaru (11-14-2018), SilentEnigma (02-25-2019), Warrax (02-26-2019)
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)