| View previous topic :: View next topic |
| Author |
Message |
sti228 Newbie cheater
Reputation: 0
Joined: 24 Jan 2015 Posts: 14 Location: Georgia/Tbilisi
|
Posted: Fri Feb 12, 2016 7:49 am Post subject: Need help to make simple trainer |
|
|
Hi. I want to make simple trainer for racing sim LFS with 3 button.
Button 1 - About
Button 2 - Exit
Button 3 - On
What i need to type in script ?
Let's say i want to change only (UF1/XFG/XRG) car power... Start game, open CE file and find LFS.exe file. Then i change number of function power: 0.1430000067 to 0.2430000067. Active this and it works in game.
Now how i can make this work on button ? I mean how i can wrote code for this ?
I choose File/Trainer generator and Add Hotkey button. In Cheat Entries window i find (UF1/XFG/XRG) - power and click Ok.
1) Type the keys you want to set hotkey to - i choose Insert
2) Toggle freeze - I choose - Set value to:
3) In this box i type - i type number of power i choose - 0.2430000067
4) Description (Optional) - Active
Ok. Delete original CETrainer (clean it). What to do then ?
|
|
| Back to top |
|
 |
Ghosting Advanced Cheater
Reputation: 0
Joined: 05 Feb 2016 Posts: 54 Location: 127.0.0.1
|
Posted: Fri Feb 12, 2016 8:01 am Post subject: Re: Need help to make simple trainer |
|
|
| sti228 wrote: | Hi. I want to make simple trainer for racing sim LFS with 3 button.
Button 1 - About
Button 2 - Exit
Button 3 - On
What i need to type in script ?
Let's say i want to change only (UF1/XFG/XRG) car power... Start game, open CE file and find LFS.exe file. Then i change number of function power: 0.1430000067 to 0.2430000067. Active this and it works in game.
Now how i can make this work on button ? I mean how i can wrote code for this ?
I choose File/Trainer generator and Add Hotkey button. In Cheat Entries window i find (UF1/XFG/XRG) - power and click Ok.
1) Type the keys you want to set hotkey to - i choose Insert
2) Toggle freeze - I choose - Set value to:
3) In this box i type - i type number of power i choose - 0.2430000067
4) Description (Optional) - Active
Ok. Delete original CETrainer (clean it). What to do then ?  |
I'm pretty new too but I might be able to help.
1)I don't know that much about that.. You could just press ctrl + h on the address
2) Use a checkbox for that.
The about button can me done like so,
function CEButton11Click(sender)
showMessage("Made by ...")
end
To make a button I'll show you what I did.
| Code: |
Y = '[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d8'
X = '[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d4'
Z = '[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d0'
form_show(UDF1)
getAutoAttachList().add("GAME.EXE")
function CloseClick()
closeCE()
return caFree
end
UDF1.OnClose = CloseClick
addresslist=getAddressList()
function CEButton1Click(sender)
writeFloat(Y, -56.9)
writeFloat(X, 0.89)
writeFloat(Z, 127.31)
end |
|
|
| Back to top |
|
 |
sti228 Newbie cheater
Reputation: 0
Joined: 24 Jan 2015 Posts: 14 Location: Georgia/Tbilisi
|
Posted: Fri Feb 12, 2016 8:25 am Post subject: Re: Need help to make simple trainer |
|
|
This is right ? I don't understand what Y, X, Z do... How i can change this ?
In my case type - Float and Byte. Here is Address - 5b7c00+15A8. How i can type to read this ?
| Code: | Y = '[[[["LFS.exe"+01A0DDC4]+0]+3ac]+60]+d8'
X = '[[[["LFS.exe"+01A0DDC4]+0]+3ac]+60]+d4'
Z = '[[[["LFS.exe"+01A0DDC4]+0]+3ac]+60]+d0'
form_show(UDF1)
getAutoAttachList().add("LFS.EXE")
function CloseClick()
closeCE()
return caFree
end
UDF1.OnClose = CloseClick
addresslist=getAddressList()
function CEButton1Click(sender)
writeFloat(Y, -56.9)
writeFloat(X, 0.89)
writeFloat(Z, 127.31)
end |
Bad that i can't upload file and pictures.
|
|
| Back to top |
|
 |
Ghosting Advanced Cheater
Reputation: 0
Joined: 05 Feb 2016 Posts: 54 Location: 127.0.0.1
|
Posted: Fri Feb 12, 2016 9:00 am Post subject: Re: Need help to make simple trainer |
|
|
| sti228 wrote: | This is right ? I don't understand what Y, X, Z do... How i can change this ?
In my case type - Float and Byte. Here is Address - 5b7c00+15A8. How i can type to read this ?
| Code: | Y = '[[[["LFS.exe"+01A0DDC4]+0]+3ac]+60]+d8'
X = '[[[["LFS.exe"+01A0DDC4]+0]+3ac]+60]+d4'
Z = '[[[["LFS.exe"+01A0DDC4]+0]+3ac]+60]+d0'
form_show(UDF1)
getAutoAttachList().add("LFS.EXE")
function CloseClick()
closeCE()
return caFree
end
UDF1.OnClose = CloseClick
addresslist=getAddressList()
function CEButton1Click(sender)
writeFloat(Y, -56.9)
writeFloat(X, 0.89)
writeFloat(Z, 127.31)
end |
Bad that i can't upload file and pictures. |
Y X Z are just for my game, but you have to make your own take a picture and post it like so,
http :// google . com
|
|
| Back to top |
|
 |
sti228 Newbie cheater
Reputation: 0
Joined: 24 Jan 2015 Posts: 14 Location: Georgia/Tbilisi
|
Posted: Fri Feb 12, 2016 9:05 am Post subject: |
|
|
It's a CE file i use.
http :// podfolio.eu/dw/other/LFS_Tweak_J.7z
I will try some other way.
|
|
| Back to top |
|
 |
Ghosting Advanced Cheater
Reputation: 0
Joined: 05 Feb 2016 Posts: 54 Location: 127.0.0.1
|
Posted: Fri Feb 12, 2016 9:19 am Post subject: |
|
|
| sti228 wrote: | It's a CE file i use.
http :// podfolio.eu/dw/other/LFS_Tweak_J.7z
I will try some other way. |
Are these static address?
|
|
| Back to top |
|
 |
sti228 Newbie cheater
Reputation: 0
Joined: 24 Jan 2015 Posts: 14 Location: Georgia/Tbilisi
|
Posted: Fri Feb 12, 2016 10:35 am Post subject: |
|
|
| Quote: | | Are these static address? |
Yes, the address don't change. I find this tutorial but it's a little bit different: http :// forum.cheatengine.org/viewtopic.php?t=579440
Old CE versions i use this tutorial. This is what i want to do but with no luck yet.
https :// www . youtube . com / watch?v = Xtro9 _ bMoa0
|
|
| Back to top |
|
 |
|