Show Posts

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.


Messages - inuksuk

Pages: [1] 2 3
1
Chrono Trigger Modification / Re: Chrono Trigger - The Fifth Element
« on: August 23, 2023, 05:51:15 pm »
Here's the routine that detects the personal element defense bonus. It's called three times at the start of battle. Elemental defenses are all set to four, then the PC's bonus defense element gets set to five.

Code: [Select]
Load elemental resistance: LDA.W $AEFF,X                    ;FDB3FE|BDFFAE  |00AEFF; X holds battle ID
                       CMP.B #$FF                           ;FDB401|C9FF    |      ; 
                       BEQ Return                           ;FDB403|F032    |FDB437; 
                       LDA.B #$04                           ;FDB405|A904    |      ; Load four
                       STA.W $5E6C,Y                        ;FDB407|996C5E  |005E6C; Store Lightning defense
                       STA.W $5E6D,Y                        ;FDB40A|996D5E  |005E6D; Store Shadow defense
                       STA.W $5E6E,Y                        ;FDB40D|996E5E  |005E6E; Store Water defense
                       STA.W $5E6F,Y                        ;FDB410|996F5E  |005E6F; Store Fire defense
                       LDA.W $5E2E,Y                        ;FDB413|B92E5E  |005E2E; Load personal element defense bonus
                                                            ;      |        |      ; 
       Test Lightning: BIT.B #$80                           ;FDB416|8980    |      ; 
                       BEQ Test Shadow                      ;FDB418|F002    |FDB41C; 
                       BRA Store resistance                 ;FDB41A|8016    |FDB432; 
                                                            ;      |        |      ; 
                                                            ;      |        |      ; 
          Test Shadow: BIT.B #$40                           ;FDB41C|8940    |      ; 
                       BEQ Test Water                       ;FDB41E|F003    |FDB423; 
                       INY                                  ;FDB420|C8      |      ; 
                       BRA Store resistance                 ;FDB421|800F    |FDB432; 
                                                            ;      |        |      ; 
                                                            ;      |        |      ; 
           Test Water: BIT.B #$20                           ;FDB423|8920    |      ; 
                       BEQ Test Fire                        ;FDB425|F004    |FDB42B; 
                       INY                                  ;FDB427|C8      |      ; 
                       INY                                  ;FDB428|C8      |      ; 
                       BRA Store resistance                 ;FDB429|8007    |FDB432; 
                                                            ;      |        |      ; 
                                                            ;      |        |      ; 
            Test Fire: BIT.B #$10                           ;FDB42B|8910    |      ; 
                       BEQ Return                           ;FDB42D|F008    |FDB437; 
                       INY                                  ;FDB42F|C8      |      ; 
                       INY                                  ;FDB430|C8      |      ; 
                       INY                                  ;FDB431|C8      |      ; 
                                                            ;      |        |      ; 
     Store resistance: LDA.B #$05                           ;FDB432|A905    |      ; 
                       STA.W $5E6C,Y                        ;FDB434|996C5E  |005E6C; Store personal element resistance
                                                            ;      |        |      ; 
               Return: RTL                                  ;FDB437|6B      |      ;

2
Chrono Trigger Modification / Re: Chrono Trigger - The Fifth Element
« on: August 22, 2023, 07:04:27 pm »
The routine starting at $C1EF39 reads elemental defenses. The first section tests the element bitflags and chooses an index to read the corresponding elemental defense.

Code: [Select]
     Weapon Effect 0A: TDC                                  ;C1EF39|7B      |      ; Magic Attack
                       LDA.W $B190                          ;C1EF3A|AD90B1  |00B190; Load element/AI byte
                       STA.B $2C                            ;C1EF3D|852C    |00002C; 
                                                            ;      |        |      ; 
       Test Lightning: BIT.B #$80                           ;C1EF3F|8980    |      ; 
                       BEQ Test Shadow                      ;C1EF41|F003    |C1EF46; 
                       TDC                                  ;C1EF43|7B      |      ; Load zero
                       BRA Element was detected             ;C1EF44|8016    |C1EF5C; 
                                                            ;      |        |      ; 
                                                            ;      |        |      ; 
          Test Shadow: BIT.B #$40                           ;C1EF46|8940    |      ; 
                       BEQ Test Water                       ;C1EF48|F004    |C1EF4E; 
                       LDA.B #$01                           ;C1EF4A|A901    |      ; Load one
                       BRA Element was detected             ;C1EF4C|800E    |C1EF5C; 
                                                            ;      |        |      ; 
                                                            ;      |        |      ; 
           Test Water: BIT.B #$20                           ;C1EF4E|8920    |      ; 
                       BEQ Test Fire                        ;C1EF50|F004    |C1EF56; 
                       LDA.B #$02                           ;C1EF52|A902    |      ; Load two
                       BRA Element was detected             ;C1EF54|8006    |C1EF5C; 
                                                            ;      |        |      ; 
                                                            ;      |        |      ; 
            Test Fire: BIT.B #$10                           ;C1EF56|8910    |      ; 
                       BEQ Return                           ;C1EF58|F061    |C1EFBB; 
                       LDA.B #$03                           ;C1EF5A|A903    |      ; Load three
                                                            ;      |        |      ; 
 Element was detected: STA.W $B2CD                          ;C1EF5C|8DCDB2  |00B2CD; Store elemental defense index

The next section of the routine reads the elemental defense from the defender's stat block.

