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 


Speedhack on unity games?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
vyrone
Newbie cheater
Reputation: 0

Joined: 03 May 2015
Posts: 16

PostPosted: Fri Feb 10, 2023 5:36 am    Post subject: Speedhack on unity games? Reply with quote

Just trying to get speedhack to make the game faster (takes alot of time to play it, since manual fest).

Would it be possible? I do notice some games not working with speedhack as well (and they are mostly unity, albeit I forgot their title already - mostly single player ones)


Last edited by vyrone on Sat Feb 11, 2023 12:09 am; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Fri Feb 10, 2023 5:43 am    Post subject: Reply with quote

works, but best run in windowed mode, turn of sync options like vsync, gsync, fps lock, and also check your gpu driver settings for global/per process overrides for the same options
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
vyrone
Newbie cheater
Reputation: 0

Joined: 03 May 2015
Posts: 16

PostPosted: Fri Feb 10, 2023 7:31 am    Post subject: Reply with quote

Dark Byte wrote:
works, but best run in windowed mode, turn of sync options like vsync, gsync, fps lock, and also check your gpu driver settings for global/per process overrides for the same options


Tried it in battle, it doesnt work

The fps instead lowers itself (despite it being actually 60fps, or how I see it)

All vsync are disabled (monitor doesn't support it either)

My graphic settings is Windowed - 1600 x 900 60hz - RUn in background (yellow box)

There was a time when the speedhack worked for battle and everything else, but I don't remember what I did nor how it happened.
Can't replicate it again so far
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Fri Feb 10, 2023 8:57 am    Post subject: Reply with quote

ok. This game uses vsync and you can't turn it off

so you have to help it a little:

execute this script: (it will take a few seconds)
Code:

[enable]

{$lua}
LaunchMonoDataCollector()
while monopipe and monoSymbolList.FullyLoaded==false do
  checkSynchronize()
end
{$asm}

alloc(newmem,2048,"GameAssembly.dll"+23343E0)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov rcx,0

originalcode:
push rbx
sub rsp,20

exit:
jmp returnhere

UnityEngine.QualitySettings.set_vSyncCount:
jmp newmem
nop
returnhere:

[disable]
UnityEngine.QualitySettings.set_vSyncCount:
push rbx
sub rsp,20


after this touch the graphical settings (look at it might be enough) and then speedhack will work

(this is generic for unity running il2cpp. for normal just patch it based on the jitted code. (Might need a 14 or 1 byte jmp then))

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
vyrone
Newbie cheater
Reputation: 0

Joined: 03 May 2015
Posts: 16

PostPosted: Fri Feb 10, 2023 10:14 am    Post subject: Reply with quote

Thanks for the.. lua script? Not sure, but I assume so.

I'm clueless on how to execute it though - copy pasted didn't work, pasting into a text file (and renaming it .lua) gave the same error.

Sorry for the trouble, I really am clueless at this.

Error was:
Error:[string "alloc(newmem,2048,"GameAssembly.dll"+23343E0)..."]:1: attempt to perform arithmetic on a string value
Error:[string "
..."]:3: attempt to perform arithmetic on a string value
Error in script : [string "[enable]
..."]:1: unexpected symbol near '['
Error in script : [string "[enable]
..."]:1: unexpected symbol near '['
Error in script : [string "[enable]
..."]:1: unexpected symbol near '['
Error in script : [string "[enable]
..."]:1: unexpected symbol near '['
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Fri Feb 10, 2023 11:44 am    Post subject: Reply with quote

it's an auto assembler script
you can execute it there or assign it to a cheat table

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
vyrone
Newbie cheater
Reputation: 0

Joined: 03 May 2015
Posts: 16

PostPosted: Fri Feb 10, 2023 12:37 pm    Post subject: Reply with quote

Yeah, it gives error.

What I tried:
-Deleting the // comment
-Removing {$lua}, {$asm}
-Only using the mono launch (I don't think thats enough is it?)
LaunchMonoDataCollector()
while monopipe and monoSymbolList.FullyLoaded==false do
checkSynchronize()
end

No error with just that though


Last edited by vyrone on Sat Feb 11, 2023 12:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Fri Feb 10, 2023 1:08 pm    Post subject: Reply with quote

That's still lua. You need the autoassembler

ctrl+alt+a and paste it in there

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
vyrone
Newbie cheater
Reputation: 0

Joined: 03 May 2015
Posts: 16

PostPosted: Sat Feb 11, 2023 12:09 am    Post subject: Reply with quote

Dark Byte wrote:
That's still lua. You need the autoassembler

ctrl+alt+a and paste it in there


Oh, this works. Thanks alot for the help!
Back to top
View user's profile Send private message
Ryukomat44
How do I cheat?
Reputation: 0

Joined: 29 May 2023
Posts: 1

PostPosted: Mon May 29, 2023 12:42 pm    Post subject: Reply with quote

Dark Byte wrote:
That's still lua. You need the autoassembler

ctrl+alt+a and paste it in there


I'm doing the same thing but it gives an "access violation" error.
any help?
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