øA slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;sa=messages;u=10 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexb574-2.html layed slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=10 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexb574-2.html.z x Ýþg^ ÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ °U RÏ OK text/html ISO-8859-1 gzip @øÕ RÏ ÿÿÿÿÿÿÿÿ ÑH Tue, 10 Mar 2020 21:12:21 GMT 0ó° °® 0® P® €§² ð® Ýþg^ ÿÿÿÿÿÿÿÿ“% RÏ
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
sounds good. but if it requires me to do anything, it'll probably wait until after April 15th. i haven't started doing my taxes yet, so i'll be very busy the next 2 weeks.
also, with no C2 modifications in your patch, you aren't capping the in-battle Step Mine cost. see near the end of Function C2/5551.Wow, you're right. I completely forgot that battles use a different routine to determine MP cost, and that's important. It almost seems moot to cap it in the original game though, while leaving this bug intact. This patch looks like it should go hand-in-hand with yours. How about we co-author a patch for this that includes both the bugfix and the overflow fix?
won't the FFs break things after C3/F0A1 returns? you might want those NOPs after all.
Determine the MP cost to a given spell
C3/510D: 48 PHA (save current spell)
C3/510E: 20F550 JSR $50F5 (A = A * 14)
C3/5111: AE3421 LDX $2134 (X product of previous JSR)
C3/5114: BFC56AC4 LDA $C46AC5,X (magic data, MP cost)
C3/5118: 85E0 STA $E0 (store MP cost)
C3/511A: 68 PLA (get current spell)
C3/511B: C999 CMP #$99 (is the current spell Step Mine?)
C3/511D: D00F BNE $512E (branch if not)C3/511F: AD1B02 LDA $021B
C3/5122: 0A ASL A (* 2)
C3/5123: 85E0 STA $E0 (save as new MP cost)
C3/5125: AD1C02 LDA $021C
C3/5128: C91E CMP #$1E
C3/512A: 9002 BCC $512E
C3/512C: E6E0 INC $E0 (add 1 to MP cost)C3/511F: 20A1F0 JSR $F0A1 (Jump to new subroutine)C3/F0A1: AD1B02 LDA $021B (Load hours)
C3/F0A4: C980 CMP #$80 (Are hours 128 or greater?)
C3/F0A6: 9005 BCC $F0AD (Branch to $F0AD if no)
C3/F0A8: A9FF LDA #$FF (Set MP cost to 255)
C3/F0AA: 85E0 STA $E0 (Store 255 as Step Mine MP cost)
C3/F0AC: 60 RTS (Return)
C3/F0AD: 0A ASL A (Multiply hours played by 2)
C3/F0AE: 85E0 STA $E0 (save this amount as new MP cost for Step Mine)
C3/F0B0: AD1C02 LDA $021C (load minutes)
C3/F0B3: C91E CMP #$1E (Are minutes 30 or higher?)
C3/F0B5: 9002 BCC $F0B9 (Branch to $F0B9 if not)
C3/F0B7: E6E0 INC $E0 (add 1 to MP cost of Step Mine)
C3/F0B9: 60 RTS (Return)I know this is an old thread, but I've been testing this and I've discovered that it interferes with the MP cost for Step Mine. MP costs for spells in general are 8-bit values, so without this patch, since the maximum time would be 99:59, the max MP cost for Step Mine would be 199. With this patch, the maximum time is 255:59, so in theory the max MP cost would be 511; however, this is no longer an 8-bit value. It's now a 9-bit value, but the top bit gets lost. As a result, for anyone who has played for 128 hours, Step Mine now has a cost of 0 when it should be 256.
What is this?
In Final Fantasy III (US) there is a skill called Step Mine. This skill does damage based
on your total number of steps, and costs MP based on the total time played. I had created
a patch for the game that expands the timer to allow for up to 255 hours of gameplay to
be recorded. It was then brought to my attention, by 13375K31C43R, that this had an
adverse effect on Step Mine's MP cost. Since hours capped at 99, no rollover check was
put in place. At 128 hours, Step Mine's MP cost rolled over to 0. These patches will fix
this behavior when using my 255 hours patch.
The 199 patch will cap Step Mine MP cost at 199 (which was the natural maximum when hours
were capped at 99 - this is equivalent behavior to the original game and the choice for
purists who still want an expanded timer counter). It will cap at 199 when the timer
reaches 99:30, and will not go any higher when the hours go over 100.
The 255 patch will cap Step Mine's MP cost at 255. This will happen when the timer
reaches 127:30. It will not go any higher, nor will it roll over.
Ah, that sucks. I'll try not to burn down the shiny new forum in your absence.
were they thinking?
Is it possible to show the seconds? :D
C3/326C: AD8811 LDA $1188
C3/326F: 8910 BIT #$10
C3/3271: F016 BEQ $3289
C3/3273: AC8911 LDY $1189 (is $1189 the elapsed time in seconds?)
C3/3276: 20B232 JSR $32B2 (if so, this gives minutes)
C3/3279: 20B232 JSR $32B2 (and this would give hours)
C3/327C: A5E7 LDA $E7 (load A with hours)
C3/327E: 8D6318 STA $1863 (put hours in $1863)
C3/3281: AD1642 LDA $4216 (remainder is excess minutes)
C3/3284: 8D6418 STA $1864 (put that in $1864)
C3/3287: 800C BRA $3295
C3/3289: AC1B02 LDY $021B (Hours and minutes)
C3/328C: 8C6318 STY $1863 (store in SRAM)
C3/328F: AD1D02 LDA $021D (Seconds amd frames)
C3/3292: 8D6518 STA $1865 (store in SRAM)
C3/3295: A920 LDA #$20
C3/3297: 8529 STA $29 (set text color to white)
C3/3299: AD6318 LDA $1863 (hours)
C3/329C: 20E004 JSR $04E0 (convert leading 0's to spaces)
C3/329F: A2FB7C LDX #$7CFB (The position, I believe)
C3/32A2: 20B604 JSR $04B6 (2 digits to display)
C3/32A5: AD6418 LDA $1864 (minutes)
C3/32A8: 20F904 JSR $04F9 (convert minutes to a displayable format)
C3/32AB: A2017D LDX #$7D01
C3/32AE: 20B604 JSR $04B6 (JMP fool!, 2 digits to display)
C3/32B1: 60 RTS
LDA $1863
JSR $04E0
LDX #$7CF5 (This will move the Hours counter 3 spaces to the left)
JSR $04C0 (This will change the counter from a 2-digit display to a 3-digit display)
LDA $1864
JSR $04F9 (convert minutes to a displayable format)
LDX #$7CFB (This will move the minutes counter 3 spaces to the left)
JSR $04B6
LDA $1865 (seconds)
JSR $04F9 (convert to displayable format)
LDX #$7D01 (place where the minutes counter used to go)
JSR $04B6 (limit to 2 digits)
RTS