1
+ import os .path
2
+ import os
3
+ import tkinter
4
+ from tkinter import *
5
+ import random
6
+
7
+ data_in_byte = b'\x64 \x64 '
8
+ def myClick1 ():
9
+ message1 = Label (root , text = "Data0 (Slot 1): Health Was Set To 9999 - Debugger" )
10
+ message1 .pack ()
11
+ #Edit Data in Bytes Code.
12
+ data_in_byte = b'\x64 \x64 '
13
+ #Bytes to write to file
14
+ Data0 = "Data0"
15
+ #Name of file
16
+
17
+ with open (Data0 , 'rb+' ) as binary_file :
18
+ #open file as binary
19
+ binary_file .seek (32 )
20
+ #Move Editing to Offset 33
21
+ binary_file .write (data_in_byte )
22
+ #Writes the bytes from "data_in_byte"
23
+
24
+ data_in_byte = b'\x64 \x64 '
25
+ def myClick2 ():
26
+ message2 = Label (root , text = "Data0 (Slot 1): Food Was Set To 9999 - Debugger" )
27
+ message2 .pack ()
28
+ #Edit Data in Bytes Code.
29
+ data_in_byte = b'\x64 \x64 '
30
+ #Bytes to write to file
31
+ Data0 = "Data0"
32
+ #Name of file
33
+
34
+ with open (Data0 , 'rb+' ) as binary_file :
35
+ #open file as binary
36
+ binary_file .seek (35 )
37
+ #Move Editing to Offset 33
38
+ binary_file .write (data_in_byte )
39
+ #Writes the bytes from "data_in_byte"
40
+
41
+ data_in_byte = b'\x64 \x64 '
42
+ def myClick3 ():
43
+ message3 = Label (root , text = "Data0 (Slot 1): Battery Was Set To 9999 - Debugger" )
44
+ message3 .pack ()
45
+ #Edit Data in Bytes Code.
46
+ data_in_byte = b'\x64 \x64 '
47
+ #Bytes to write to file
48
+ Data0 = "Data0"
49
+ #Name of file
50
+
51
+ with open (Data0 , 'rb+' ) as binary_file :
52
+ #open file as binary
53
+ binary_file .seek (38 )
54
+ #Move Editing to Offset 33
55
+ binary_file .write (data_in_byte )
56
+ #Writes the bytes from "data_in_byte"
57
+
58
+ data_in_byte = b'\x64 \x64 '
59
+ def myClick4 ():
60
+ message4 = Label (root , text = "Data0 (Slot 1): Water Was Set To 9999 - Debugger" )
61
+ message4 .pack ()
62
+ #Edit Data in Bytes Code.
63
+ data_in_byte = b'\x64 \x64 '
64
+ #Bytes to write to file
65
+ Data0 = "Data0"
66
+ #Name of file
67
+
68
+ with open (Data0 , 'rb+' ) as binary_file :
69
+ #open file as binary
70
+ binary_file .seek (48 )
71
+ #Move Editing to Offset 33
72
+ binary_file .write (data_in_byte )
73
+ #Writes the bytes from "data_in_byte"
74
+ #======================================================================================================#
75
+
76
+ data_in_byte = b'\x64 \x64 '
77
+ def myClick5 ():
78
+ message5 = Label (root , text = "Data1 (Slot 2): Health Was Set To 9999 - Debugger" )
79
+ message5 .pack ()
80
+ #Edit Data in Bytes Code.
81
+ data_in_byte = b'\x64 \x64 '
82
+ #Bytes to write to file
83
+ Data1 = "Data1"
84
+ #Name of file
85
+
86
+ with open (Data1 , 'rb+' ) as binary_file :
87
+ #open file as binary
88
+ binary_file .seek (32 )
89
+ #Move Editing to Offset 33
90
+ binary_file .write (data_in_byte )
91
+ #Writes the bytes from "data_in_byte"
92
+
93
+ data_in_byte = b'\x64 \x64 '
94
+ def myClick6 ():
95
+ message6 = Label (root , text = "Data1 (Slot 2): Food Was Set To 9999 - Debugger" )
96
+ message6 .pack ()
97
+ #Edit Data in Bytes Code.
98
+ data_in_byte = b'\x64 \x64 '
99
+ #Bytes to write to file
100
+ Data1 = "Data1"
101
+ #Name of file
102
+
103
+ with open (Data1 , 'rb+' ) as binary_file :
104
+ #open file as binary
105
+ binary_file .seek (35 )
106
+ #Move Editing to Offset 33
107
+ binary_file .write (data_in_byte )
108
+ #Writes the bytes from "data_in_byte"
109
+
110
+ data_in_byte = b'\x64 \x64 '
111
+ def myClick7 ():
112
+ message7 = Label (root , text = "Data1 (Slot 2): Battery Was Set To 9999 - Debugger" )
113
+ message7 .pack ()
114
+ #Edit Data in Bytes Code.
115
+ data_in_byte = b'\x64 \x64 '
116
+ #Bytes to write to file
117
+ Data1 = "Data1"
118
+ #Name of file
119
+
120
+ with open (Data1 , 'rb+' ) as binary_file :
121
+ #open file as binary
122
+ binary_file .seek (38 )
123
+ #Move Editing to Offset 33
124
+ binary_file .write (data_in_byte )
125
+ #Writes the bytes from "data_in_byte"
126
+
127
+ data_in_byte = b'\x64 \x64 '
128
+ def myClick8 ():
129
+ message8 = Label (root , text = "Data1 (Slot 2): Water Was Set To 9999 - Debugger" )
130
+ message8 .pack ()
131
+ #Edit Data in Bytes Code.
132
+ data_in_byte = b'\x64 \x64 '
133
+ #Bytes to write to file
134
+ Data1 = "Data1"
135
+ #Name of file
136
+
137
+ with open (Data1 , 'rb+' ) as binary_file :
138
+ #open file as binary
139
+ binary_file .seek (48 )
140
+ #Move Editing to Offset 33
141
+ binary_file .write (data_in_byte )
142
+ #Writes the bytes from "data_in_byte"
143
+
144
+ #=========================================================================================================#
145
+
146
+ data_in_byte = b'\x64 \x64 '
147
+ def myClick9 ():
148
+ message9 = Label (root , text = "Data2 (Slot 3): Health Was Set To 9999 - Debugger" )
149
+ message9 .pack ()
150
+ #Edit Data in Bytes Code.
151
+ data_in_byte = b'\x64 \x64 '
152
+ #Bytes to write to file
153
+ Data2 = "Data2"
154
+ #Name of file
155
+
156
+ with open (Data2 , 'rb+' ) as binary_file :
157
+ #open file as binary
158
+ binary_file .seek (32 )
159
+ #Move Editing to Offset 33
160
+ binary_file .write (data_in_byte )
161
+ #Writes the bytes from "data_in_byte"
162
+
163
+ data_in_byte = b'\x64 \x64 '
164
+ def myClick10 ():
165
+ message10 = Label (root , text = "Data2 (Slot 3): Food Was Set To 9999 - Debugger" )
166
+ message10 .pack ()
167
+ #Edit Data in Bytes Code.
168
+ data_in_byte = b'\x64 \x64 '
169
+ #Bytes to write to file
170
+ Data2 = "Data2"
171
+ #Name of file
172
+
173
+ with open (Data2 , 'rb+' ) as binary_file :
174
+ #open file as binary
175
+ binary_file .seek (35 )
176
+ #Move Editing to Offset 33
177
+ binary_file .write (data_in_byte )
178
+ #Writes the bytes from "data_in_byte"
179
+
180
+ data_in_byte = b'\x64 \x64 '
181
+ def myClick11 ():
182
+ message11 = Label (root , text = "Data2 (Slot 3): Battery Was Set To 9999 - Debugger" )
183
+ message11 .pack ()
184
+ #Edit Data in Bytes Code.
185
+ data_in_byte = b'\x64 \x64 '
186
+ #Bytes to write to file
187
+ Data2 = "Data2"
188
+ #Name of file
189
+
190
+ with open (Data2 , 'rb+' ) as binary_file :
191
+ #open file as binary
192
+ binary_file .seek (38 )
193
+ #Move Editing to Offset 33
194
+ binary_file .write (data_in_byte )
195
+ #Writes the bytes from "data_in_byte"
196
+
197
+ data_in_byte = b'\x64 \x64 '
198
+ def myClick12 ():
199
+ message12 = Label (root , text = "Data2 (Slot 3): Water Was Set To 9999 - Debugger" )
200
+ message12 .pack ()
201
+ #Edit Data in Bytes Code.
202
+ data_in_byte = b'\x64 \x64 '
203
+ #Bytes to write to file
204
+ Data1 = "Data1"
205
+ #Name of file
206
+
207
+ with open (Data1 , 'rb+' ) as binary_file :
208
+ #open file as binary
209
+ binary_file .seek (48 )
210
+ #Move Editing to Offset 33
211
+ binary_file .write (data_in_byte )
212
+ #Writes the bytes from "data_in_byte"
213
+
214
+ root = Tk ()
215
+ root .geometry ("750x450" )
216
+
217
+ myButton1 = Button (root , text = "Data0 (Slot 1): 9999 Health" , command = myClick1 , fg = "white" , bg = "black" )
218
+ myButton1 .pack ()
219
+
220
+ myButton2 = Button (root , text = "Data0 (Slot 1): 9999 Food" , command = myClick2 , fg = "white" , bg = "black" )
221
+ myButton2 .pack ()
222
+
223
+ myButton3 = Button (root , text = "Data0 (Slot 1): 9999 Battery" , command = myClick3 , fg = "white" , bg = "black" )
224
+ myButton3 .pack ()
225
+
226
+ myButton4 = Button (root , text = "Data0 (Slot 1): 9999 Water" , command = myClick4 , fg = "white" , bg = "black" )
227
+ myButton4 .pack ()
228
+
229
+ myButton5 = Button (root , text = "Data1 (Slot 2): 9999 Health" , command = myClick5 , fg = "black" , bg = "white" )
230
+ myButton5 .pack ()
231
+
232
+ myButton6 = Button (root , text = "Data1 (Slot 2): 9999 Food" , command = myClick6 , fg = "black" , bg = "white" )
233
+ myButton6 .pack ()
234
+
235
+ myButton7 = Button (root , text = "Data1 (Slot 2): 9999 Battery" , command = myClick7 , fg = "black" , bg = "white" )
236
+ myButton7 .pack ()
237
+
238
+ myButton8 = Button (root , text = "Data1 (Slot 2): 9999 Water" , command = myClick8 , fg = "black" , bg = "white" )
239
+ myButton8 .pack ()
240
+
241
+ myButton9 = Button (root , text = "Data2 (Slot 3): 9999 Health" , command = myClick9 , fg = "blue" , bg = "black" )
242
+ myButton9 .pack ()
243
+
244
+ myButton10 = Button (root , text = "Data2 (Slot 3): 9999 Food" , command = myClick10 , fg = "blue" , bg = "black" )
245
+ myButton10 .pack ()
246
+
247
+ myButton11 = Button (root , text = "Data2 (Slot 3): 9999 Battery" , command = myClick11 , fg = "blue" , bg = "black" )
248
+ myButton11 .pack ()
249
+
250
+ myButton12 = Button (root , text = "Data2 (Slot 3): 9999 Water" , command = myClick12 , fg = "blue" , bg = "black" )
251
+ myButton12 .pack ()
252
+
253
+ root = Tk ()
254
+ root .geometry ("750x450" )
255
+
256
+ root .mainloop ()
257
+
258
+ #Edit Data in Bytes Code.
259
+ data_in_byte = b'\x64 \x64 ' #Bytes to write to file
260
+ Data0 = "Data0" #Name of file
261
+
262
+ with open (Data0 , 'rb+' ) as binary_file : #open file as binary
263
+ binary_file .seek (33 ) #Move Editing to Offset 33
264
+ binary_file .write (data_in_byte ) #Writes the bytes from "data_in_byte"
0 commit comments