Zamiel icon

Eden Streak Detector

Zamiel | PRO | 01/16/17 06:04:14 PM UTC | 0 ⭐ | 352 👁️ | Never ⏰ | []
text |

940 B

|

None

|

0 👍

/

0 👎

#!C:\Python34\python.exe
 +----------------------+
| Eden streak detector |
+----------------------+
 # Imports
import sys
import struct
import time
 # Configuration
game_data_file = 'C:/Users/james/Documents/My Games/Binding of Isaac Afterbirth/persistentgamedata2.dat'
output_file = 'D:/Games/PC/Binding of Isaac Rebirth/EdenStreak.txt'
 # Set up streak and save file
oldstreak = -100
 # Loop forever
while True:
    with open(game_data_file, 'rb') as fin:
        # Check the streak
        streak = struct.unpack_from('<I', fin.read(), 0x195)[0]
         # If the streak changed, overwrite the text file
        if streak != oldstreak:
            fout = open(output_file, 'w')
            fout.write("Eden\nStreak:\n{0}".format(streak))
            fout.close()
            oldstreak = streak
             # And let the user know
            print('Eden Streak updated to:', streak)
         time.sleep(1)

Comments