Difference between revisions of "Lua:getCheatEngineFileVersion"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "Category:Lua '''function''' getCheatEngineFileVersion() ''':''' Integer, Table Returns the full version data of the Cheat Engine executable. The first return value is a...")
 
 
Line 24: Line 24:
  
 
== See also ==
 
== See also ==
* [[getCheatEngineProcessID]]
+
* [[Lua:getCheatEngineProcessID|getCheatEngineProcessID]]
 
* [[getOpenedProcessID]]
 
* [[getOpenedProcessID]]

Latest revision as of 18:18, 11 July 2025

function getCheatEngineFileVersion() : Integer, Table

Returns the full version data of the Cheat Engine executable. The first return value is a raw integer representing the version. The second return value is a table containing the fields: major, minor, release, and build.

Returns[edit]

  • Integer — The raw version as an integer.
  • Table — A table with the following fields:
    • major (integer)
    • minor (integer)
    • release (integer)
    • build (integer)

Examples[edit]

local raw, version = getCheatEngineFileVersion()
print("Raw version:", raw)
print(string.format("Version: %d.%d.%d build %d", version.major, version.minor, version.release, version.build))
-- Raw version: 1970346311818503 
-- Version: 7.5.0 build 7431 

See also[edit]