Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Pointers only read/write to when i attach CE

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Nova404
How do I cheat?
Reputation: 0

Joined: 23 Jan 2024
Posts: 2

PostPosted: Tue Jan 23, 2024 1:43 pm    Post subject: Pointers only read/write to when i attach CE Reply with quote

Hi, im trying to make a python table for ITRTG (Idling to Rule the Gods) and whenever i try to read/write to the pointer i found it will just display the value as 0 and writing doesnt change it, until i attach cheat engine.

Code:

Code:
from ReadWriteMemory import ReadWriteMemory
from time import sleep as t

rwm = ReadWriteMemory()

process = rwm.get_process_by_name('Idling to Rule the Gods.exe')
process.open()

baseadress = 0x7B640000 + 0x3AFEB8

gp_pointer = process.get_pointer(baseadress, offsets=[0x408, 0xD00, 0xD8, 0xDC, 0x0, 0x54, 0x138])
gpp = gp_pointer
#gp = process.read(gp_pointer)

i=0
running = 1

#image base = (dll) 0x7B640000 (exe) 0x00E50000

while running == 1:
    gp_amount = input("Enterspaghetti monsterPower Amount:")
    try:
        gp_amount = int(gp_amount)
        process.write(gpp, gp_amount) #pointer, value
    except:
        if gp_amount == "exit":
            print("Closing in 2 seconds...")
            t(2)
            running = 0
        elif gp_amount == "read":
            print(process.read(gp_pointer))
        else:
            print("Error, NaN")
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25835
Location: The netherlands

PostPosted: Tue Jan 23, 2024 2:00 pm    Post subject: Reply with quote

perhaps the pointer you found is part of the veh data storage which holds the last state when a breakpoint git hit

in thar case find another pointer

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Nova404
How do I cheat?
Reputation: 0

Joined: 23 Jan 2024
Posts: 2

PostPosted: Tue Jan 23, 2024 3:04 pm    Post subject: Reply with quote

alright ill try that thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites