Search found 10 matches

by coroco
Sun Apr 10, 2022 10:36 pm
Forum: Cheat Engine
Topic: how to detect obstacles in an arcade game?
Replies: 0
Views: 876

how to detect obstacles in an arcade game?

hi i have a problem i wanted to write a bot script for a timberman just for fun but i dont know how i can detect if an area is blocked by an obstruction. Is it possible?
Image
by coroco
Thu Sep 16, 2021 8:06 pm
Forum: Cheat Engine Lua Scripting
Topic: the script does not change the value of the address
Replies: 2
Views: 8040

the script does not change the value of the address

Again me and another problem, why when I do not have an address added in the address table, the script does not change the address value? The script finds the address and displays its correct value, but as long as I do not have this address in the address table, the script does not change the value ...
by coroco
Thu Sep 16, 2021 6:24 pm
Forum: Cheat Engine Lua Scripting
Topic: how to refresh the list with modules?
Replies: 2
Views: 5963

Re: how to refresh the list with modules?

Not sure what you're doing there, but 'reinitializeSymbolhandler()' should do what you want. This is how it works thank you! I just used a script that searched for the module but i couldn't find it o the modules list did not refresh, and this error pops up when you open the cheat engine before the ...
by coroco
Thu Sep 16, 2021 5:58 pm
Forum: Cheat Engine Lua Scripting
Topic: how to refresh the list with modules?
Replies: 2
Views: 5963

how to refresh the list with modules?

hi, is it possible to refresh the module list of an open process in the cheat engine? Probably the module loads only after loading the save or starting a new game. So when I turn on the cheat engine before loading the game and want to check the module list I get an error. Only after reopening the pr...
by coroco
Thu Sep 16, 2021 9:42 am
Forum: Cheat Engine Lua Scripting
Topic: how to use string.find on a table together with a regular expression
Replies: 3
Views: 6247

Re: how to use string.find on a table together with a regular expression

I managed to solve it, I don't know if code it is fully correct but it works function dump(o) if type(o) == 'table' then local s = '{ ' for k,v in pairs(o) do if type(k) ~= 'number' then k = ''..k end s = s .. '['..k..'] = ' .. dump(v) a = tostring(v) if string.find(a,'^Gam(.*).tmp') then print(a) e...
by coroco
Thu Sep 16, 2021 9:14 am
Forum: Cheat Engine Lua Scripting
Topic: how to use string.find on a table together with a regular expression
Replies: 3
Views: 6247

Re: how to use string.find on a table together with a regular expression

Like a month ago I did make a DLL's and symbols dumper, and I used string.match for it, so you should be able to make it work that way: string.match(StringVariable,'StringToFind') So, use match to see if it includes 'gam' and '.tmp' in its name, and if so then print it or do what you want to do wit...
by coroco
Wed Sep 15, 2021 8:25 pm
Forum: Cheat Engine Lua Scripting
Topic: how to use string.find on a table together with a regular expression
Replies: 3
Views: 6247

how to use string.find on a table together with a regular expression

hi, so I have a function that prints modules, the problem is that I don't know what to use to find the module, I tried string find on the table but I get an error "bad argument # 1 to 'find' (string expected, got table)" so what do I need to use to search for a given module? An example with string.f...
by coroco
Tue Aug 03, 2021 2:56 am
Forum: Cheat Engine Lua Scripting
Topic: how to print a list of modules
Replies: 9
Views: 11213

Re: how to print a list of modules

You can use "enumModules". And lua's "string.find" or "string.sub" to see if the name starts with the match you want. This is from the "celua.txt" file in the CE directory. enumModules(processid OPTIONAL): Returns a table containing information about each module in the current process, or the speci...
by coroco
Sun Aug 01, 2021 4:16 am
Forum: Cheat Engine Lua Scripting
Topic: how to print a list of modules
Replies: 9
Views: 11213

how to print a list of modules

hey i need to print the module list in lua script, how can i make a function which will give me the names of all game modules?
ideally it should only show modules that start with 'gam' :D
by coroco
Wed Jul 28, 2021 4:10 pm
Forum: Cheat Engine Lua Scripting
Topic: Loop theard lua
Replies: 2
Views: 6584

Loop theard lua

I wanted to create a thread in a loop so I took the script formula from the forum, but even when I paste the clean code to cheat engine shows error about global atimer, what do I do? I would like the script to run in a loop after selecting active, and to stop when unchecked. cheat engine 7.2 https:/...