Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <CheatTable CheatEngineTableVersion="24">
- <Forms>
- <programForm Class="TCEForm" Encoding="Ascii85">rIXEW)=A$SCwBc8hg517hy{t6*_9Z!rfRL2Ac7KM1DgsoiNDxZ9NQXCRhNfgfp]p[16I5f/G-/8;UP1-[T--L%$;/E2[a]}y.K{=ZpGxFCnWX:KIG3wOW0BIwInYf?O(!%L822UqCb#61upePYoM4op,OwU6Z/LwV%Q0QyTIGMF={%_nPC7C/zc.i:h./chH)mtmd]34AK89/^U(m7y1(3gQB!(zUgMh-;CDdbVY_PGvx)36@9XN3aO-b^sc;A03X_MZ7=zsCCAS/EYEWjCA]GskG7%p}9w/-lK$lCBO*,Jv,f9^H9lTi*7l=omQkmWoZy,4*?E*urEnZ5g:e5+vQQi,!Sxvc;X0ecAt=ik/#*LIw#$im/HkJSmJ6Q1;;fxR=-1jVXKey8Th^G!:bwBrDha4-Mojv5*?WkKfe{LoEKTi@NZQTAwf7V2w6HkhJm;.H5#b+ysXi0xZJtJg3VleF]=vm8O!}?!Le%b+FuPWY+@[email protected]+TNDZa@FGUFY=/0H0RiwY-YvSwNMOZYclOT.0Ku0}wVyTKs=,s5XS]rV{b=8hczq/S_)Lh7S*xWc#h1J=rl5Z6*CFosHiGk--n7[aKG]oZSchQh]6Tz(Ps%+R7Spt.W7}8)Z9NY{@F8Z3$(tQog:unnK.Cnz^LY]sZH$JC[H#bH#ctTkoHX^sI</programForm>
- </Forms>
- <CheatEntries/>
- <UserdefinedSymbols/>
- <LuaScript>
- openProcess("cemu.exe")
- function sleep(n)
- Sleep(n)
- updateGui()
- end
- require ('Helper')
- cemuWindowID = GetWindowByCaptionPID("Cemu")
- function getFPS()
- repeat
- cemuWindowCaption = GetWindowCaption(cemuWindowID)
- sleep(1)
- until string.find(cemuWindowCaption, "FPS:")
- fps = split(cemuWindowCaption , ":")
- fps = fps[2]
- fps = fps:sub(2,6)
- fps = tonumber(fps)
- return fps
- end
- TIMER_INTERVAL = 1500
- DEFAULT_FPS_TARGET = 30
- DEFAULT_MIN_SH = 0.55
- DEFAULT_MAX_SH = 1.25
- programForm.show()
- require('Gui')
- fpsTarget = DEFAULT_FPS_TARGET
- minSH = DEFAULT_MIN_SH
- maxSH = DEFAULT_MAX_SH
- --speedhack_setSpeed(1)
- lastSH = 1
- function mainLoop()
- repeat
- sleep(1)
- return
- until getOpenedProcessID() ~=0
- fakeFPS = getFPS()
- if fakeFPS<55 then
- realFPS = fakeFPS * lastSH
- newSH = fpsTarget/realFPS
- else
- realFPS = fakeFPS
- newSH = fpsTarget/realFPS
- end
- if newSH < minSH then
- newSH = minSH
- elseif newSH>maxSH then
- newSH = maxSH
- end
- speedhack_setSpeed(newSH)
- lastSH = newSH
- --print ('fakeFPS=', fakeFPS, ' realFPS=', realFPS, ' speedHack = ', newSH)
- updateGui()
- end
- timer = createTimer(nil,true) -- Create a Timer, for loop the code
- timer_setInterval(timer,TIMER_INTERVAL) -- Set the interval (in millisecs) between one loop and other
- timer_onTimer(timer,mainLoop) -- What to do if the timer do a loop ?Run the mainLoop!
- require ('Hotkeys')
- </LuaScript>
- </CheatTable>
Add Comment
Please, Sign In to add comment