øAslickproductions.org/forum/index.php?PHPSESSID=so1iojs5ocdn0o2vf0tti7fbu6&topic=2432.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index9c72-2.htmlslickproductions.org/forum/index.php?PHPSESSID=so1iojs5ocdn0o2vf0tti7fbu6&board=17.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index9c72-2.html.zx>õg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ@@] ‹¼OKtext/htmlISO-8859-1gzip8:Ö‹¼ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 20:31:17 GMT0ó°° ®0®P®€§²ð®=õg^ÿÿÿÿÿÿÿÿý ‹¼ Maximum Power of the Chicken Knife

Author Topic: Maximum Power of the Chicken Knife  (Read 187 times)

Xardas

  • Siren
  • *
  • Posts: 75
    • View Profile
Maximum Power of the Chicken Knife
« on: February 28, 2018, 01:59:01 AM »
Hello,
is there any known way to change the maximum power of the Chicken Knife?
I am thinking of setting it somewhere around 100.
Also, according to instructrtrepe's algorithm guide:
Quote
Attack = (# times escaped from battle)/2
Maximum Attack = 127
M = (Level*Strength)/128 + (Level*Agility)/128 + 2
Defense = Defense
But I'm not really sure if there is a "Maximum Attack = 127" step per se. I think it rather just says "# times escaped from battle)/2" while stop counting after 255 escapes (=2 bytes), hence the max value of 127.
« Last Edit: February 28, 2018, 03:52:38 AM by Xardas »

Squall

  • Dark Dragon
  • *
  • Posts: 486
    • View Profile
Re: Maximun Power of the Chicken Knife
« Reply #1 on: February 28, 2018, 04:12:42 AM »
Here is the routine that increase Number Of Escapes ($7C75):
Code: [Select]
C2/50CD: 18           CLC
C2/50CE: AD 75 7C     LDA $7C75
C2/50D1: 69 01        ADC #$01
C2/50D3: 90 02        BCC $50D7
C2/50D5: A9 FF        LDA #$FF
C2/50D7: 8D 75 7C     STA $7C75
It is limited to 255. If you limit it to 200, then this will decrease Chicken Knife to 100.
Unfortunately in order to cap it to 200, you need to add 2 extra bytes (CMP #200) and that ... is not trivial task.

Since above will affect too many things its better to cap it here:
Code: [Select]
Chicken Knife Damage Formula
C2/8626: AD 75 7C     LDA $7C75
C2/8629: 4A           LSR
C2/862A: AA           TAX
C2/862B: 86 50        STX $50
but you will need around extra 6 bytes (CMP #200; Bxx ; LDA #200)... which again is not a trivial things

If you really want to change it, I will suggest the second spot. Find a free space in C2 bank to inject short code:
Quote
LDA $7C75
CMP #200
Bxx
LDA #200
RTS
(10 bytes) and change the 3 bytes of LDA $7C75 with JSR <your injected code>

Squall

  • Dark Dragon
  • *
  • Posts: 486
    • View Profile
Re: Maximum Power of the Chicken Knife
« Reply #2 on: February 28, 2018, 04:14:30 AM »
BTW Xardas, have you played GBA version? If so, do you know what the 3 portraits of a same person are used for (please check my Viewer thread)

Xardas

  • Siren
  • *
  • Posts: 75
    • View Profile
Re: Maximum Power of the Chicken Knife
« Reply #3 on: February 28, 2018, 04:35:21 AM »
BTW Xardas, have you played GBA version? If so, do you know what the 3 portraits of a same person are used for (please check my Viewer thread)
I played the GBA version, but I don't know what you mean - who exactly has 3 portraits? Everyone, or just one character?
I would consider sending user "magicpants29" a PM
http://slickproductions.org/forum/index.php?action=profile;u=255
He must know something about those, as he made a hack which replaces the GBA portraits based by Amano with his own drawings which resemble the in-game sprites much better. However, the last time he logged on was 2012...

Quote
that ... is not trivial task.
I see... would the following approach be at least somehhat easier:
Instead of changing the escape count, can the growth rate be changed? From 0,5 per escape to 0,4 per escape.

Squall

  • Dark Dragon
  • *
  • Posts: 486
    • View Profile
Re: Maximum Power of the Chicken Knife
« Reply #4 on: February 28, 2018, 04:54:41 AM »
Quote
Instead of changing the escape count, can the growth rate be changed? From 0,5 per escape to 0,4 per escape.
The calculation is done in 1 byte (LSR) so whatever change you make it will require more bytes

So regardless are you changing the cap or reduction formula, you will need to 'inject' a small piece of code in C2 similar to what I have already shown in previous post. As far as you find a free space you are free to change in whatever way you want. Its really not hard, just finding that free space is the harder part.

As for the GBA, I will post a screenshot in my thread of what I mean by 3 portraits. Please lets continue there on that subject.
« Last Edit: February 28, 2018, 05:00:50 AM by Squall »

Squall

  • Dark Dragon
  • *
  • Posts: 486
    • View Profile
Re: Maximum Power of the Chicken Knife
« Reply #5 on: March 06, 2018, 03:08:54 AM »
Xardas are you working on something atm?

Xardas

  • Siren
  • *
  • Posts: 75
    • View Profile
Re: Maximum Power of the Chicken Knife
« Reply #6 on: March 06, 2018, 05:40:59 AM »
Xardas are you working on something atm?
I think that's more suitable as a PM.  :laugh:
Nevertheless, it depends how you define "working".
I finally found a suitable ASM tutorial - so I think this time, I will have enough motivation to seriously learn it.
Still, even when I'm done learning, there are still more problems. I don't know where to look for thing which are not explicitely shown/found in the ROM map.
You sure remember how I asked for things like changing Chicken Knife's Multiplier last year. No idea how noisecross knew what exactly to change on which offset.
There were also other problems like the engine ignoring eny evasion other than those of shields. (THIS actually was a huge barrier for me - if I hadn't found this bug, I would have been ready to release an alpha.)
In retrospective, I am kinda glad I didn't release yet - since there were some ideas I never mentioned here due to the fact being downright impossible I thought. (2 explicit examples: 1) I wanted to create a "Red 4" command. 2) I wanted to summarize Iainuki and Mineuchi into a new command "Sword Tech" which would also feature about 2 new techs). Also: it was very important to me to tweak broken buffs (mostly songs) and mixes.

Now, about a year later, Praetarius5018 exposed his HUGE hack FF5:MU - and it seems he actually fixed the evasion problem, introduced caps eg. for the Power Drink, and also added LV4 magic for Red Mages AND some kind of Swod Tech command. (I hope my hack won't become a copycat hack^^)

Squall

  • Dark Dragon
  • *
  • Posts: 486
    • View Profile
Re: Maximum Power of the Chicken Knife
« Reply #7 on: March 06, 2018, 11:54:37 AM »
I finally found a suitable ASM tutorial - so I think this time, I will have enough motivation to seriously learn it.
Good luck. At first it will not be easy but later on it will come. You just need to persist :D If you have any questions about ASM don't hesitate to ask!

Quote
I don't know where to look for thing which are not explicitely shown/found in the ROM map.
You sure remember how I asked for things like changing Chicken Knife's Multiplier last year. No idea how noisecross knew what exactly to change on which offset.
Hehe nobody really knows ... when there is a problem you just check the code that does the thing, you try to understand it ... and then eventually you 'know' what to change :D

BTW if I understood correctly, you know Japanese. What is your level and are you interested in translation projects? If you prefer PM that's fine with me:)

Xardas

  • Siren
  • *
  • Posts: 75
    • View Profile
Re: Maximum Power of the Chicken Knife
« Reply #8 on: March 06, 2018, 12:56:09 PM »
BTW if I understood correctly, you know Japanese. What is your level and are you interested in translation projects? If you prefer PM that's fine with me:)
My level would be about JLPT N2 (1 is the best, 5 is the weakest). But N1 does not mean you are as good as a native speaker.
So I can translate from Japanese to either German or English - not too sure about doing it vice versa. Probably the phrasing would become unnatural on some occasions.

Since we are drifting too far away from the topic, I suggest that you either send me a PM, or start a new topic where you can tell all of us about translations you are thinking about. There might be people who understand Japanese better than me, and/or are native English speakers.