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 


Hotkey won't activate cheat in trainer
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Aug 21, 2016 3:10 am    Post subject: Reply with quote

The script works when using CE but not when using the trainer, right? You're just saving the table as a .exe to create the trainer? Are you setting the trainer to use 64bit?
Back to top
View user's profile Send private message
DashXero
Newbie cheater
Reputation: 0

Joined: 09 Aug 2016
Posts: 10

PostPosted: Sun Aug 21, 2016 3:18 am    Post subject: Reply with quote

Yes. The script works when I activate it in CE but NOT when I use the trainer. I have tried just saving the table as an .exe and "generate generic trainer lua script from table." I have been setting the trainer to use 64-bit becuase SFV is a 64-bit process ... I think. I'm pretty sure it is because it requires 64-bit windows for its lowest recommended specs...
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Aug 21, 2016 3:25 am    Post subject: Reply with quote

Let me check it out. I have a few minutes. Jump on Teamviewer.
Back to top
View user's profile Send private message
DashXero
Newbie cheater
Reputation: 0

Joined: 09 Aug 2016
Posts: 10

PostPosted: Sun Aug 21, 2016 3:28 am    Post subject: Reply with quote

EDIT: ++Methos got it working. What he did was make sure that it connects to the correct process.

The code he used is this here:

Code:
function openRightProcess(processname,howmanyprocesses,whichprocess)

  local processlist=createStringlist()

  local timer = createTimer(nil)
  timer.Interval = 1000
  timer.OnTimer =
  function (t)
    local tmp={}
    getProcesslist(processlist)
    for i=0,processlist.Count-1 do
      if processlist[i]:sub(10):lower() == processname:lower()
        then tmp[1+#tmp]=tonumber(processlist[i]:sub(1,8),16) end
    end

    if #tmp>=howmanyprocesses then
      processlist.destroy()
      t.destroy()
      openProcess(tmp[whichprocess])
    end
  end

end


-- openRightProcess(string processname, integer howmanyprocesses, integer whichprocess)
-- howmanyprocesses = 3 means it will wait for 3 processes with the same name
-- whichprocess = 1 means first one, whichprocess = 2 means second one

openRightProcess('StreetFighterV.exe',3,1)


Thank you very much, ++Methos! Now, how do I give you some rep?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Aug 21, 2016 4:24 am    Post subject: Reply with quote

I cannot take credit for this. Credit goes to mgr.inz.Player. Give him +rep. Very Happy
Back to top
View user's profile Send private message
DashXero
Newbie cheater
Reputation: 0

Joined: 09 Aug 2016
Posts: 10

PostPosted: Sun Aug 21, 2016 4:33 am    Post subject: Reply with quote

This is a bummer. I can't figure out how to give people rep.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Aug 21, 2016 4:50 am    Post subject: Reply with quote

You can't until you have more posts.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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