View previous topic :: View next topic |
Author |
Message |
d4ne How do I cheat? Reputation: 0
Joined: 06 Dec 2016 Posts: 7
|
Posted: Wed Dec 07, 2016 1:39 pm Post subject: Vamemory won't save the updated values after game restart |
|
|
I'm trying to create a call of duty infinite warfare trainer using the VaMemory dll.
My memory class source code looks like the following:
Code: |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Infinite_Trainer___Cod_IW
{
class memory
{
public static string process = "iw7_ship";
public void updateStatistic(string prestigeValue)
{
VAMemory vam = new VAMemory(process);
vam.WriteByte((IntPtr)0x145D114B9, byte.Parse(prestigeValue));
}
}
} |
Prestige Cheat engine Address: 145D114B9 Type Byte
And this is the result of the PointerScan:
gyazo (dot) com/da59e785e7f14580e50f7afb0c1ac96e
It does update the prestige level until I restart the game, then it would go back to the normal level, does anyone know what I'm doing wrong?
I would appreciate any kind of help
|
|
Back to top |
|
|
atom0s Moderator Reputation: 199
Joined: 25 Jan 2006 Posts: 8519 Location: 127.0.0.1
|
Posted: Wed Dec 07, 2016 3:11 pm Post subject: |
|
|
Sounds like you have the wrong address then and need to find the proper one. From how this sounds, it sounds like you have the visual address to change what you see on screen but not actually what is being used as a value for the given thing. Look for the address some more and see if you find other results.
In some cases with having the visual address, you can find what writes to that address and trace back from that to find the real address where the game handles the actual value from.
_________________
- Retired. |
|
Back to top |
|
|
d4ne How do I cheat? Reputation: 0
Joined: 06 Dec 2016 Posts: 7
|
Posted: Wed Dec 07, 2016 3:43 pm Post subject: |
|
|
I've run a Pointer Scan on the Visual address: 145D114B9 which resultet in the following:
"iw7_ship.exe"+04105320 -> 145D10DD4
145D10DD4 + 6E4 = 145D114B8
145D114B8 = 3875538432
which doesnt equal the prestige level
|
|
Back to top |
|
|
d4ne How do I cheat? Reputation: 0
Joined: 06 Dec 2016 Posts: 7
|
Posted: Thu Dec 08, 2016 7:27 am Post subject: |
|
|
So after running the pointer scan ive created a class:
Code: | class memory
{
string process = "iw7_ship";
long prestigeBase = 0x145D10DD4;
int prestige = 0x6E4;
public void updateStatistic(string prestigeValue)
{
VAMemory vam = new VAMemory(process);
long LocalPrestige = vam.ReadByte((IntPtr)prestigeBase);
long address = LocalPrestige + prestige;
vam.WriteByte((IntPtr)address, byte.Parse(prestigeValue));
}
} |
But nothing would change. Does anyone have a idea?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25301 Location: The netherlands
|
Posted: Thu Dec 08, 2016 7:40 am Post subject: |
|
|
the address of iw7_ship.exe can change upon a restart, so prestigeBase will change as well.
get the address of iw7_ship.exe in your trainer and add 0x04105320 to it at runtime, not designtime
_________________
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 |
|
|
|