So I am currently trying to write a beginner trainer for a game called Stardew valley but I'm having trouble with my pointers I know this might not be the right thread to be posting this but I want to make this trainer in C++. I am able to get a base pointer for both my health and energy in this game but they aren't really pointers.
Code:
Energy = "THREADSTACK0"-00000318
Offset_1 = 230
Offset_2 = 24c
Offset_3 = 320
Offset_4 = c
Offset_5 = 144
****************************************************************
Health = "THREADSTACK0"-00000318
Offset_1 = 29c
Offset_2 = 180
Offset_3 = 3ec
Offset_4 = 60c
Offset_5 = 794
Those pointers work in cheat engine but in c++ they wont compile.