View previous topic :: View next topic |
Author |
Message |
deama1234 Master Cheater
Reputation: 3
Joined: 20 Dec 2014 Posts: 328
|
Posted: Fri May 22, 2015 8:18 am Post subject: Representing the powerlevel of the player...? |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 204
Joined: 25 Jan 2006 Posts: 8577 Location: 127.0.0.1
|
Posted: Fri May 22, 2015 6:47 pm Post subject: |
|
|
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 |
|
 |
deama1234 Master Cheater
Reputation: 3
Joined: 20 Dec 2014 Posts: 328
|
Posted: Fri May 22, 2015 7:43 pm Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 204
Joined: 25 Jan 2006 Posts: 8577 Location: 127.0.0.1
|
Posted: Fri May 22, 2015 10:24 pm Post subject: |
|
|
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 |
|
 |
deama1234 Master Cheater
Reputation: 3
Joined: 20 Dec 2014 Posts: 328
|
Posted: Sat May 23, 2015 8:09 am Post subject: |
|
|
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 |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
|
Back to top |
|
 |
deama1234 Master Cheater
Reputation: 3
Joined: 20 Dec 2014 Posts: 328
|
Posted: Sat May 23, 2015 6:38 pm Post subject: |
|
|
Gniarf wrote: | (Note: do not count on me for spoon-feeding) |
Damn...
|
|
Back to top |
|
 |
|