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 


Make copy of pointer target address in table

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Xathan
Advanced Cheater
Reputation: 1

Joined: 19 Jun 2014
Posts: 72

PostPosted: Mon Apr 20, 2015 7:39 am    Post subject: Make copy of pointer target address in table Reply with quote

I built a table for Postal 2 but ran into a problem. There is a level 6 pointer to the ammo of the current weapon. Sometimes the target address in CE is "flickering" pointing to an invalid or another address but recovers really fast.

The problem is the following:
As long as I am in one zone of the map w/o changing to another map via loading zone the address is fixed. The pointer shows the correct address but the flickering dropped all my weapons which need ammo because for a short time the value got an overflow and became negative.

What I search is the possibility to copy the current ammo address (e.g. machine gun) to a temporary address and use this in one zone. This must be repeated after each loading zone of the map.

Any ideas or code snippets are appreciated =)
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Mon Apr 20, 2015 7:55 am    Post subject: This post has 1 review(s) Reply with quote

It'd most likely be less of a headache and more stable to just make a script to patch the game's behavior to give infinite ammo instead.

http://forum.cheatengine.org/viewtopic.php?t=570083

_________________
Back to top
View user's profile Send private message
Xathan
Advanced Cheater
Reputation: 1

Joined: 19 Jun 2014
Posts: 72

PostPosted: Mon Apr 20, 2015 8:02 am    Post subject: Reply with quote

Thanks for the idea and the link. I will work through this and try to insert it into my table.

€dit (for I cannot doublepost yet Very Happy):

Your thread was very helpful for no ammo decreasing. Now i wanted to also deactivate the police level but then the game is crashing. I just modified the opcode from 89 08 to 90 90 and also checked that the length is the same and all addresses are the same for jumps.


Code:
Core.FEdLoadError::operator=+758A1 - 75 0F                 - jne Core.FEdLoadError::operator=+758B2
Core.FEdLoadError::operator=+758A3 - 8B 45 0C              - mov eax,[ebp+0C]
Core.FEdLoadError::operator=+758A6 - 5F                    - pop edi
Core.FEdLoadError::operator=+758A7 - 8B 08                 - mov ecx,[eax]
Core.FEdLoadError::operator=+758A9 - 8B 45 08              - mov eax,[ebp+08]
Core.FEdLoadError::operator=+758AC - 89 08                 - mov [eax],ecx
Core.FEdLoadError::operator=+758AE - 5D                    - pop ebp
Core.FEdLoadError::operator=+758AF - C2 0C00               - ret 000C
Core.FEdLoadError::operator=+758B2 - 33 D2                 - xor edx,edx

This is the short range of byte code in the jump. Any idea what could cause this problem? I have a stable pointer to the police level so I can live with that =) But I'm still wondering.

€dit2:
Also attaching my AA-script to give complete information:
Code:
[ENABLE]
"Core.dll"+79C37:
db 90 90

[DISABLE]
"Core.dll"+79C37:
db 89 08

//Alt: db 89 08 5D C2 0C 00
Back to top
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 891

PostPosted: Mon Apr 20, 2015 10:01 am    Post subject: Reply with quote

You've got the wrong hack point, find another.
_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
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