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 


HOW DO I SAVE THE .EXE AS IT IS?????

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
. . ,
Master Cheater
Reputation: 3

Joined: 05 Nov 2009
Posts: 337

PostPosted: Tue Apr 27, 2010 1:03 pm    Post subject: HOW DO I SAVE THE .EXE AS IT IS????? Reply with quote

I'm making a project for my ICT work at school. It's a maze game, but I don't know how you save it. Say if you complete a level and you go onto the next you want to save your work. Any help please?
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Apr 27, 2010 1:08 pm    Post subject: Reply with quote

what is your maze game coded in ? show some code please or describe the concepts behind your game

usually saves are done by finding what 'context' the game is in, what 'state' it is in. enumerating all of these, encoding it somehow and saving that to a file. next time the game loads, it opens that file, decodes it and restores this 'state'
Back to top
View user's profile Send private message
. . ,
Master Cheater
Reputation: 3

Joined: 05 Nov 2009
Posts: 337

PostPosted: Tue Apr 27, 2010 1:13 pm    Post subject: Reply with quote

Slugsnack wrote:
what is your maze game coded in ? show some code please


http://plunder.com/580696c73e

If you see what I'm trying to do, you have radiobuttons under a label called level, 2,3,4,5 is "Enabled = False", after you complete level 1 RadioButton 2 will be "Enabled = True". I know how to do that but I meen save the radio buttons.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Apr 27, 2010 1:18 pm    Post subject: Reply with quote

i'm gonna assume your levels are static and not generated on the run. in which case all you have to do is save the level number. so you can do that however you like. you could even create a file that stores a single number and read out of that when your game is first launched
Back to top
View user's profile Send private message
. . ,
Master Cheater
Reputation: 3

Joined: 05 Nov 2009
Posts: 337

PostPosted: Tue Apr 27, 2010 1:20 pm    Post subject: Reply with quote

Slugsnack wrote:
i'm gonna assume your levels are static and not generated on the run. in which case all you have to do is save the level number. so you can do that however you like. you could even create a file that stores a single number and read out of that when your game is first launched


Yea but I don't know what the code is. Youtube is just showing how to save textbox.text as a notepad file.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Apr 27, 2010 1:23 pm    Post subject: Reply with quote

i don't code .net but what you want is probably :
http://msdn.microsoft.com/en-us/library/system.io.file.create.aspx

as for creating a text file, the only difference between a text file and any other is that it ends in .txt. you can create a file with any extension. it does not matter even if you were to create a .txt file
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Apr 27, 2010 1:55 pm    Post subject: Reply with quote

If you wanted to, you could also save this information in the assembly's (not machine instructions, the module itself) settings area.
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