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 


Java feature need update/fix ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Tue May 03, 2016 3:22 am    Post subject: Java feature need update/fix ? Reply with quote

So I tried,jmti on older java game named The Count Lucanor and it's working flawlessly but when I tried it on Balrum,its doesn't work as expected Confused

I had also tried using other CE version and it's the same.

Output:
Code:

Error:C:\Program Files (x86)\Cheat Engine 6.5\autorun\java.lua:403: Auto assembler failed:    globalalloc(bla,1024)

    globalalloc(cmd,16)
    globalalloc(arg0,256)
    globalalloc(arg1,256)
    globalalloc(arg2,256)
    globalalloc(result,4)

    globalalloc(pipename,256)

    cmd:
    db 'load',0

    arg0:

    db 'C:\Program Files (x86)\Cheat Engine 6.5\autorun\dlls\32\CEJVMTI',0

    arg1:
    db 0

    arg2:
    db 0

    pipename:
    db '\\.\pipe\cejavapipe',0


    bla:
    sub rsp,8
    sub rsp,30

    mov rcx,cmd
    mov rdx,arg0
    mov r8,arg1
    mov r9,arg2

    mov [rsp],cmd
    mov [rsp+8],arg0
    mov [rsp+10],arg1
    mov [rsp+18],arg2
    mov [rsp+20],pipename

    call jvm.JVM_EnqueueOperation
    mov [result],eax

    add rsp,38
    ret

    createthread(bla)
   
Error in native thread called CollectJavaSymbolsNonInjected::C:\Program Files (x86)\Cheat Engine 6.5\autorun\java.lua:251: attempt to index a nil value
Error:C:\Program Files (x86)\Cheat Engine 6.5\autorun\java.lua:403: Auto assembler failed:    globalalloc(bla,1024)

    globalalloc(cmd,16)
    globalalloc(arg0,256)
    globalalloc(arg1,256)
    globalalloc(arg2,256)
    globalalloc(result,4)

    globalalloc(pipename,256)

    cmd:
    db 'load',0

    arg0:

    db 'C:\Program Files (x86)\Cheat Engine 6.5\autorun\dlls\32\CEJVMTI',0

    arg1:
    db 0

    arg2:
    db 0

    pipename:
    db '\\.\pipe\cejavapipe',0


    bla:
    sub rsp,8
    sub rsp,30

    mov rcx,cmd
    mov rdx,arg0
    mov r8,arg1
    mov r9,arg2

    mov [rsp],cmd
    mov [rsp+8],arg0
    mov [rsp+10],arg1
    mov [rsp+18],arg2
    mov [rsp+20],pipename

    call jvm.JVM_EnqueueOperation
    mov [result],eax

    add rsp,38
    ret

    createthread(bla)
   
Error in native thread called CollectJavaSymbolsNonInjected::C:\Program Files (x86)\Cheat Engine 6.5\autorun\java.lua:251: attempt to index a nil value



java1.png
 Description:
 Filesize:  466.94 KB
 Viewed:  12738 Time(s)

java1.png



_________________
...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Tue May 03, 2016 3:29 am    Post subject: Reply with quote

try replacing the java runtime used by balrum wuth the one used by the count lucanor


or just comment out the code from line 216 to 293 in autorun/java.lua
you most likely didn't use those variables it fetches (jInterpreter_*) and and java.lua doesn't use it anywhere else

_________________
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
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Tue May 03, 2016 3:42 am    Post subject: Reply with quote

Dark Byte wrote:
try replacing the java runtime used by balrum wuth the one used by the count lucanor

or just comment out the code from line 216 to 293 in autorun/java.lua
you most likely didn't use those variables it fetches (jInterpreter_*) and and java.lua doesn't use it anywhere else


Tried both, no dice.

_________________
...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Tue May 03, 2016 3:49 am    Post subject: Reply with quote

what was the error you got after commenting out line 216 to 293? The error must have become something else then.

(restart ce after editing that file)

and don't just replace java.exe also the related files


if the autoassembler still fails execute the script in a standalone autoassembler script to see why it fails (e. g no export named JVM_EnqueueOperation)

_________________
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
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Tue May 03, 2016 4:30 am    Post subject: Reply with quote

I'm sorry Sir Embarassed

Here's the Output:
Code:

Error:C:\Program Files (x86)\Cheat Engine 6.5\autorun\java.lua:326: Auto assembler failed:    globalalloc(bla,1024)

    globalalloc(cmd,16)
    globalalloc(arg0,256)
    globalalloc(arg1,256)
    globalalloc(arg2,256)
    globalalloc(result,4)

    globalalloc(pipename,256)

    cmd:
    db 'load',0

    arg0:

    db 'C:\Program Files (x86)\Cheat Engine 6.5\autorun\dlls\32\CEJVMTI',0

    arg1:
    db 0

    arg2:
    db 0

    pipename:
    db '\\.\pipe\cejavapipe',0


    bla:
    sub rsp,8
    sub rsp,30

    mov rcx,cmd
    mov rdx,arg0
    mov r8,arg1
    mov r9,arg2

    mov [rsp],cmd
    mov [rsp+8],arg0
    mov [rsp+10],arg1
    mov [rsp+18],arg2
    mov [rsp+20],pipename

    call jvm.JVM_EnqueueOperation
    mov [result],eax

    add rsp,38
    ret

    createthread(bla)
   
