 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Keule Cheater
Reputation: 0
Joined: 08 Aug 2012 Posts: 25
|
Posted: Sat Oct 12, 2013 2:33 pm Post subject: [DONE] Automatic Trackbar increasing/decreasing with Delay |
|
|
Hello Guys
First i need to say, im a silent Reader in this Forum, the most Questions already got answered by the Search function, but with this, my brain really gets crashed...
I'm playing a Racing Game and build a Clearance-modifier for it.
The Function holds its Values as Float, one for the Frontwheels, one for the Backwheels and declares the Distance between the Rides and the whole Carmodel.
Now what i want, explained in clear Words - Step to step.
Info:
Trackbar1 = Distance Front /minPos=7, maxPos=37
Trackbar2 = Distance Back /minPos=7, maxPos=37
Trackbar3 = Can set Trackbar1 and Trackbar2's Value together /minPos=7, maxPos=37
Trackbar4 = Timer in Seconds, how long the other Trackbars need to reach their "mins" and "maxs" /minPos=2, maxPos=8
1. I toggle "CECheckBox1" to activate a Script doing the following things:
Code: | - Change the Position of "Trackbar3" from its MinPosition to its MaxPosition - in the amount of Seconds from the Position of "Trackbar4".
- After "Trackbar3" reaches its MaxPosition of "37", it goes back in the same Amount of Seconds from the Position of "Trackbar4" again.
- After "Trackbar3" went back to its MinPosition of "7", it repeats this Steps until i uncheck "CECheckBox1"
|
2. I toggle "CECheckBox2" to activate a Script doing the following things:
Code: | - Set the Position of "Trackbar3" to "22"
- Change the Position of "Trackbar1" from its CurrentPosition "22" to its MaxPosition "37" - in the amount of Seconds from the Position of "Trackbar4", WHILE changing "Trackbar2" from its CurrentPosition "22" to its MinPosition "7" in the same Speed.
- After "Trackbar1" reaches its MaxPosition of "37", it goes back in the same Amount of Seconds from the Position of "Trackbar4" again to its MinPosition.
- Same with "Trackbar2", but in reversed Way. So if "Trackbar1" increases, "Trackbar2" is decreasing.
- After "Trackbar1" went back to its MinPosition, it repeats this Steps until i uncheck "CECheckBox2"
- Same with "Trackbar2" , but again in reversed Way. So if "Trackbar2" reaches his MaxPosition of "37", "Trackbar1" is reaching its MinPosition of "7", then turning back like in first Example until i uncheck "CheckBox2".
|
I really have absolutely no Plan how to realise that, it seems to be an advanced/complicated Script at the End....
So please CE Elite, Grandmasters, Mods, Admins - help me out with that, those are the only 2 Scripts that were left in my Trainer :/
Cheers and good Night,
Keule
//Edit: Done by DaSpammer! Very great thx for your help man, you will get your Reward via Skype
Last edited by Keule on Mon Oct 14, 2013 9:04 am; edited 2 times in total |
|
Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
|
Back to top |
|
 |
