Posts: 842
Threads: 44
Joined: Jan 2016
Reputation:
8
Sorry, asar is being a little shit and refusing to patch it. Would it be much trouble to ask for a basic Hex breakdown so I can do it myself?
Posts: 842
Threads: 44
Joined: Jan 2016
Reputation:
8
07-04-2017, 11:35 PM
(This post was last modified: 07-04-2017, 11:37 PM by DrakeyC.)
I'd posted it on the shoutbox because I figured it was a dumb problem, but asar says it doesn't recognize my rom name and refuses to patch it. Says the name is garbage.
Posts: 200
Threads: 1
Joined: Oct 2015
Reputation:
18
you're welcome. eventually test the other 7 flag/checkbox combos, to make sure i typed correct values for all 8.
a limitation mentioned in the code: the function always loops at least once, so it won't work properly when called with A = 0 (e.g. if somebody reconfigures the flags to be in the bottom of a byte). this can be fixed by adding 3 bytes, or maybe 2 if the A=0 case gets its own entry point. doesn't matter for your purposes, but i wanted to get it on the record.
Posts: 842
Threads: 44
Joined: Jan 2016
Reputation:
8
07-05-2017, 03:34 PM
(This post was last modified: 07-05-2017, 08:38 PM by DrakeyC.)
With a weapon for 12.5% MP, shield for 25% MP, helm for 12.5% HP, and armor for 25% HP, I tried most every combination of them I could including all four. Boosts worked properly in all configurations.
Ah, scratch that, we broke something, big time. Assorted weapons are now causing a permanent increase to HP and MP if equipped and then removed. There's no pattern that I can tell, one such weapon is the Assassin dagger, weapon #5, has no special stuff beyond the Random Kill ability. Other weapons causing that glitch have no pattern to them; one such weapon has no special properties at all but it does it.
Posts: 200
Threads: 1
Joined: Oct 2015
Reputation:
18
argh.. i forgot that TAX here will put all 16 bits of A into X, and there's unknown junk in the top half.
a TDC before C2/0EFA would work wonders, but i can't find space for it. so i'll do a clunky 3 instructions before the PHX; see edited post.