comparison pytouhou/formats/t6rp.py @ 193:9f58e2a6e950

Fix particles, fix "random" item popping, change update order to match the original game's more closely.
author Thibaut Girka <thib@sitedethib.com>
date Fri, 28 Oct 2011 12:38:26 +0200
parents ba3297ab3bde
children 88361534c77e
comparison
equal deleted inserted replaced
192:5e84dfd153ab 193:9f58e2a6e950
69 file.seek(15) 69 file.seek(15)
70 if checksum != (sum(ord(c) for c in data) + 0x3f000318 + replay.key) & 0xffffffff: 70 if checksum != (sum(ord(c) for c in data) + 0x3f000318 + replay.key) & 0xffffffff:
71 raise Exception #TODO 71 raise Exception #TODO
72 72
73 replay.unknown3 = unpack('<B', file.read(1)) 73 replay.unknown3 = unpack('<B', file.read(1))
74 replay.date = read_string(file, 9, 'ascii') 74 replay.date = file.read(9) #read_string(file, 9, 'ascii')
75 replay.name = read_string(file, 9, 'ascii').rstrip() 75 replay.name = file.read(9) #read_string(file, 9, 'ascii').rstrip()
76 replay.unknown4, replay.score, replay.unknown5, replay.slowdown, replay.unknown6 = unpack('<HIIfI', file.read(18)) 76 replay.unknown4, replay.score, replay.unknown5, replay.slowdown, replay.unknown6 = unpack('<HIIfI', file.read(18))
77 77
78 stages_offsets = unpack('<7I', file.read(28)) 78 stages_offsets = unpack('<7I', file.read(28))
79 79
80 for i, offset in enumerate(stages_offsets): 80 for i, offset in enumerate(stages_offsets):