It is currently Sun Jul 21, 2019 2:19 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 169 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12
Author Message
PostPosted: Wed Feb 13, 2019 7:05 pm 
Offline

Joined: Wed Apr 04, 2018 7:29 pm
Posts: 60
Location: Montreal, Canada
I might be running a build from 1+ month ago (whenever the last time you added me a feature!).
I will take a new nightly and give it a try.

-Mat


Top
 Profile  
 
PostPosted: Sun Apr 28, 2019 5:01 am 
Offline

Joined: Wed Apr 04, 2018 7:29 pm
Posts: 60
Location: Montreal, Canada
Hi!

I want to create myself some simple debugging Lua scripts to display the state of my hero, NPCs, etc. Is it possible to access debug info from Lua? This would avoid me having to hard-code addresses of stuff (which changes all the time during development).

Thanks!

-Mat


Top
 Profile  
 
PostPosted: Sun Apr 28, 2019 6:25 am 
Offline

Joined: Sun Feb 07, 2016 6:16 pm
Posts: 713
In the latest dev builds, there's a "emu.getLabelAddress" function that returns an address that can be used with emu.read/write. See: https://github.com/SourMesen/Mesen/blob/master/Docs/content/apireference/MemoryAccess.md#getlabeladdress

And that's another reason why I really need to get around to releasing a new release and updating the documentation website. Not enough hours in a day, and not enough days in a weekend :p


Top
 Profile  
 
PostPosted: Sun Apr 28, 2019 7:12 pm 
Offline

Joined: Wed Apr 04, 2018 7:29 pm
Posts: 60
Location: Montreal, Canada
Haha. Thanks is brilliant! Thanks!

I'll give it a try soon. I think I can make myself a really kickass visual debugger for gameplay with that.

-Mat


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 169 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 12 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group