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 


Disect Data/Structures distance

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Thu Sep 07, 2017 3:33 am    Post subject: Disect Data/Structures distance Reply with quote

Hello.
I have question from data structures,and it is that i want the distance of any address and after them was 1.
for example:
offset address:
0001 XXXXXXXX
0002 XXXXXXXX
0003 XXXXXXXX
.
.
.
000A XXXXXXXX
000B XXXXXXXX
.
.
???? XXXXXXXX
"I wan not use from add element".help 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: Thu Sep 07, 2017 4:21 am    Post subject: Reply with quote

I have no idea what you want, but look at this code.
It looks for a structure named 'bla' and then modifies it
Code:

local count=getStructureCount()
local i
local s=nil
for i=0,count-1 do
  s=getStructure(i)
  if s.Name=='bla' then break end
end

if s~=nil then
  s.beginUpdate()
  for i=0,s.Count-1 do
    s.Element[i].Offset=i --best way to make every offset distance of 1
  end
  e.endUpdate()
end

_________________
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
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Thu Sep 07, 2017 4:47 am    Post subject: Reply with quote

Oh,it's very good Dark Byte.nice work.
how to learning lua from where?
I want to learn lua,can the introduction of the lua best sites? Wink
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Thu Sep 07, 2017 7:56 pm    Post subject: Reply with quote

Check my sticky post in the Lua section here:
http://forum.cheatengine.org/viewtopic.php?t=538130

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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