Search found 9 matches
- Sat Jan 04, 2020 1:26 pm
- Forum: Cheat Engine Lua Scripting
- Topic: LUA Timer to read changing values in memory
- Replies: 16
- Views: 11965
Re: LUA Timer to read changing values in memory
You can use a script with a hotkey that toggles the script then in that script set the fonmap's "Visible" property to false if true and true if false (or a simple "fm.Visible = not fm.Visible") in the main section of the script so it runs when enabled and disabled. Not really sure thought, never me...
- Fri Jan 03, 2020 8:18 am
- Forum: Cheat Engine Lua Scripting
- Topic: LUA Timer to read changing values in memory
- Replies: 16
- Views: 11965
Re: LUA Timer to read changing values in memory
You can use a script with a hotkey that toggles the script then in that script set the fonmap's "Visible" property to false if true and true if false (or a simple "fm.Visible = not fm.Visible") in the main section of the script so it runs when enabled and disabled. Not really sure thought, never me...
- Thu Jan 02, 2020 11:17 pm
- Forum: Cheat Engine Lua Scripting
- Topic: LUA Timer to read changing values in memory
- Replies: 16
- Views: 11965
Re: LUA Timer to read changing values in memory
... Okay that almost fixes all my problems, so it does create these texts and give them values properly though some of these don't work (mainly the race timer) https://prnt.sc/qina6n And i still don't know where i activate my Player Size AA AOB script? Also not sure if i should improve these linehe...
- Thu Jan 02, 2020 10:07 pm
- Forum: Cheat Engine Lua Scripting
- Topic: LUA Timer to read changing values in memory
- Replies: 16
- Views: 11965
Re: LUA Timer to read changing values in memory
... Okay i tried these now and its super glitchy https://prnt.sc/qij2d8 and when i click ok to script i get https://prnt.sc/qij2p5 and the Lua script just prints same value for different strings https://prnt.sc/qij2z2 EDIT: i fixed the button click for the script but putting that mr.Active=true ins...
- Thu Jan 02, 2020 4:08 pm
- Forum: Cheat Engine Lua Scripting
- Topic: LUA Timer to read changing values in memory
- Replies: 16
- Views: 11965
Re: LUA Timer to read changing values in memory
That function only has two parameters "memoryrecord" and "valuestring", so "mr" will be "memoryrecord" and "mra" will be "valuestring". and with "mr.Active" "mr" needs to be the memory record that is the AA script. Here's an example of one I use to format a game time record from seconds to a readab...
- Thu Jan 02, 2020 12:14 pm
- Forum: Cheat Engine Lua Scripting
- Topic: LUA Timer to read changing values in memory
- Replies: 16
- Views: 11965
Re: LUA Timer to read changing values in memory
That function only has two parameters "memoryrecord" and "valuestring", so "mr" will be "memoryrecord" and "mra" will be "valuestring". and with "mr.Active" "mr" needs to be the memory record that is the AA script. Here's an example of one I use to format a game time record from seconds to a readab...
- Thu Jan 02, 2020 11:12 am
- Forum: Cheat Engine Lua Scripting
- Topic: LUA Timer to read changing values in memory
- Replies: 16
- Views: 11965
Re: LUA Timer to read changing values in memory
Is there a reason you have all the OnGetDisplayValue nested together like that? Seems like you should create one function for each that updates that one record using the "valuestring" parameter. With that the first two just sets the others OnGetDisplayValue repetedly and only the third one actually...
- Thu Jan 02, 2020 10:49 am
- Forum: Cheat Engine Lua Scripting
- Topic: LUA Timer to read changing values in memory
- Replies: 16
- Views: 11965
Re: LUA Timer to read changing values in memory
You never actually create the timer with that code, what you need to do is put the update code inside the timer function and the timer create code outside the function. Here are some eample timers. https://fearlessrevolution.com/viewtopic.php?f=11&t=6492 I actually got this working al = getAddressL...
- Thu Jan 02, 2020 6:02 am
- Forum: Cheat Engine Lua Scripting
- Topic: LUA Timer to read changing values in memory
- Replies: 16
- Views: 11965
LUA Timer to read changing values in memory
So im making this D3D menu and i don't understand how to create timer and to read memory address with it every 3 seconds or so. I have a pointer to it, i made it with AOB scan. local RacePointer = getAddress("[Racetime]") RacePointer = readPointer(RacePointer + 0x1C) local function MyTimer() if time...