Not written

CKPatch is a set of patching tools for all Keen episodes.
Post Reply
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Not written

Post by levellass »

CKPatch is not writing parts of the patches a program of mine produces.

Usually these are single lines starting with %patch $xxxx $C7; they'll be read, and any errors spotted, they'll be written if placed lower down in the patchfile, but for some reason CKPatch randomly, though repeatedly won't patch single lines from my patchfiles, anyone have any idea why this is so?
User avatar
adurdin
Site Founder
Posts: 549
Joined: Fri Aug 29, 2003 11:27 pm
Location: Edinburgh, Scotland
Contact:

Post by adurdin »

Can you give an example of a patch file where they work and one where they don't?
User avatar
Shadow Master
Posts: 129
Joined: Fri Oct 20, 2006 3:14 pm
Location: Santiago, Chile
Contact:

Post by Shadow Master »

Try to upload the whole file somewhere (if you can). Perhaps it's something to do with UNIX-style newlines mixed with DOS-style newlines. That shouldn't happen unless you're using a program other than Windows notepad anyway.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

What in hells name just happened? I posted the patchfile yesterday, and today it has vannished, the whole post!

Full file; line 4 doesn't work when placed as lines 1-6

Code: Select all

%patch $53C0 $C3
%patch $18B4 $C1 $53
%patchfile $53C1 YORP.BEH
%patch $53DA $80 $6C #C05C
%patch $5424 $04 $D8 #2C2A
%patch $5427 $44 $D8 #2C6D
%patch $5497 $91 $D7 #2C2A
%patch $549A $D1 $D7 #2C6D
%patch $54D3 $55 $D7 #2C2A
%patch $54D6 $95 $D7 #2C6D
%patch $53CD $FF $6C
%patch $53E6 $E6 $6C
%patch $5494 $C1 $53
%patch $53F2 $45 $54
%patch $54CA $45 $54
%patch $45E5 $9E $54
%patch $462A $9E $54 
%patch $18CD  60 #Initial speed, towards Keen
%patch $18D4 -60 #Initial speed 2
%patch $548E -60
%patch $5486  60
%patch $5440  60 #Right speed of Yorp after Yorp hits left wall
%patch $5434 -60 #Left speed of Yorps after Yorp hits right wall
%patch $544C   0 #Speed used when Yorp looking around [Standing still]
%patch $54D0   0 #Speed of stomped sprite [Standing still]
%patch $53D6 128 #Sprite jump height
 %patch $188B  2
%patch $18DE 48 #Initial sprite
%patch $5459 48 #Looking around
%patch $5456  3 #Frames used -1
%patch $5452  5 #Animation speed
%patch $5405 52 #Walking right
%patch $540D 54 #Walking left
%patch $5417  1 #Frames used for walking left *and* right
%patch $5413  4 #Animation speed
%patch $54AC 56 #Stunned
%patch $54A9  1 #Frames used -1
%patch $54A5  4 #Animation speed
%patch $18D9  $DA $54
%patch $18DB $E9 $55 $3C
#Add the sprite's death behavior:
%patch $54DA $55 $8B $EC $56 $57 $8B $76 $04 $8B $5E $06 $83 $3F $0A $74 $05
             $83 $3F $0B $75 $40 $8B $44 $24 $FF $4C $24 $0B $C0 $75 $36 $B8
             $27 $00 $50 $E8 $F3 $69 $44 $44 $C7 $44 $2A $00 $00 $C7 $44 $2C
             $06 $00 $C7 $44 $28 $52 $00 $C7 $44 $34 $60 $33 $C7 $44 $32 $9D
             $48 $E8 $60 $D4 $8B $F8 $C7 $45 $08 $05 $00 $C7 $45 $22 $45 $4A
             $C7 $45 $0A $00 $00 $5F $5E $5D $C3
%patch $5533                                     $C7 $44 $24 $04 $00 $83 $3E
             $04 $83 $10 $75 $05 $C7 $44 $24 $68 $00 $8B $44 $06 $8B $54 $04
             $3B $06 $E0 $6E $7C $0F $7F $06 $3B $16 $DE $6E $76 $07 $C7 $44
             $28 $30 $00 $5E $5D $C3
%patch $550A       6 #Death frames used
%patch $550F      82 #Shot sprite death starts with
%patch $54FA      39 #Death sound
%patch $5514 $60 $33 #What dead sprite does when shot [Nothing]
%patch $5519 $9D $48 #How dead sprite behaves [Be dead]
%patch $5536       3
%patch $553C      16
%patch $5542      99
Post Reply