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 


Need help developing a trainer from scratch

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
mrally2
Cheater
Reputation: 0

Joined: 01 Apr 2020
Posts: 43

PostPosted: Tue Oct 17, 2023 7:38 pm    Post subject: Need help developing a trainer from scratch Reply with quote

I have a complex cheat table with lots of scripts and addresses. My trainer consists of 5 checkboxes (enable/disable) and 6 "menus" which I have to program in order for the user to set their own hotkeys taking as a basis this script:

https://forum.cheatengine.org/viewtopic.php?t=602091

I tried to do it on my own but provided that I haven’t made a trainer in 3 years and I cannot understand the code from the hotkey script very well, I am currently in front of a huge roadblock.

I get confused since my table doesnt have stuff such as CHEAT0, CHEAT1... and no tcheat either. Plus, I don’t remember how to link the checkboxes with the addresslist items.

TIA.
Back to top
View user's profile Send private message
mrally2
Cheater
Reputation: 0

Joined: 01 Apr 2020
Posts: 43

PostPosted: Wed Oct 18, 2023 11:29 pm    Post subject: Reply with quote

anyone?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Wed Oct 18, 2023 11:58 pm    Post subject: Reply with quote

I'd open the form designer and use that to make the GUI for the trainer. Easier than creating each element in Lua. Go to Table -> Create Form and play around with it.

There's plenty of tutorials on the form designer if you want the basics. Experiment with it yourself.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1520

PostPosted: Thu Oct 19, 2023 4:51 am    Post subject: Reply with quote

If you have time,
I will be at the PC over the weekend and I can provide you with a code to get started.

I want an answer to this detail:
Are your codes to be activated and deactivated in the address list or in the lua script?
(Just a detail. To eliminate extra questions.)

And a note:
To request, Lua or code help, please use the corridor in the link below.
Do not misuse the current corridor, which is reserved solely for CE errors or negative CE behavior.

I hope that the section in the link I provided is where you can get more answers to your questions and opinions about Lua, Gui, Form and similar questions.

https://forum.cheatengine.org/viewforum.php?f=126

This will save moderators the trouble of moving the topic from the wrong section to the correct section.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
mrally2
Cheater
Reputation: 0

Joined: 01 Apr 2020
Posts: 43

PostPosted: Fri Oct 20, 2023 6:14 am    Post subject: Reply with quote

ParkourPenguin wrote:
I'd open the form designer and use that to make the GUI for the trainer. Easier than creating each element in Lua. Go to Table -> Create Form and play around with it.

There's plenty of tutorials on the form designer if you want the basics. Experiment with it yourself.


I did years ago but it was just for checkboxes as I only needed to enable/disable scripts.

Now with this hotkey bind thing, is way different.

AylinCE wrote:
If you have time,
I will be at the PC over the weekend and I can provide you with a code to get started.


That would be awesome, thank you very much.

AylinCE wrote:

I want an answer to this detail:
Are your codes to be activated and deactivated in the address list or in the lua script?
(Just a detail. To eliminate extra questions.)


I am not sure what you are asking here since I only know the basics of ce, lua and asm.

But the keybinds would be for the following:

- To set the value of one address from 1000.0 to 0.0 while it’s pressed
- To enable a script while a key is pressed and disable it when its released
- To toggle a script
- To toggle a script
- To disable a script when pressed (requested) that is enabled when pressing F12 ONLY ONE TIME that is set to be used to enable a lot of necessary scripts at once.

The rest are checkboxes for toggling scripts.
[/quote]

AylinCE wrote:

And a note:
To request, Lua or code help, please use the corridor in the link below.
Do not misuse the current corridor, which is reserved solely for CE errors or negative CE behavior.

I hope that the section in the link I provided is where you can get more answers to your questions and opinions about Lua, Gui, Form and similar questions.

https://forum.cheatengine.org/viewforum.php?f=126

This will save moderators the trouble of moving the topic from the wrong section to the correct section.


Oh, my bad. I am not very active in this community. Will have it mind for the next time.
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