https://github.com/yoshifan/ram-watch-cheat-engine
I've posted about this Lua script framework a few times in the past, but I figured I should make a proper thread for it instead of hijacking some other thread. That way I can field questions here, as well.
Anyway, I've given the framework a major update:
- New detailed tutorial
- You can now cleanly separate your own custom layouts from the framework code
- Reorganized a lot of things to enable writing shorter, more expressive code
Here's a video showing an example of a RAM display:
https://www.youtube.com/watch?v=Hri8f8Pgim8
Introduction based on the GitHub README:
Thanks for this, I got a lot of use out of the last iteration and I'm excited to use this. Hopefully this will finally give me the motivation to make this galaxy 2 tas I've wanted to do for a while.
Joined: 12/1/2012
Posts: 103
Location: New Donk City
Ooh, how did I not know about this before? Seems like it'll address Dolphin's lack of Lua support and CE's lackluster native support for dynamic memory watching in one stroke; excited to try this out!
I'm running into an issue where the local dolphin returns true:
"Error:...wnloads/ram-watch-cheat-engine-master/games/gamename.lua:31: attempt to index a boolean value (local 'dolphin')"
Fog: Can I see gamename.lua up to the point where the local dolphin is set? And what Cheat Engine version are you using?
I've read that require() can return true if the required file (dolphin.lua in this case) does not have a return statement at the end of the file, but if it's finding the repository's dolphin.lua then that should be covered. And I'm asking the CE version in case different Lua versions have different loader behavior.
I'm using Cheat Engine 6.6, and modifying the sample.lua file (which hasn't changed in my new file).
EDIT: Apparently just having a file in the cheat table folder called dolphin.lua (or any other required file) causes it to break.
Oh, didn't think of the cheat table folder. Yeah, that'd break it. Perhaps I should look into making the require() paths more explicit for everything other than games/layouts. Thanks for finding the issue.