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 


Representing the powerlevel of the player...?

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

Joined: 20 Dec 2014
Posts: 328

PostPosted: Fri May 22, 2015 8:18 am    Post subject: Representing the powerlevel of the player...? Reply with quote

Alright, so, there is this game, and I want to add in a type of "EXP" system to it; unfortunetely I have no idea how to save it permanently, so when the player exits the game the EXP gets reset.

I've tried to tackle this problem in different ways, I tried to find a way to "save" my own value, that didn't work...

then I tried to find some unused value and use it as my own; I kinda found one, though it isn't saved.

Maybe there's some calculations I can do? Cause in this game there is a "Max HP" and I can use that to represent the power level, however the problem with that is that if I fiddle around with it, I'll have to fiddle around with all the instructions that write to it, otherwise it'll mess things up (e.g. get 100 extra max hp upon taking a perk point that supposed to give you 5). Is there some sort of way to do this?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 204

Joined: 25 Jan 2006
Posts: 8577
Location: 127.0.0.1

PostPosted: Fri May 22, 2015 6:47 pm    Post subject: Reply with quote

If you are writing your own modification to the game, just save the value yourself to specific location. Such as the system registry or to a file specific to the games relative path, or the current users personal file path.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
deama1234
Master Cheater
Reputation: 3

Joined: 20 Dec 2014
Posts: 328

PostPosted: Fri May 22, 2015 7:43 pm    Post subject: Reply with quote

atom0s wrote:
If you are writing your own modification to the game, just save the value yourself to specific location. Such as the system registry or to a file specific to the games relative path, or the current users personal file path.

I'm using cheat engine, and I don't know Lua or much about C++; so can you do this in just cheat engine? Using assembly scripts? Or some build-in function?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 204

Joined: 25 Jan 2006
Posts: 8577
Location: 127.0.0.1

PostPosted: Fri May 22, 2015 10:24 pm    Post subject: Reply with quote

deama1234 wrote:
atom0s wrote:
If you are writing your own modification to the game, just save the value yourself to specific location. Such as the system registry or to a file specific to the games relative path, or the current users personal file path.

I'm using cheat engine, and I don't know Lua or much about C++; so can you do this in just cheat engine? Using assembly scripts? Or some build-in function?


You could but it would be more of a pain in the ass with just pure assembly. Using Lua you could do it fairly easy, but if you are planning to make a full on mod like this you are better off doing it with an actual programming language.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
deama1234
Master Cheater
Reputation: 3

Joined: 20 Dec 2014
Posts: 328

PostPosted: Sat May 23, 2015 8:09 am    Post subject: Reply with quote

atom0s wrote:
deama1234 wrote:
atom0s wrote:
If you are writing your own modification to the game, just save the value yourself to specific location. Such as the system registry or to a file specific to the games relative path, or the current users personal file path.

I'm using cheat engine, and I don't know Lua or much about C++; so can you do this in just cheat engine? Using assembly scripts? Or some build-in function?


You could but it would be more of a pain in the ass with just pure assembly. Using Lua you could do it fairly easy, but if you are planning to make a full on mod like this you are better off doing it with an actual programming language.

Could you give me an example of how to write up a value which is saved using Lua then?
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sat May 23, 2015 4:21 pm    Post subject: Reply with quote

Just in case, here are 2 examples of hacks that make the game write to a file.
the urw_SkillLogger: http://forum.cheatengine.org/viewtopic.php?p=5433611
the log FNV1 hashes here: http://forum.cheatengine.org/viewtopic.php?p=5509059

As for the reading you'll have to use ReadFile and sscanf (to convert from text to number).

(Note: do not count on me for spoon-feeding)

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
deama1234
Master Cheater
Reputation: 3

Joined: 20 Dec 2014
Posts: 328

PostPosted: Sat May 23, 2015 6:38 pm    Post subject: Reply with quote

Gniarf wrote:
(Note: do not count on me for spoon-feeding)

Damn...
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 Gamehacking 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