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 


Saving Values? Making Save/Load for a game...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Puzzlerf
Newbie cheater
Reputation: 0

Joined: 01 Nov 2007
Posts: 18

PostPosted: Wed Nov 07, 2007 3:13 am    Post subject: Saving Values? Making Save/Load for a game... Reply with quote

I figure I posted this in the wrong forum, so posting it here now.

How would I go about making a program or something that would save the values set on the pointers I've found? So I can save just the values then load them. I'm wanting to make a save feature for a game that doesn't have one. I've found a lot of the pointers I need so far. Hmm? thanks.

From my googling a 'save state' would be awesome, but its not an emulated game.

At the least something that will save the values in CE and then reload them in CE.

Thanks.

_________________
Yeah... I can't spell to save my life... thank god for Mozilla spell checker.
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Nov 07, 2007 6:01 am    Post subject: Reply with quote

Create a file with thoes values?
Back to top
View user's profile Send private message
Puzzlerf
Newbie cheater
Reputation: 0

Joined: 01 Nov 2007
Posts: 18

PostPosted: Wed Nov 07, 2007 1:32 pm    Post subject: Reply with quote

what do u mean?
_________________
Yeah... I can't spell to save my life... thank god for Mozilla spell checker.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Nov 07, 2007 1:41 pm    Post subject: Reply with quote

Puzzlerf wrote:
what do u mean?


Create a file of the current values when you close the game, or restart it or when ever you want them to be saved. Then create a load function that will read the files values and write them back to memory.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Wed Nov 07, 2007 3:34 pm    Post subject: Reply with quote

Would an AA script work?

Code:

[Enable]
alloc(somecode,256)

RANDOMADDRESS: //Check that it has an opcode before you do this though
call somecode

somecode:
zeopcode //zeopcode is the opcode that was in RANDOMADDRESS
pushad //You can just do push eax if you're not doing pointers

mov eax,VALUE //Value for first address
mov [ADDRESS],eax //Address for first value

mov eax,VALUE //next value
mov [ADDRESS],eax //next address

//and on, for as long as you need, for pointers

mov eax,VALUE
mov ecx,[BASEADDRESS] //Base address is the number before the plus
lea ebx,[ecx+OFFSET] //Offset is the number after the plus
mov ebx,eax

popad //pop eax if you did push eax before
ret //so the code can do its natural functions

[Disable]
dealloc(somecode)

RANDOMADDRESS: //The same one from before
OPCODE //The original opcode of the address


My AA is a bit rusty, but I think that should work.

You can add that to your table, and save the table using cheat engine. Or if you want, you can just copy it and save it in notepad, then open it back up and put it in when you're ready.
Back to top
View user's profile Send private message
Puzzlerf
Newbie cheater
Reputation: 0

Joined: 01 Nov 2007
Posts: 18

PostPosted: Wed Nov 07, 2007 5:07 pm    Post subject: Reply with quote

wiccaan, thats what i wanna do, just dunno how. also that it will save the current values on its own.

samuri
hmm... i know jack about AA. i'm a newbie to it. tho from what i gather i'm not too sure.

does that save the value to just a memory region? as i'd like say, save to a txt file, then load it back. i believe i understand the code for the most part. mainly designating the value, just not sure about what goes in Randomaddress.

also i have like 100 pointers. bunch of different things, its a small game, but still alot going on.

_________________
Yeah... I can't spell to save my life... thank god for Mozilla spell checker.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Nov 07, 2007 5:43 pm    Post subject: Reply with quote

Read into loading/saving XML files or INI files then in your preferred language. With that, use ReadProcessMemory to read the values you want to store from memory. And then write them to your save file.

Then when you load your prog, read the file and use WriteProcessMemory to load them back into memory.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Puzzlerf
Newbie cheater
Reputation: 0

Joined: 01 Nov 2007
Posts: 18

PostPosted: Wed Nov 07, 2007 7:17 pm    Post subject: Reply with quote

yeah, i can't program software. internet languages sure, but not software.... gerr.

i'm looking into it tho, thanks.

_________________
Yeah... I can't spell to save my life... thank god for Mozilla spell checker.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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