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] Cant find any static Pointers/Functions/Variables/...

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

Joined: 06 Jan 2023
Posts: 8

PostPosted: Wed Jun 28, 2023 10:13 am    Post subject: [Java] Cant find any static Pointers/Functions/Variables/... Reply with quote

Greetings gamers..,

I came back in a time with big need, Java, doing its things, im trying to get my Player X,Y,Z pos. variable, and I found it, yet, after 10-15min a memory "purge" occurs, ruining everything, now my Player pos now is somewhere completely else.
Doing an "Pointer Scan" even with 13 levels and 8190 max. offset value haven't net me anything positive.
If I try to get the function accessing that X/Y/Z value it will be in a different location everytime I restart the game.
Decompiling, editing the file.java, recompiling and switching out the old .class file in the .jar while bypassing an crc-32 check only gives me an SHA-256 value mismatch error.
Im currently at the end of my limited knowledge and I don't know how to proceed, please, throw me a bone here..
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Jun 28, 2023 10:44 am    Post subject: Reply with quote

try launching java with the -XX:-UseCompressedOops parameter

besides that perhaps the java tools in the too menu might be of some help for you (assuming you have a full ce install)

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

Joined: 06 Jan 2023
Posts: 8

PostPosted: Mon Jul 03, 2023 7:53 am    Post subject: Reply with quote

Dark Byte wrote:
try launching java with the -XX:-UseCompressedOops parameter


Sorry for this late reply, had some things to do, but yes, that did the trick, thanks Very Happy

Incase someone cares, I couldnt just add an simple argument, the game uses an .exe as an launcher, the .jar errors out if I try to run it directly with Java, I tried more and more things to get that argument in there, but failed.
I then started to look into the Java Tools in CE, which (more or less) required me to load "CEJVMTI.dll" via Java before running the game(?), where I found a thread ("Activating JVMTI features") where the "JAVA_TOOL_OPTIONS" environment variable got mentioned, which got it running, however I then tested if I could just add "-XX:-UseCompressedOops" in there instead, and surprise surprise, it worked.



Screenshot_1.png
 Description:
 Filesize:  3.76 KB
 Viewed:  2097 Time(s)

Screenshot_1.png


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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