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 


CE 6.4 - Add "CHEATxx" object in existing form?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
iykkim
Newbie cheater
Reputation: 0

Joined: 13 Jul 2014
Posts: 19

PostPosted: Fri Nov 07, 2014 7:47 am    Post subject: CE 6.4 - Add "CHEATxx" object in existing form? Reply with quote

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?

Please let me know and thanks for any help.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Fri Nov 07, 2014 10:55 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message MSN Messenger
iykkim
Newbie cheater
Reputation: 0

Joined: 13 Jul 2014
Posts: 19

PostPosted: Fri Nov 07, 2014 7:14 pm    Post subject: Reply with quote

Thanks, Dark Byte. Smile
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.
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
Page 1 of 1

 
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