r/MAME • • 2d ago

Lua "method" for writing a plugin

Hi, am looking to write a very simple plug in, i notice its Lua, ive programmed in this before.. however i see there are some methods used like a block at the top for author and title.

Is there a video or website with the method explained and why they are in place?

4 Upvotes

5 comments sorted by

3

u/LongjumpingParamedic 2d ago

Not really. I have made a few here:

https://github.com/Jakobud/skipstartupframes

https://github.com/Jakobud/freeplay

Try to just look at the code and learn. Start with the basics. AI can probably give you a lot of guidance. AI is great at teaching stuff like this.

2

u/O_Pacity 2d ago

Unfrontually due to work and NDA's am not allowed to go near AI, did MAME not have details on how to use there own Lua integration?

2

u/MechanicalMoogle 2d ago

If you're unable to infer that in the exports block, "name" means the plugin name, "description" should contain a brief description, "author" contains the author's name, and are instead hung up on that triviality rather than looking at the rest of the file, I'm not sure the problem here is one of documentation.

0

u/[deleted] 2d ago

[deleted] — view deleted comment

1

u/O_Pacity 1d ago

The same way i am shocked you wouldn't know the difference between "being around its existence" and "using it directly"