Help with Code Injection Unity
-
- Noobzor
- Posts: 5
- Joined: Mon Sep 27, 2021 1:20 am
- Reputation: 2
Help with Code Injection Unity
I'm having trouble using CE with unity games, AOB works sometimes but it's inconsistent because JIT, so I'm trying to use Mono features for code injections [Link] but whenever I try to do a code injection, it gives me an error saying [Link] "Failure to determine what ***** means" and if I write the address defining bytes to nop, it says [Link] "this address specifier is not valid" I've never really used CE for unity games so anything helps!
Last edited by watersippin on Mon Sep 27, 2021 2:19 am, edited 1 time in total.
Re: Help with Code Injection Unity
You can use Lua to forcibly compile functions that are JIT compiled. Normally you'd need to run the function once (get damaged for health function, etc.) but you can compile them with such a script.
If you look around a bit you'll find some examples.
If you look around a bit you'll find some examples.
Re: Help with Code Injection Unity
trywatersippin wrote: ↑Mon Sep 27, 2021 1:35 amI'm having trouble using CE with unity games, AOB works sometimes but it's inconsistent because JIT, so I'm trying to use Mono features for code injections [Link] but whenever I try to do a code injection, it gives me an error saying [Link] "Failure to determine what ***** means" and if I write the address defining bytes to nop, it says [Link] "this address specifier is not valid" I've never really used CE for unity games so anything helps!
Code: Select all
define(walkeffector,EFT:Animations.ProceduralWeaponAnimation:set_WalkEffectorEnabled+13)
[ENABLE]
{$lua}
LaunchMonoDataCollector()
{$asm}
walkeffector:
db 90 90 90 90
[DISABLE]
walkeffector:
db 0F B6 45 F0
Code: Select all
{$lua}
if syntaxcheck then return end
LaunchMonoDataCollector()
[ENABLE]
scan = "EFT:Animations.ProceduralWeaponAnimation:set_WalkEffectorEnabled+13"
writeBytes(scan, 0x90, 0x90, 0x90, 0x90)
[DISABLE]
writeBytes(scan, 0x0F, 0xB6, 0x45, 0xF0)
-
- Noobzor
- Posts: 5
- Joined: Mon Sep 27, 2021 1:20 am
- Reputation: 2
Re: Help with Code Injection Unity
Yeah every single thing I have tried still ends with "Failure to determine what **** means" I've tried learning/copying others unity/mono scripts and still leads me to the same thing,
with
I get [Link]
and with
I get this with CE 7.3: [Link]
and with a custom CE 7.2: [Link]
this rattles me brain a bit lmao
with
Code: Select all
define(walkeffector,EFT:Animations.ProceduralWeaponAnimation:set_WalkEffectorEnabled+13)
[ENABLE]
{$lua}
LaunchMonoDataCollector()
{$asm}
walkeffector:
db 90 90 90 90
[DISABLE]
walkeffector:
db 0F B6 45 F0
and with
Code: Select all
{$lua}
if syntaxcheck then return end
LaunchMonoDataCollector()
[ENABLE]
scan = "EFT:Animations.ProceduralWeaponAnimation:set_WalkEffectorEnabled+13"
writeBytes(scan, 0x90, 0x90, 0x90, 0x90)
[DISABLE]
writeBytes(scan, 0x0F, 0xB6, 0x45, 0xF0)
and with a custom CE 7.2: [Link]
this rattles me brain a bit lmao
-
- Noobzor
- Posts: 5
- Joined: Mon Sep 27, 2021 1:20 am
- Reputation: 2
Re: Help with Code Injection Unity
Thank you for everyone helping!!
-
- Expert Cheater
- Posts: 853
- Joined: Fri Oct 12, 2018 10:25 pm
- Reputation: 892
Re: Help with Code Injection Unity
Why the define and lua variable? You can access the address directly without the define:
Code: Select all
[ENABLE]
EFT:Animations.ProceduralWeaponAnimation:set_WalkEffectorEnabled+13:
db 90 90 90 90
[DISABLE]
EFT:Animations.ProceduralWeaponAnimation:set_WalkEffectorEnabled+13:
db 0F B6 45 F0
Code: Select all
[ENABLE]
writeBytes("EFT:Animations.ProceduralWeaponAnimation:set_WalkEffectorEnabled+13", 0x90, 0x90, 0x90, 0x90)
[DISABLE]
writeBytes("EFT:Animations.ProceduralWeaponAnimation:set_WalkEffectorEnabled+13", 0x0F, 0xB6, 0x45, 0xF0)
-
- Noobzor
- Posts: 5
- Joined: Mon Sep 27, 2021 1:20 am
- Reputation: 2
Re: Help with Code Injection Unity
It's offline, 12.9, no online support, just wanted to learn cheat engine reversing on a game I enjoy.
Re: Help with Code Injection Unity
Make sure mono is activated before trying to access the address. Also, you don't need to use the whole path, just the module that contains the function.
-
- Noobzor
- Posts: 5
- Joined: Mon Sep 27, 2021 1:20 am
- Reputation: 2
Re: Help with Code Injection Unity
changing the address to just the module fixed it --> ProceduralWeaponAnimation:set_WalkEffectorEnabled thank you everyone for helping me learn more about cheat engine! All of the replies have helped me
Who is online
Users browsing this forum: No registered users