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/Dissect Java Classes is failing

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
cripcelot
How do I cheat?
Reputation: 0

Joined: 30 Mar 2015
Posts: 4
Location: TN USA

PostPosted: Mon Mar 30, 2015 5:09 am    Post subject: Java/Dissect Java Classes is failing Reply with quote

Hello, I'm a CE noob ~ I'm quite impressed at what it can do and if I wasn't broke would shovel a few bucks to DB. Anyways when I go to Java/Dissect Java classes I get this error...

Error:...rogram Files (x86)\Cheat Engine 6.4\autorun\java.lua:403: Auto assembler failed: ....

Can anyone help me with this do I have to download lua or something?

thanks.

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

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

PostPosted: Mon Mar 30, 2015 5:53 am    Post subject: Reply with quote

The dll injection seems to have failed.

are you sure that's all the message says ?

if so, go to line 403 in autorun\java.lua and change
Code:

  if autoAssemble(script)==false then
    error('Auto assembler failed:'..script)
  end

to
Code:

  if autoAssemble(script)==false then
    print(script)
    error('Auto assembler failed:'..script)
  end


also, in memory view, rightclick and choose "goto address"
fill in "jvm.JVM_EnqueueOperation" and see if it goes to somewhere, or if it gives an error

_________________
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
cripcelot
How do I cheat?
Reputation: 0

Joined: 30 Mar 2015
Posts: 4
Location: TN USA

PostPosted: Mon Mar 30, 2015 6:25 am    Post subject: Re: Dissect Java classes Reply with quote

I changed that line in java.lua to be

if autoAssemble(script)==false then
print("wtf dude")
print(script)
error('Auto assembler failed:'..script)
end

also I don't know if this matters but I changed the name of my CE exe to be CEng.exe instead of the long name.

I checked that memory address and it says this is not a valid address

this is the output when i goto java/dissect java classes
-------------------------------------------------------------------

wtf dude
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 'D:\Program Files (x86)\Cheat Engine 6.4\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:...rogram Files (x86)\Cheat Engine 6.4\autorun\java.lua:405: 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 'D:\Program Files (x86)\Cheat Engine 6.4\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)

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

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

PostPosted: Mon Mar 30, 2015 6:39 am    Post subject: Reply with quote

Quote:
I checked that memory address and it says this is not a valid address

then it won't work. The target either uses a different version of java, or ce doesn't have full symbol access to the target

_________________
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
cripcelot
How do I cheat?
Reputation: 0

Joined: 30 Mar 2015
Posts: 4
Location: TN USA

PostPosted: Mon Mar 30, 2015 3:40 pm    Post subject: Reply with quote

ok thanks for the help -- I think it uses something called excelsior java. I'm just trying to read certain things out of memory the problem is it seems to be writing it in random locations. I've done the "find out what writes to this address" and then the more information where it shows the likely pointer then a hex search for the pointer but haven't found any results from any of the addresses it writes to.
_________________
CEng Noob.
Back to top
View user's profile Send private message
clem0338
How do I cheat?
Reputation: 0

Joined: 22 Apr 2015
Posts: 1

PostPosted: Wed Apr 22, 2015 12:37 pm    Post subject: Same problem but .... Reply with quote

Hi, i'm reopening the case ....

i have the same error except i can go to the jvm.JVM_EnqueueOperation
inside the MemoryView. Any clue ?

log from Lua Engine:
Error:...rogram Files (x86)\Cheat Engine 6.4\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.4\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::...rogram Files (x86)\Cheat Engine 6.4\autorun\java.lua:251: attempt to index a nil value
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 Lua Scripting 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