Users browsing this thread: 1 Guest(s)
ASM Requests

#51
Posts: 200
Threads: 1
Thanks Received: 10
Thanks Given: 0
Joined: Oct 2015
Reputation: 18
Status
None
(04-02-2014, 11:01 AM)Madsiur Wrote:
(04-01-2014, 07:50 PM)Gi Nattak Wrote: Is there anyway to effectively separate the status' regen and seizure so they do not act on each other? For instance I have a Relic that "Repels Seizure status.", but this in-turn as I come to find out today also blocks regen status, which is whack! Before I go and make my Relic no longer protect against seizure, is there anyway you guys can think of to separate them?

I think this piece of code is what you are looking for:

Code:
C2/26A8: 89 00 02     BIT #$0200
C2/26AB: F0 05        BEQ $26B2   (if Regen blocked, branch)
C2/26AD: 89 40 00     BIT #$0040
C2/26B0: D0 03        BNE $26B5   (if Seizure isn't blocked, branch)
C2/26B2: 29 BF FD     AND #$FDBF  (SO if either Regen or Seizure is blocked, block both.
                                  should explain Regen failing on Ribbon)

You could probably NOP all this and have one status not block the other when blocked.


that's overly broad in the other direction.  it'll allow you to get a status when you already have its "mirror" status permanently.  the game doesn't want you to have two "mirror statuses" (Regen and Seizure, or Slow and Haste) at once; it also has C2/4391 boot out one whenever the other gets set.  there's a reason for that: you'll get inconsistent nonsense behavior when both are set.

see here:
http://mnrogar.slickproductions.org/phpB...6877#p6877


i suppose you could shuffle around code to always heed one status over the other as a tiebreaker, but that's a bit arbitrary, as they're supposed to be opposites but equals.

anyway, i'm working on a patch that rewrites C2/2675 more subtly (going on 4 years now :/).  it should stop GiNattak's original issue while still preventing simultaneous existence.  stay tuned on Mnrogar's forums.
Quote  
[-] The following 1 user says Thank You to assassin for this post:
  • Gi Nattak (07-04-2016)

#52
Posts: 110
Threads: 4
Thanks Received: 4
Thanks Given: 1
Joined: Jan 2012
Reputation: 4
Status
None
In need of a modification fo the Overkill 32000 patch (seen here) that implements the colored MP hack. I seem to be unable to get these two working in tandem.

Here's the deconstructed IPS file for the  colors:
Code:
ORG $C0DED0
_C0DE5E:
;09 01 : 48 : B2 76 : C9 0B : F0 05 : 68 : 09 40 : 80 01 : 68 : 9D 1A 63 : 6B
ORA #$01
PHA
LDA ($76)
CMP #$0B
BEQ end1
PLA
ORA #$40
BRA end2
end1:
PLA
end2:
STA $631A,X
RTL

_C0DE71:
;09 01 48 B2 76 C9 03 F0 05 68 09 40 80 01 68 9D 3F 7B 6B
ORA #$01
PHA
LDA ($76)
CMP #$03
BEQ end3
PLA
ORA #$40
BRA end4
end3:
PLA
end4:
STA $7B3F,X
RTL

_C0DE84:
;48 : BD 1A 63 : 80 04
PHA
LDA $631A,X
BRA bra1
_C0DE8A:
;48 : BD 3F 7B : 29 40 : F0 06 : 68 : 18 : 69 04 : 80 01 : 68 : 99 03 03 : 99 07 03 : 6B
PHA
LDA $7B3F,X
bra1:
AND #$40
BEQ beq1
PLA
CLC
ADC #$04
BRA bra2
beq1:
PLA
bra2:
STA $0303,Y
STA $0307,Y
RTL

ORG $C12B9B ; EA EA 22 8A DE C0
NOP #2
JSL _C0DE8A

ORG $C12D2B ; EA EA 22 84 DE C0
NOP #2
JSL _C0DE84

ORG $C191A0 ; B3 A4 60 B7 90 96 09 96
DB $B3,$A4,$60,$B7,$90,$96,$09,$96


ORG $C1A5A9 ; EA 22 5E DE C0
NOP
JSL _C0DE5E

ORG $C1A6E6 ; EA 22 71 DE C0
NOP
JSL _C0DE71

ORG $C263A9 ; 20 DD A7
JSR _C2A7DD

ORG $C263BC ; F1 A7
db $A4,$A7

;C2A7DD:
;ORG $C2A790
org $c22bef
_C2A7DD:
;48 : E2 20 : AD A3 11 : C2 20 : 10 05 : 68 : 09 05 00 : 60
PHA
SEP #$20
LDA $11A3
REP #$20
BPL plus1
PLA
ORA #$0005
RTS

;68 : 09 0B 00 : 60
;48 : AD A3 11 : 10 05 : 68 : A9 08 : 80 01 : 68 4C 9B 62
plus1:
PLA
ORA $000B
RTS

PHA
LDA $11A3
BPL plus2
PLA
LDA #$08
BRA bra3
plus2:
PLA
bra3:
JMP $629B

;C2C6A1: 63 14 41 7F E0 03 00 7F
ORG $C2C6A1
DB $63,$14,$41,$7F,$E0,$03,$00,$7F
  Find
Quote  
[-] The following 1 user says Thank You to dn for this post:
  • seibaby (01-06-2017)



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite