Closed GHRoss closed 1 year ago
Not sure what you mean by "streaming", but you can certainly read memory programmatically with Lua (memory
lib) or C# (IMemoryApi
).
Not sure what you mean by "streaming", but you can certainly read memory programmatically with Lua (
memory
lib) or C# (IMemoryApi
).
What I mean by that is reading it in real time, I guess. I don't suppose you have an example of the C# method? I've been looking online and couldn't find anything.
https://tasvideos.org/Bizhawk/LuaFunctions if you wish to instead use lua.
https://github.com/TASEmulators/BizHawk-ExternalTools/wiki/Development-quickstart
Nice, thank you. Is there also a APIs.Memory.SetByteRange() method?
Wow, nice! Do you have any examples? Sorry to ask, I'm a very rookie programmer.
I'm going to suggest that a "very rookie programmer" should not attempt to use ApiHawk. Consider the Lua option, though IMO Lua is a much worse choice for first language than C#. Developing for ApiHawk just requires older and more obscure tooling/features than a modern C# hello world project does.
I don't know of an example for IMemoryApi.WriteByteRange
specifically, but you can check out these sample projects: HelloWorld, Bk2ExporterToolForm
That's a fair comment. I'm keen to learn though.
I'm going through the development quickstart and getting this error when running...
requested ext. tool dll MyTool could not be loaded
This is on Ubuntu 22.04. BizHawk does open but it doesn't do anything. And yes, the ROM is present and works when loaded in manually to BizHawk.
Here's a list of files, perhaps I'm missing something?
OK, so I found it in the menu and this was the error...
The assembly doesn't contain a class implementing IExternalToolForm and annotated with [ExternalTool].
But it is in the code...
MyTool.cs
needs to be in src
edit: updated guide
I did that but now I get this other error too...
Error: NullHawk does not implement memory domains requested ext. tool dll MyTool could not be loaded
I think that's because you're launching from the command-line without specifying a rom (or enabling autoload last rom). If you launch EmuHawk manually, the menu item should be greyed-out with the same error message in a tooltip.
OK, seems to be working now, although the text in the SMB Autosave window only ever shows anything when I have the controller configuration open? Otherwise it's just a blank white window?
It also doesn't automatically load the tool still, I get the same error, but it loads if I go into the External Tools menu and select it from there..?
I've not heard of any rendering problems with WinForms before, are you still struggling with that? You can join the ApiHawk Discord server or message me directly if you would prefer IM.
I've not heard of any rendering problems with WinForms before, are you still struggling with that? You can join the ApiHawk Discord server or message me directly if you would prefer IM.
Messaged on DIscord. :)
I'd take it this issue doesn't need to stay open now?
Never did figure out why the ext. tool's Form
was rendering strangely, CNR even on the same distro. But yes, original question was answered.
Hey all,
I'm looking for a way to read (and ideally write) live memory data of virtual RAM of a Game Boy Colour running Tetris DX. Is this the right place to ask that question?
I've tried RALibretro but it doesn't have an interface with any programming languages.
But it got me this far!!