import randomimport tkinter as tkfrom tkinter import messageboxclass GuessNumberGame def __init__self selfnumber = randomrandint1 100 selfattempts = 0 selfwindow = tkTk
在游戏数据修改器中,attempts参数的类型为int,而你在修改时使用了ctypes.c_int,导致了溢出错误。你可以将修改代码修改如下:
self.modifier.write_memory(process_handle, address, int(new_value))
这样就可以将new_value直接转换为int类型进行修改。
原文地址: http://www.cveoy.top/t/topic/ica5 著作权归作者所有。请勿转载和采集!