Keule Cheater
Reputation: 0
Joined: 08 Aug 2012 Posts: 25
|
Posted: Sat Oct 12, 2013 10:58 pm Post subject: |
|
|
Yes
Thats why i screamed out to the Experts
The first User who can build a fully working Script for those Functions, will get a 10€ PSC Voucher, that is it worth.
BTW:
Youtube /watch?v=OxQrJuiCPUg
This is a example Video, how it should look at the End, but for a different Game
|
|
Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Sun Oct 13, 2013 6:18 am Post subject: |
|
|
Quote: | Trackbar1 = Distance Front /minPos=7, maxPos=37 |
Cool understood
Quote: | Trackbar2 = Distance Back /minPos=7, maxPos=37 |
Cool understood
Quote: | Trackbar3 = Can set Trackbar1 and Trackbar2's Value together /minPos=7, maxPos=37 |
Cool understood
Quote: | Trackbar4 = Timer in Seconds, how long the other Trackbars need to reach their "mins" and "maxs" /minPos=2, maxPos=8 |
How can a trackbar be a timer..?
Can you be bit specific?
Like you want a timer that moves the trackbar4 every X seconds?
Or you mean a timer and a trackbar, a timer will move trackbar3 position every X seconds (you didn't specify the amount of seconds).
Quote: | - Change the Position of "Trackbar3" from its MinPosition to its MaxPosition - in the amount of Seconds from the Position of "Trackbar4". |
I'm bit confused,
I assume you mean that if for example current position of trackbar3 is 10, and trackbar4 position is 2, increase the position of trackbar3 by 2 (10 > 12 > 14 > 16 ... > 37 (No 38 ) )
Quote: | - After "Trackbar3" reaches its MaxPosition of "37", it goes back in the same Amount of Seconds from the Position of "Trackbar4" again. |
And after it reaches 37 it going back by the position of trackbar 4 (37 > 35 > 33 > 31 .. 7)
Quote: | - After "Trackbar3" went back to its MinPosition of "7", it repeats this Steps until i uncheck "CECheckBox1" |
And then increasing again... I hope I understood it right.
Quote: | - Set the Position of "Trackbar3" to "22" |
No problem
Quote: | - Change the Position of "Trackbar1" from its CurrentPosition "22" to its MaxPosition "37" - in the amount of Seconds from the Position of "Trackbar4", WHILE changing "Trackbar2" from its CurrentPosition "22" to its MinPosition "7" in the same Speed. |
I guess another timer is required.
Got it.
Quote: | - After "Trackbar1" reaches its MaxPosition of "37", it goes back in the same Amount of Seconds from the Position of "Trackbar4" again to its MinPosition.
- Same with "Trackbar2", but in reversed Way. So if "Trackbar1" increases, "Trackbar2" is decreasing.
- After "Trackbar1" went back to its MinPosition, it repeats this Steps until i uncheck "CECheckBox2"
- Same with "Trackbar2" , but again in reversed Way. So if "Trackbar2" reaches his MaxPosition of "37", "Trackbar1" is reaching its MinPosition of "7", then turning back like in first Example until i uncheck "CheckBox2". |
Got it
This basically isn't too hard.
From this I assume I need to create now new 2 timers (I'll need values for seconds, or you want to ask for something more?)
Also you want a simple script (so you could understand how to do it/implement it to your trainer).
or a script that you can simply insert?
I can create the trainer for you if you want (If you have skype, and want me to do it, give it to me)
_________________
I'm rusty and getting older, help me re-learn lua. |
|
Back to top |
|
 |
Keule Cheater
Reputation: 0
Joined: 08 Aug 2012 Posts: 25
|
Posted: Sun Oct 13, 2013 7:03 am Post subject: |
|
|
Sure
//edit:
A better Example:
I change Position of Trackbar4 to "6", means, that Trackbar3 must reach its TopPosition of "37" from its MinPosition of "7" in 6 Seconds, stepping "1", so the Car will raise up smoothly, then returning back. It repeats this step until i uncheck CECheckBox1.
A better Example for the second Function:
I change Position of Trackbar4 to "6" means, that Trackbar1, which is setted to 22 automatically (because you set Trackbar3, which modifies both to "22"), must reach its TopPosition of "37" from its CurrentPosition of "22" in 6 Seconds, stepping "1", WHILE Trackbar2 must reach its MinPosition of "7" in this time.
Means, that Function2 needs to work "anti-proportional" in a Way, because while Trackbar1 is sliding UP, Trackbar2 is sliding DOWN, then TURNING BACK.
_____________________________________________________
Originalpost
--------------------------------------------------------------------------
Trackbar4's Position is the Speed-Value.
The Speed-Value is the amount of "Seconds", how fast Trackbar1 should reach its MaxPosition of "37" from its StartPos of "22", while Trackbar2 is reaching its MinPosition of "7" in same Time, from the same StartPos of "22".
After they reached that, they should return automatically to their MaxPositions and MinPositions.
A bit of Code, that maybe helps you more
Code: | -- Front Wheels Distance (floatValue = Position)
function CETrackBar1Change(sender)
writeFloat("[[[game.exe+DEADBA]+BE]+DE]+AD", trackbar_getPosition(DevMod_Main_CETrackBar1))
end
-- Back Wheels Distance (floatValue = Position)
function CETrackBar2Change(sender)
writeFloat("[[[game.exe+DEADBA]+BE]+BE]+EF", trackbar_getPosition(DevMod_Main_CETrackBar2))
end
-- onChange, it changes TrackBar1's and TrackBar2's Position, which automatically changes their floatValues too, so Car is fully raising up
function CETrackBar3Change(sender)
trackbar_setPosition(DevMod_Main_CETrackBar1, trackbar_getPosition(DevMod_Main_CETrackBar4))
trackbar_setPosition(DevMod_Main_CETrackBar2, trackbar_getPosition(DevMod_Main_CETrackBar4))
end
-- The Speedmodifier (Position = Seconds, how long the automatical increase/decrease should be to reach their MaxPositions and MinPositions)
function CETrackBar4Change(sender)
--[[
Here should be the Code, where its Position is the Value of the Speed in Seconds
]]--
end |
Last edited by Keule on Sun Oct 13, 2013 7:30 am; edited 7 times in total |
|
Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Sun Oct 13, 2013 7:10 am Post subject: |
|
|
Ok so it's the modifier.
Now you know, it requires 2 timers.
What's their interval gonna be?
1 second?
2 seconds?
_________________
I'm rusty and getting older, help me re-learn lua. |
|
Back to top |
|
 |
Keule Cheater
Reputation: 0
Joined: 08 Aug 2012 Posts: 25
|
Posted: Sun Oct 13, 2013 7:19 am Post subject: |
|
|
DaSpamer wrote: | Ok so it's the modifier.
Now you know, it requires 2 timers.
What's their interval gonna be?
1 second?
2 seconds? |
So if you mean how fast it should Step the Position of the Trackbars, then 1
PS: Do you have Skype?
|
|
Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
|
Back to top |
|
 |
Keule Cheater
Reputation: 0
Joined: 08 Aug 2012 Posts: 25
|
Posted: Sun Oct 13, 2013 5:43 pm Post subject: |
|
|
I cant access the PM System for my low amount of Posts
//Added.
|
|
Back to top |
|
 |
|
|
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
|
|