Expert player (3021)
Joined: 12/23/2007
Posts: 857
I tried Lua Scripts with Metal Slug 3 or Metal Slug X on BizHawk 2.10, and this happens: Error message: "Warning: attempted read of 1053932 outside the memory size of 65536" The line in script I use: gui.text(0,80,memory.read_u16_be(0x001014EC)) But if I use the same script on BizHawk 2.9.1, it works fine. zk547 helped me confirm that it's not my problem. He had the same issue in 2.10. Any idea of how this happens or how to fix it? Thanks.
Recent projects: SMB warpless TAS (2018), SMB warpless walkathon (2019), SMB something never done before (2019), Extra Mario Bros. (best ending) (2020).
YoshiRulz
Any
Editor, Emulator Coder
Joined: 8/30/2020
Posts: 156
Location: Sydney, Australia
The error message is fairly clear: 0x1014EC (1053932) is not in the address range 0x0000..=0xFFFF. In the earlier version it may have been failing silently, or maybe the default memory domain was the system bus. Check the list with memory.getmemorydomainlist() and then add a line like memory.usememorydomain("WRAM"); at the top of the script.
I contribute to BizHawk as Linux/cross-platform lead, testing and automation lead, and UI designer. This year, I'm experimenting with streaming BizHawk development on Twitch. nope Links to find me elsewhere and to some of my side projects are on my personal site. I will respond on Discord faster than to PMs on this site.
Hey look buddy, I'm an engineer. That means I solve problems. Not problems like "What is software," because that would fall within the purview of your conundrums of philosophy. I solve practical problems. For instance, how am I gonna stop some high-wattage thread-ripping monster of a CPU dead in its tracks? The answer: use code. And if that don't work? Use more code.
Expert player (3021)
Joined: 12/23/2007
Posts: 857
YoshiRulz wrote:
The error message is fairly clear: 0x1014EC (1053932) is not in the address range 0x0000..=0xFFFF. In the earlier version it may have been failing silently, or maybe the default memory domain was the system bus. Check the list with memory.getmemorydomainlist() and then add a line like memory.usememorydomain("WRAM"); at the top of the script.
Error message for memory.getmemorydomainlist() : NLua.Exceptions.LuaScriptException: [string "main"]:11: Invalid arguments to method call Error message for memory.usememorydomain("WRAM") : Unable to find domain: WRAM
Recent projects: SMB warpless TAS (2018), SMB warpless walkathon (2019), SMB something never done before (2019), Extra Mario Bros. (best ending) (2020).
YoshiRulz
Any
Editor, Emulator Coder
Joined: 8/30/2020
Posts: 156
Location: Sydney, Australia
I have no idea what you've done wrong. Run memory.getmemorydomainlist() in the Lua Console, or check the list in the Hex Editor instead.
I contribute to BizHawk as Linux/cross-platform lead, testing and automation lead, and UI designer. This year, I'm experimenting with streaming BizHawk development on Twitch. nope Links to find me elsewhere and to some of my side projects are on my personal site. I will respond on Discord faster than to PMs on this site.
Hey look buddy, I'm an engineer. That means I solve problems. Not problems like "What is software," because that would fall within the purview of your conundrums of philosophy. I solve practical problems. For instance, how am I gonna stop some high-wattage thread-ripping monster of a CPU dead in its tracks? The answer: use code. And if that don't work? Use more code.
Active player (422)
Joined: 1/13/2012
Posts: 136
Looks like it was an issue with the memory domain. 2.9.1 was using the system bus as the default, while 2.10 does not. I switched to one of the domains available ( memory.usememorydomain("m68000 : ram : 0x100000-0x10FFFF") ) and edited format of the addresses in the script (took out 0010) and it seems to work fine now. Thanks!

1752595406