Error:C:\Program Files (x86)\Cheat Engine 6.5\autorun\java.lua:326: Auto assembler failed:    globalalloc(bla,1024)

    globalalloc(cmd,16)
    globalalloc(arg0,256)
    globalalloc(arg1,256)
    globalalloc(arg2,256)
    globalalloc(result,4)

    globalalloc(pipename,256)

    cmd:
    db 'load',0

    arg0:

    db 'C:\Program Files (x86)\Cheat Engine 6.5\autorun\dlls\32\CEJVMTI',0

    arg1:
    db 0

    arg2:
    db 0

    pipename:
    db '\\.\pipe\cejavapipe',0


    bla:
    sub rsp,8
    sub rsp,30

    mov rcx,cmd
    mov rdx,arg0
    mov r8,arg1
    mov r9,arg2

    mov [rsp],cmd
    mov [rsp+8],arg0
    mov [rsp+10],arg1
    mov [rsp+18],arg2
    mov [rsp+20],pipename

    call jvm.JVM_EnqueueOperation
    mov [result],eax

    add rsp,38
    ret

    createthread(bla)


I replaced the whole jre folder. ( don't know if it's the thing that you ask for)

The game is 32 bits.

_________________
...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Tue May 03, 2016 4:38 am    Post subject: Reply with quote

open the process.
press ctrl+alt+a


paste in this code:
Code:

globalalloc(bla,1024)

    globalalloc(cmd,16)
    globalalloc(arg0,256)
    globalalloc(arg1,256)
    globalalloc(arg2,256)
    globalalloc(result,4)

    globalalloc(pipename,256)

    cmd:
    db 'load',0

    arg0:

    db 'C:\Program Files (x86)\Cheat Engine 6.5\autorun\dlls\32\CEJVMTI',0

    arg1:
    db 0

    arg2:
    db 0

    pipename:
    db '\\.\pipe\cejavapipe',0


    bla:
    sub rsp,8
    sub rsp,30

    mov rcx,cmd
    mov rdx,arg0
    mov r8,arg1
    mov r9,arg2

    mov [rsp],cmd
    mov [rsp+8],arg0
    mov [rsp+10],arg1
    mov [rsp+18],arg2
    mov [rsp+20],pipename

    call jvm.JVM_EnqueueOperation
    mov [result],eax

    add rsp,38
    ret

and click execute
see what the error is.


if the error is that call jvm.JVM_EnqueueOperation fails go to memoryview
view->enumerate dlls and modules
(if you have windows 7 with a bad windows patch where no entry has a > in front then
close it
again view->enumerate dll's and modules
)
press ctrl+f and search for EnqueueOperation and see if you can find it anywhere

(perhaps it's just moved to a different module instead of jvm.dll)


-----

You also need to replace the java.exe and dll files

_________________
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
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Tue May 03, 2016 5:16 am    Post subject: Reply with quote

My Count Lucanor game is 64 bits.
My Balrum game is 32 bits.

I tried changing these 2 lines:
Code:

    mov r8,arg1
    mov r9,arg2

to
Code:

    mov rax,arg1
    mov rbx,arg2

then, execute the script.

Some instruction that handles many of the variables in the game ,change into easier instruction to work on. Cool

I still understand nothing,though.
but it's getting easier. Laughing

Thanks. Very Happy

_________________
...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Tue May 03, 2016 5:20 am    Post subject: Reply with quote

oh, I didn't notice it was generating 64-bit assembler code for the injection.
I'll check it out

_________________
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
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Tue May 03, 2016 5:37 am    Post subject: Reply with quote

Dark Byte wrote:
oh, I didn't notice it was generating 64-bit assembler code for the injection.
I'll check it out


I will be waiting for the fix,then. Very Happy

Hahaha, I don't know why instruction that handle many variables in this game keep changing.It looks alive. Laughing

_________________
...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Tue May 03, 2016 5:46 am    Post subject: This post has 1 review(s) Reply with quote

try http://cheatengine.org/temp/java.lua (replace your old java.lua with this one)

Of course, it apparently has never been tested on 32-bit java, so I can't even say if it'll work or not

_________________
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
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Tue May 03, 2016 6:00 am    Post subject: Reply with quote

Dark Byte wrote:
try http://cheatengine.org/temp/java.lua (replace your old java.lua with this one)

Of course, it apparently has never been tested on 32-bit java, so I can't even say if it'll work or not


Woahh, thankyou for this.Tested it, and it's working as intended. Very Happy

Thankyou very much , Dark Byte. Very Happy

_________________
...
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