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 


Can anyone point me in the right direction, please?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Enferno33
Newbie cheater
Reputation: 0

Joined: 20 Dec 2019
Posts: 17

PostPosted: Wed Jan 01, 2020 2:06 pm    Post subject: Reply with quote

Dark Byte wrote:
I think panraven is correct, the last process in the processlist tends to be the correct one, also
Code:

openProcess('hanghai.exe')

should always open the last process


This code will find and open correct process for you
Code:

function getParameters()
  --usually called after OpenProcess so the symbols might not be there yet
  local GetCommandLineA=getAddressSafe("GetCommandLineA")
  while GetCommandLineA==nil do
    sleep(10)
    checkSynchronize()
    GetCommandLineA=getAddressSafe("GetCommandLineA")
  end

  return readString(executeCodeEx(0, nil, GetCommandLineA),1000)
end


pl={}
for pid,name in pairs(getProcessList()) do
  if name=='hanghai.exe' then
    OpenProcess(pid)

    if getParameters():find('app%-path') then
      --print("found the correct process")
      return
    end
  end
end



anyhow,m good luck with this game, it's running inside an emulator


Yes, this is correct. I stated from the very beginning that it was always the 3rd process.
Yes, your code does seem to work as I closed out the game multiple times and the code does seem to always pull up the 3rd process.

Now, if only we had one to open the same process ID (I.E. 00009379-hanghai.exe) every single time Razz

I have tried to use pointers to get to the basic addresses but it doesn't seem to work. I believe that it's because of this game was a phone app turned into a PC game.

At this point I am not sure if we'll ever be able to create a cheat table / trainer. At least not with my knowledge of CE.

Please head over to Skidrow and download it for free and give it a shot if you have good / great knowledge of CE, it would be greatly appreciated.

Anyway, thank EVERYONE for the replies and tries. I appreciate them all Smile
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Jan 02, 2020 6:15 am    Post subject: Reply with quote

Try out CE tutorial step 2 and find the health address.
Now close the tutorial and reopen it.
The processID will be different, the address of health will be different

Will the fact that the processid is different make things so difficult for you that you can't fix it ?

_________________
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
Enferno33
Newbie cheater
Reputation: 0

Joined: 20 Dec 2019
Posts: 17

PostPosted: Thu Jan 02, 2020 11:07 am    Post subject: Reply with quote

Dark Byte wrote:
Try out CE tutorial step 2 and find the health address.
Now close the tutorial and reopen it.
The processID will be different, the address of health will be different

Will the fact that the processid is different make things so difficult for you that you can't fix it ?


Who are you asking this?!

If it was addressed to me, then I have no idea wtf you're trying to say? I have read it a few times and even tried to slow down to understand wtf you're trying to ask.

Yeah, I still don't understand what you're asking.
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
Goto page Previous  1, 2
Page 2 of 2

 
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