-
-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add on documentation Scripting API link to github folder #2550
Comments
While making resources more visible and accessible is a good idea, I'm unsure what the github folder has to do with it. As far as I can tell, there are a handful of predefined files that go there, and I'm not sure which one is relevant. |
As it is know that GitHub profile contains the example scripts to instead to point to a specific file it is better to point to the folder that include all of them in the future. Honestly I don't know if there are other files useful to understand that API in the repo. |
So I did a tiny lua script for Mario Pinball Land for a talk I will do
I was not able to find with the memory view to change those addresses as I think that change the value of those memory address by code so changing doesn't get effect but for a demo is fine. |
Another tiny script this time to write:
This one is for Metal Slug Advance USA version to set unlimited arms points. |
On my tests seems that without console log the write in memory is not executed with this last script. Do you want a PR to add those examples in the repository? |
Scripts that don't attempt to detect the specific game, just print it to the log, aren't really what I'd be looking for. But possibly some easy examples for more common games would be good. |
Hi, I've been thinking on using mGBA's scripting API for help in Reverse Engineering some Japanese exclusive games. And, trying to find samples to get me started with the scripting basics, I found this. Since you said it could be useful to do a few more easy ones, I wanted to leave the one I created. (I don't know how good or useful it is, but I think it covers the bare minimum). It takes generic data to get the user use to the options and all, so you don't need a specific game to check (If someone needs a name for double-checking, I used Pokemon - Sapphire Version (USA), with CRC: 554DEDC4)
|
It can be helpful to have as context and resources of this documentation page https://mgba.io/docs/scripting.html a link to https://github.com/mgba-emu/mgba/tree/master/res/scripts
Maybe can be handy also a tiny example as the
pokemon.lua
is very huge and does too many things, maybe an example like read a variable and change that content is useful to get a more friendly approach and also to lower the learning curve.The text was updated successfully, but these errors were encountered: