TeaPearce / Counter-Strike_Behavioural_Cloning

IEEE CoG & NeurIPS workshop paper 'Counter-Strike Deathmatch with Large-Scale Behavioural Cloning'
343 stars 45 forks source link

int too long to convert #19

Open htglvl opened 3 months ago

htglvl commented 3 months ago

ReadProcessMemory(game, address, buffer, readlength, byref(bytesRead)) it got overflow error: int too long to convert I fix it as ctypes.c_long(address) but I don't know if it work because the memory it spit out always 0, i don't know because I got the wrong address or the code can't read because of the way I fix it

solved: just need to add ctypes.c_void_p(address) instead of address but bear in mind that recent cs2 offset is kinda outdated and require to check and input address manually