Posted: Fri Nov 07, 2014 7:47 am Post subject: CE 6.4 - Add "CHEATxx" object in existing form?
Hi.
I have a question about form design with Cheat Engine v6.4.
I already have a trainer form generated by the feature of CE and addded some functions in cheat table lua script.
Then I have added some more memory hacks with hotkey defined in table and try to add these new hotkey in existing trainer form.
(I also done manually added those new hotkey event action in lua script and resynchronized forms with lua)
But there is no method to add "CHEATxx" object manually into the form.
How I can add new "CHEAT" objects into the form? or there is only way by doing "Generate generic trainer" and mess existing trainer form?
Joined: 09 May 2003 Posts: 25863 Location: The netherlands
Posted: Fri Nov 07, 2014 10:55 am Post subject:
There is no way to add "TCheat" objects into the form yourself. They are unsupported relics of CE 5.x only used by the automated trainer generator
But why add them to your form anyhow, since you're designing the form yourself you can do so much better than that. Just use labels and use labelname.font.color to change the color on cheat activation/deactivation events. That's all a TCheat does anyhow without giving you control on how to make it look (they have no effect on if the cheat is activated or not) _________________
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
Thanks, Dark Byte.
I will try as you suggested and let you know if there are any more problems.
<Update>
I tried and made label behave like CHEAT object but there was little difference to make it work.
Below is actual working label function code like CHEAT object.
( I made additional label object and this name is CELabel7 into my existing WD_Trainer form)
Code:
function pFlyMode()
flyStat=addresslist.getMemoryRecord(28).getHotkeyByID(0)
if flyStat.Owner.Active then
WD_Trainer.CELabel7.font.setColor(255)
customSound.PlaySound(1)
else
WD_Trainer.CELabel7.font.setColor(0)
customSound.PlaySound(2)
end
end
createHotkey("pFlyMode",VK_F6)
I was need to use RGBIndex integer value in setColor() function value as above to set the label's font color.
255 is red and 0 is black.
Hope this helpful to anyone who would like to doing existing form modification.
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