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 


Cheat Engine Forum Index
PostGo back to topic
mgr.inz.Player
I post too much
Reputation: 221
Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Apr 23, 2017 2:47 am    Post subject:

From what I see, you are still using CE6.51. My script requires CE6.6 or above. If you are using "Lua extensions" better keep CE up to date.


Now, you have your CT file.

Open it with CE. Be sure that Lua script do not execute. So launch CE, go to settings, and check "Ask to run lua scripts from tables", then open CT file and choose "No" when confirmation window appears.

From menu Table click "show cheat table Lua script". Paste my script, from first post, above line --TRAINERGENERATORSTART--.

Then find CloseClick function. Add hotkeysSettings('save') above closeCE() line.

Then, look at onPostHotkey functions. There are two of them.

From your example, the first one:
Code:
function onPostHotkey0(Hotkey)
  --Executed after the "toggle*" cheat got executed
  local memrec=Hotkey.Owner
  local isActive=memrec.Active --get the state after the hotkey got triggered
  CETrainer.CHEAT0.setActive(isActive) --gui update, nothing else
  if gPlaySoundOnAction then
    if isActive then
      playSound(gActivateSound)
    else
      playSound(gDeactivateSound)
    end
  end
end

memrec62_hotkey0.onPostHotkey=onPostHotkey0


As you see from lines "CETrainer.CHEAT0.setActive(isActive)" and "memrec62_hotkey0.onPostHotkey=onPostHotkey0"

memrec62_hotkey0 is binded to onPostHotkey0, and that means it is also binded to CETrainer.CHEAT0 component.


So, read both. And you will get:

CETrainer.CHEAT0 is binded with memrec62_hotkey0
CETrainer.CHEAT1 is binded with memrec53_hotkey0


So, just above line --TRAINERGENERATORSTOP-- add those

Code:
addChangeHotkeyKeysFunctionality(CETrainer.CHEAT0,memrec62_hotkey0)
addChangeHotkeyKeysFunctionality(CETrainer.CHEAT1,memrec53_hotkey0)

hotkeysSettings('mindoff\\Oxygen Not Included')
hotkeysSettings('load')


That "mindoff\\Oxygen Not Included" can be anything. If you have other nick on other forum e.g. anonymous, and you made cheat table for other game, for example "Dead Space 3", you can use "anonymous\\Dead Space 3"

While your active window is Main CE (or window with Lua script) press CTRL+S to save your work. So you will have CT file you can work on (correcting typos, gui, etc)


Now, click "save as" from file menu. Select file type: CETRAINER and save.




Below a file edited with CE6.6, so you can compare with yours.
http://www.mediafire.com/file/q5gywm194x404qh/OxygenNotIncluded_Plus2_Trainer.ct





Quote:
How should I use this CT file to create an exe Trainer if I may ask.

Because you are using CE mono features, you have to take care of one extra step

How to:

Click "save as" from file menu. Select file type: EXE and save.

Add needed files, because you are using CE mono features:
autorun\monoscript.lua
autorun\forms\MonoDataCollector.frm

autorun\dlls\MonoDataCollector32.dll
or
autorun\dlls\MonoDataCollector64.dll

Choose a decent icon, set compression to whatever you like.

If your game is 64bit, select "target process is 64-bit", then click generate. Done.
_________________
Dark Souls II Item Swap and Item List
My Borderlands2 tables

Recent CheatEngine builds
Back to top
View user's profile Send private message MSN Messenger
Post reviews:   Approve 1
Author Review
AylinCE
Review: Approve
Post reference:
ReviewPosted: Sun Feb 28, 2021 12:29 am

Thanks Master (Y)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites