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 


Functions for value types

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Thu Apr 07, 2022 7:00 am    Post subject: Functions for value types Reply with quote

This lua script can be used as extension(extension for yourself of course, but if you will make table, functions won't apply into table), as module for Cheat Engine table
Functions and their usage:
writeBoolean(address,bool)
readBoolean(address)
writeBool(address,bool)
readBool(address)
writeVector(address,vector,isDouble,is2D)
readVector(address,isDouble,is2D)

make sure that vector will be table with x y z , otherwise it won't execute, functions are returning bool on success or table(for vector) with x y z

UPDATE:
now this update brings you vectors(vector 2d and vector 3d), you can substract, add them like in casual (table - table1) or (table + table1)



moreValueTypes.LUA
 Description:

Download
 Filename:  moreValueTypes.LUA
 Filesize:  2.94 KB
 Downloaded:  682 Time(s)


_________________
void(__cdecl *Haxing)(HWND hGameWindow)


Last edited by Frouk on Thu May 05, 2022 1:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Thu Apr 07, 2022 9:00 am    Post subject: Reply with quote

Just so you know, boolean = byte value.
Code:

  readByte(): integer
  writeByte(integer)
  readWord(): integer
  writeWord(integer)
  readDword(): integer
  writeDword(integer)
  readQword(): integer
  writeQword(integer)
  readAnsiString(): string
  writeAnsiString(string)
Back to top
View user's profile Send private message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Thu Apr 07, 2022 9:08 am    Post subject: Reply with quote

LeFiXER wrote:
Just so you know, boolean = byte value.
Code:

  readByte(): integer
  writeByte(integer)
  readWord(): integer
  writeWord(integer)
  readDword(): integer
  writeDword(integer)
  readQword(): integer
  writeQword(integer)
  readAnsiString(): string
  writeAnsiString(string)

i know, i just made function with bool to write it into address like:
writeBool(address,true)

_________________
void(__cdecl *Haxing)(HWND hGameWindow)
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 Extensions 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