Code: [Select]
Element was detected:  STA.W $B2CD                          ;C1EF5C|8DCDB2  |00B2CD; Store elemental defense index
                       LDA.B #$04                           ;C1EF5F|A904    |      ; 
                       STA.W $B2CF                          ;C1EF61|8DCFB2  |00B2CF; Store damage multiplier numerator
                       LDA.W $B2CD                          ;C1EF64|ADCDB2  |00B2CD; Load index
                       REP #$20                             ;C1EF67|C220    |      ; 
                       CLC                                  ;C1EF69|18      |      ; 
                       ADC.W $B1F6                          ;C1EF6A|6DF6B1  |00B1F6; Add index to defender stat block offset
                       TAX                                  ;C1EF6D|AA      |      ; 
                       TDC                                  ;C1EF6E|7B      |      ; 
                       SEP #$20                             ;C1EF6F|E220    |      ; 
                       LDA.W $5E6C,X                        ;C1EF71|BD6C5E  |005E6C; Load elemental defense

There's a bit more processing and then the damage adjustment that follows. So, the elemental defenses are referenced by index as you can see. I don't think there's a battle code disassembly, though I did go through a bunch of it early this year.

3
Chrono Trigger Modification / Re: Dual/Triple Tech ATB Delay
« on: May 08, 2023, 04:18:13 am »
If you don't want any atb penalties, you can just NOP out the STX at $C1BE92 (edit: safer to change to  STX #$00).

I took another look at this recently. Rather than targeting the divisor and relying on the error catching in the division routine to return zero, I'd suggest editing where the quotient gets loaded. So write LDA #$00 at $C1BE97 to remove all ATB penalties. (I think your edited suggestion of STX #$00 isn't a valid instruction, by the way.)

My suggestion:
Code: [Select]
$C1/BE92 STX $2A ; Store divisor
$C1/BE94 JSR $C92A ; Division routine
$C1/BE97       >LDA #$00    ; Load zero
$C1/BE99 CLC
$C1/BE9A ADC $AFAB,Y ; Add 0+ATB

4
Chrono Trigger Modification / Re: Not Learning a Triple Tech
« on: March 24, 2023, 03:04:22 pm »
Well done!

5
Chrono Trigger Modification / Re: Not Learning a Triple Tech
« on: March 08, 2023, 05:55:56 pm »
I was able to replicate the issue by changing Marle's Tech prerequisite to learn "Double Cure" from Cure 2 to regular Cure (or by changing the prerequisite for Cure Wave to regular Cure). TF seems to write over ten bytes at $0C27F0--I'd only noticed the five before since it caused the issue with learning 3D Attack.

6
Chrono Trigger Modification / Re: Not Learning a Triple Tech
« on: March 07, 2023, 06:49:55 pm »
I ran into this same problem a while back. Check the five bytes at $0C27F0--they should be 8C 6F 01 9C 28. At some point Temporal Flux wrote FF FF 00 00 00 there while I was mucking around with other dual Techs. Never tracked down exactly what happened.

7
Kajar Laboratories / Re: Enhansa Edition
« on: February 21, 2023, 05:05:43 pm »
Looks like an interesting mod! It's a considerable amount of work to make two mods so large in scope work together though, sorry.

8
Chrono Trigger Modification / Re: Temporal Flux Plugins
« on: January 18, 2023, 03:17:38 pm »
Minor bug report: In Warrior Workshop, unchecking Hexadecimal Display doesn't affect the Evade Growth and Evade Growth 2 displays in the Stat Growth pane. Those two stay as hex with the rest of the window in decimal.

9
Kajar Laboratories / Re: Enhansa Edition
« on: December 04, 2022, 05:28:08 pm »
Would someone kindly move this topic back to Kajar Laboratories? Thank you in advance!

10
Quote
Lock will not shut off the enemies' Techs as you might hope.

So true.

Also, Like in the tutorial series,.....

PoisonBarb(just made out of a random x-d out accessory, adding poison or slow as a status affect....) so when you walk through a trap in EVENT(pc.xy.position) auto equips that accessory, ....VERY USEFUL if in a "MINI-DUNGEON" (where you cannot access the menu, etc.)

~Z

11
Chrono Trigger Modification / Re: Chrono Trigger - Music Expansion
« on: November 13, 2022, 04:52:15 pm »
Cool stuff! Thanks for doing the work to make it play nice with Enhansa Edition, too.

12
Kajar Laboratories / Re: Enhansa Edition
« on: December 23, 2021, 10:42:27 pm »
Enhansa Edition v1.0 is now available, hot and fresh! Check it out at the link below:

https://www.romhacking.net/hacks/6440/

Zeality, if you'd be so kind as to make it a news post again I'd appreciate it. :-)

And Boo, you mentioned the r/chronotrigger subreddit--I've submitted a post there as well.

13
Chrono Trigger Modification / Re: Temporal Flux Plugins
« on: December 05, 2021, 03:08:00 am »
Bug report for Hi-Tech. I edited some dual Techs to use different single Techs by changing the effect headers and prerequisites, but the field menu still displays MP costs for the dual Tech as though they use the original single Techs. Everything else seems to work as expected--for example the battle menu displays the intended MP costs.

The field menu is reading the dual Tech requirements from 0C28DB-0C2934 in order to display the MP costs, and changing those values resolves the issue.

14
Kajar Laboratories / Re: Enhansa Edition
« on: November 21, 2021, 09:46:42 pm »
I appreciate the enthusiasm and support, but could you move it off the front page for now? I'm winding down the Beta phase so a full release won't take much longer. Mainly I need to consolidate the changelog which I've been dreading!

15
Kajar Laboratories / Re: Enhansa Edition
« on: November 01, 2021, 09:47:36 pm »
On another note, here's some teasers for what this hack is bringing.

Marle getting her stats upgraded at the End of Time:
https://youtu.be/et58Zu8YN5E

Marle performing her new Tech, Sky Shot:
https://youtu.be/hbHzxrp4Yfw

Note these videos are from earlier builds and may look different from the release version.

Pages: [1] 2 3