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 


Vamemory won't save the updated values after game restart

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
d4ne
How do I cheat?
Reputation: 0

Joined: 06 Dec 2016
Posts: 7

PostPosted: Wed Dec 07, 2016 1:39 pm    Post subject: Vamemory won't save the updated values after game restart Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 199

Joined: 25 Jan 2006
Posts: 8519
Location: 127.0.0.1

PostPosted: Wed Dec 07, 2016 3:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
d4ne
How do I cheat?
Reputation: 0

Joined: 06 Dec 2016
Posts: 7

PostPosted: Wed Dec 07, 2016 3:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
d4ne
How do I cheat?
Reputation: 0

Joined: 06 Dec 2016
Posts: 7

PostPosted: Thu Dec 08, 2016 7:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25301
Location: The netherlands

PostPosted: Thu Dec 08, 2016 7:40 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
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