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 


FM Trainer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Champ2k
How do I cheat?
Reputation: 0

Joined: 27 Jan 2019
Posts: 6

PostPosted: Sun Jan 27, 2019 3:15 pm    Post subject: FM Trainer Reply with quote

Hi all,
First post here (Not that I haven't browsed the forum)
I could do with some help on something I have been working on.

Now this is complete in terms of having my address and everything is working within the trainer but I would like to add to it.
Also it is completely made with Cheat Engine.

i.ibb.co/7WfGhV7/fmeditor1.png
i.ibb.co/1RGwt85/fme1.png
l.ibb.co/vdGqRM3/fme2.png[/img]
i.ibb.co/58L3kWr/fmeditor.png[/img]
i.ibb.co/0CrsmVj/fme3.png[/img]
I can not post url's yet so you will need to add https :// to view the images.

Now things I need some help with (Point me in the right direction)

I had a timer running so each time the stats changed they updated, but if you are on certain pages withing the game it starts flagging errors.
I had to remove this hence the "Refresh Stats" button.
How do I work round this?

The Menu -
As you can see I have used tabs, is there any menus with drop down boxes?

Thank you.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Sun Jan 27, 2019 7:53 pm    Post subject: Reply with quote

Champ2k wrote:
...

https://i.ibb.co/7WfGhV7/fmeditor1.png
https://i.ibb.co/1RGwt85/fme1.png
https://i.ibb.co/vdGqRM3/fme2.png
https://i.ibb.co/58L3kWr/fmeditor.png
https://i.ibb.co/0CrsmVj/fme3.png

As you can see I have used tabs, is there any menus with drop down boxes?

maybe a combobox?

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
Champ2k
How do I cheat?
Reputation: 0

Joined: 27 Jan 2019
Posts: 6

PostPosted: Mon Jan 28, 2019 2:40 am    Post subject: Reply with quote

Not sure it would work to well.

Would it work if I had the address for the squad screen? Example - Run refresh stat if code = code, else do nothing ?

I use edit boxes to change the stats, user types in desired stat value then clicks the save button. .
How would I get the stats to update on exit of the edit box? Instead of clicking the save button.?

Sorry for the all the questions just trying to improve it a little.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Mon Jan 28, 2019 7:10 am    Post subject: Reply with quote

i just read again and noticed its made with ce so im not sure of what lua can do about combobox or listbox, but hey there are old topics that can help.
https://forum.cheatengine.org/viewtopic.php?p=5577381
https://forum.cheatengine.org/viewtopic.php?t=591755

yes its possible to discard save button, and timers can do that but im not sure why you are getting issues.
another way is when you receive en_change you save stats directly.

about "run refresh stat if code = code"
i would create a thread and share some of the required data between threads, or do it in your message loop.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
Champ2k
How do I cheat?
Reputation: 0

Joined: 27 Jan 2019
Posts: 6

PostPosted: Tue Feb 05, 2019 3:27 am    Post subject: Reply with quote

Sorry for the slow reply back.

i have sorted the "enter value when leaving edit box" which has enabled me to remove the save button.

The refresh stat issue is the values only show when on certain pages within the game, so clubs stats are visible when on the squad page & players stats are visible when viewing that player.
When the values are not available and people click the refresh button it throws up an error about not being able to retrieve the values.

As I am using Ce what code could i implement to show a message box warning the user and not run the code?

Thank you.

" i would create a thread and share some of the required data between threads, or do it in your message loop. "

I'm not that good but I will google and try and do some research on this. Smile
Back to top
View user's profile Send private message
Champ2k
How do I cheat?
Reputation: 0

Joined: 27 Jan 2019
Posts: 6

PostPosted: Fri Feb 08, 2019 5:52 am    Post subject: Reply with quote

Right, I did some research and found errorOnLookupFailure(true) I will change to false once trainer is complete.

Stops any errors popping up and sets the return to 0.

Now my next question Smile


Code:


--Finance Monthly

FME19.MonthlyCorporate.Caption = readInteger("[[[[[fm.exe+")
FME19.MonthlyFundRaising.Caption = readInteger("[[[[[fm.exe")
FME19.MonthlyGateReceipts.Caption = readInteger("[[[[[fm.exe")


--WRITE BANK BALANCE
function ClubBalance1Exit(sender)
writeInteger  ("[[[[[fm.exe"    , getProperty  (FME19_ClubBalance1,"Text"))
end
function ClubTransfer1Exit(sender)
writeInteger  ("[[[["    , getProperty  (FME19_ClubTransfer1,"Text"))
end



Is there a faster way to code this instead of having 2000+ lines [/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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