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 


Cheat engine lua help..

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Tue Feb 09, 2016 10:32 am    Post subject: Cheat engine lua help.. Reply with quote

writeFloat("3B0D9900", 5.3)
crashes my game.. I don't understand why?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4711

PostPosted: Tue Feb 09, 2016 10:54 am    Post subject: Reply with quote

Works fine for me... are you sure that's the right address and value type?

Try changing the value of that address in the address list and see what happens. If it still crashes, then the game is probably detecting you changing that value and it's destroying itself.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Tue Feb 09, 2016 11:02 am    Post subject: Reply with quote

ParkourPenguin wrote:
Works fine for me... are you sure that's the right address and value type?

Try changing the value of that address in the address list and see what happens. If it still crashes, then the game is probably detecting you changing that value and it's destroying itself.


I got it thanks though, any idea how I could do this using a pointer though?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4711

PostPosted: Tue Feb 09, 2016 11:04 am    Post subject: Reply with quote

Code:
writeFloat('[[["game.exe"+57A0]+2A]+78]+94', 5.3)

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Tue Feb 09, 2016 11:40 am    Post subject: Reply with quote

ParkourPenguin wrote:
Code:
writeFloat('[[["game.exe"+57A0]+2A]+78]+94', 5.3)

Not working..
http : // i . imgur . com/GeWWv4H.png
Code:
writeFloat('[[[["Game.exe"+01A0DDC4]+d8]+60]+3ac]+0', 5.3)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4711

PostPosted: Tue Feb 09, 2016 11:58 am    Post subject: Reply with quote

Wrong order.
Put the offsets that are closer to the base address in that window closer to the base address in that Lua code.
Code:
writeFloat('[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d8', 5.3)

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Tue Feb 09, 2016 12:00 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Wrong order.
Put the offsets that are closer to the base address in that window closer to the base address in that Lua code.
Code:
writeFloat('[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d8', 5.3)


Ahhhh Thank you very much.

EDIT:
Any idea why I can't use it in a for loop?
Code:
Y = '[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d8'
X = '[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d4'
Z = '[[[["Game.exe"+01A100F8]+0]+440]+60]+d0'
for i = 0, 1000 do
  writeFloat(Y, 68.07678986)
  writeFloat(X, 46.36349106)
  writeFloat(Z, 209.7164612)
end
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Feb 09, 2016 12:35 pm    Post subject: Reply with quote

Hint: if you found address of X and pointerscaned it, rescanned many times, then you don't have to do it for Y and Z. Y and Z are close enough so just change last offset.


Code:
Y = '[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d8'
X = '[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d4'
Z = '[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d0'
for i = 0, 1000 do
  writeFloat(Y, 68.07678986)
  writeFloat(X, 46.36349106)
  writeFloat(Z, 209.7164612)
end



or


Code:
Y = '[[[["Game.exe"+01A100F8]+0]+440]+60]+d8'
X = '[[[["Game.exe"+01A100F8]+0]+440]+60]+d4'
Z = '[[[["Game.exe"+01A100F8]+0]+440]+60]+d0'
for i = 0, 1000 do
  writeFloat(Y, 68.07678986)
  writeFloat(X, 46.36349106)
  writeFloat(Z, 209.7164612)
end

_________________
Back to top
View user's profile Send private message MSN Messenger
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Tue Feb 09, 2016 12:41 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
Hint: if you found address of X and pointerscaned it, rescanned many times, then you don't have to do it for Y and Z. Y and Z are close enough so just change last offset.


Code:
Y = '[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d8'
X = '[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d4'
Z = '[[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+d0'
for i = 0, 1000 do
  writeFloat(Y, 68.07678986)
  writeFloat(X, 46.36349106)
  writeFloat(Z, 209.7164612)
end





or


Code:
Y = '[[[["Game.exe"+01A100F8]+0]+440]+60]+d8'
X = '[[[["Game.exe"+01A100F8]+0]+440]+60]+d4'
Z = '[[[["Game.exe"+01A100F8]+0]+440]+60]+d0'
for i = 0, 1000 do
  writeFloat(Y, 68.07678986)
  writeFloat(X, 46.36349106)
  writeFloat(Z, 209.7164612)
end


Thanks for the tip, any idea how to get that for loop workin'?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4711

PostPosted: Tue Feb 09, 2016 12:45 pm    Post subject: Reply with quote

What do you mean you can't use it in a for loop? It works just fine for me. What are you trying to do?
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Feb 09, 2016 12:51 pm    Post subject: Reply with quote

probably pointer is not stable. The question is, which one.


this one: [[[["Game.exe"+01A0DDC4]+0]+3ac]+60]+XX

or this one: [[[["Game.exe"+01A100F8]+0]+440]+60]+XX


This is why I posted both scripts. So he could try both of them, one by one.

_________________
Back to top
View user's profile Send private message MSN Messenger
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