Edit Chainsaw codes - Printable Version +- FF6 Hacking (https://www.ff6hacking.com/forums) +-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html) +--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html) +--- Thread: Edit Chainsaw codes (/thread-3967.html) |
Edit Chainsaw codes - doofenH - 02-26-2020 I'd no idea on how to edit Chainsaw codes that will 100% used instant death kill "only" on enemy that are vulnerable to it, and 100% regular damage if enemy are immune to instant death. I do not like when Edgar's Chainsaw use the 25% instant kill effect on boss that are not vulnerable to it. It just a waste of turn. C2/2B30: 20 5A 4B JSR $4B5A (random #: 0 to 255) C2/2B33: 29 03 AND #$03 C2/2B35: D0 16 BNE $2B4D (75% chance branch) C2/2B37: A9 08 LDA #$08 C2/2B39: 85 B6 STA $B6 (Animation) C2/2B3B: 9C A6 11 STZ $11A6 (Battle power) C2/2B3E: A9 80 LDA #$80 C2/2B40: 0C AA 11 TSB $11AA (Set death/wound status in attack data) C2/2B43: A9 10 LDA #$10 C2/2B45: 8D A4 11 STA $11A4 (Set stamina can block) C2/2B48: A9 02 LDA #$02 C2/2B4A: 0C A2 11 TSB $11A2 (Set miss if instant death protected) C2/2B4D: A9 20 LDA #$20 C2/2B4F: 0C A2 11 TSB $11A2 (Set ignore defense) C2/2B52: 60 RTS RE: Edit Chainsaw codes - PowerPanda - 02-26-2020 I'd say figure out which bit in the monster corresponds to protection from instant death. Then, check that bit with a BEQ, skipping the entire section of code you posted here if that flag is set. You'll need to relocate this portion of code in its entirety to a new part of C2, and reference it with a JSL. RE: Edit Chainsaw codes - Warrax - 02-27-2020 Look for Painful Chainsaw by Michael Springer (T.Geiger). Source: http://geigercount.net/crypt However, don't use the patch from that site as it causes a bug with Drill, use this bug fixed code instead: Code: C2/2B24: 35 2B (New Drill pointer) RE: Edit Chainsaw codes - doofenH - 04-16-2020 (02-27-2020, 03:38 PM)Warrax Wrote: Look for Painful Chainsaw by Michael Springer (T.Geiger).Didn't see this until today. I must had done something wrong with asm. I know the bottom starting 2B4A used the original chainsaw code, but what do you mean "This line must changed"? RE: Edit Chainsaw codes - seibaby - 04-16-2020 Chainsaw and Drill share code, specifically the code that sets Ignore Defense. The patch changes the Chainsaw code, but forgets to edit the Drill pointer to point to the correct offset in the edited code. That's what needs to be changed. RE: Edit Chainsaw codes - doofenH - 04-16-2020 (04-16-2020, 01:33 PM)seibaby Wrote: Chainsaw and Drill share code, specifically the code that sets Ignore Defense. The patch changes the Chainsaw code, but forgets to edit the Drill pointer to point to the correct offset in the edited code. That's what needs to be changed.I think I done right, but game still crash. I change the 2 code for Drill, and then the rest of the Chainsaw ended with EAEAEA. RE: Edit Chainsaw codes - SSJ Rick - 04-17-2020 (04-16-2020, 01:33 PM)seibaby Wrote: Chainsaw and Drill share code, specifically the code that sets Ignore Defense. The patch changes the Chainsaw code, but forgets to edit the Drill pointer to point to the correct offset in the edited code. That's what needs to be changed. oh wow, I knew the original patch had issues, but I didn't know that drill and chainsaw shared their code, that's pretty interesting RE: Edit Chainsaw codes - Warrax - 04-17-2020 (04-16-2020, 09:40 PM)doofenH Wrote: I think I done right, but game still crash. I change the 2 code for Drill, and then the rest of the Chainsaw ended with EAEAEA. I used that code for a while so it should work. Does your rom has a header? If that's the case the code is 200 bytes later with headered roms. If you used the previous patch already, make sure all data is reverted or at least the data at C2/3E6B since that part is not modified anymore. RE: Edit Chainsaw codes - doofenH - 04-19-2020 (04-17-2020, 11:05 PM)Warrax Wrote:(04-16-2020, 09:40 PM)doofenH Wrote: I think I done right, but game still crash. I change the 2 code for Drill, and then the rest of the Chainsaw ended with EAEAEA. Yes it does had header, however what do you mean 200 bytes with using HxD? RE: Edit Chainsaw codes - Warrax - 05-02-2020 (04-16-2020, 09:40 PM)doofenH Wrote: Yes it does had header, however what do you mean 200 bytes with using HxD? It mean that for example the line at C2/2B24 will be at C2/2D24 on a headered rom. C2/2B24 will show as 00022B24 in HxD (and that data will be at 00022D24 on a headered rom). Code: Code for headered ROM only: |