Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
#108060 - 11/29/16 11:40 PM mame lua API reference?  
Joined: Jul 2011
Posts: 93
TSCHAK Offline
Member
TSCHAK  Offline
Member

Joined: Jul 2011
Posts: 93
Is there one, yet?

-Thom

#108061 - 11/30/16 12:37 AM Re: mame lua API reference? [Re: TSCHAK]  
Joined: Jan 2012
Posts: 777
crazyc Offline
Senior Member
crazyc  Offline
Senior Member

Joined: Jan 2012
Posts: 777
I document almost every api in luaengine.cpp. The ones I didn't ought to be self explanatory. If someone wants to turn in into a page on docs they can and I can answer any questions.

#108065 - 11/30/16 10:14 AM Re: mame lua API reference? [Re: TSCHAK]  
Joined: Aug 2015
Posts: 356
Edstrom Offline
Senior Member
Edstrom  Offline
Senior Member

Joined: Aug 2015
Posts: 356
What is the command line to use the new LUA plugin and how do I open the new console?

I tried LUA a while back with -console but now I am a bit lost (again). I want to build a simple UI for one of my drivers as a test, is that feasable yet?

#108066 - 11/30/16 10:47 AM Re: mame lua API reference? [Re: TSCHAK]  
Joined: Apr 2015
Posts: 364
EoceneMiacid Offline
Senior Member
EoceneMiacid  Offline
Senior Member

Joined: Apr 2015
Posts: 364
Same question, using -console does not return an error, but does not start the console either

#108069 - 11/30/16 01:24 PM Re: mame lua API reference? [Re: TSCHAK]  
Joined: Mar 2001
Posts: 15,933
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,933
USA
The console was converted to a plugin, as it says in the 0.180 whatsnew. "-plugin console" brings up the console, but I don't know what commands to use with it.

#108076 - 11/30/16 02:28 PM Re: mame lua API reference? [Re: TSCHAK]  
Joined: Aug 2015
Posts: 356
Edstrom Offline
Senior Member
Edstrom  Offline
Senior Member

Joined: Aug 2015
Posts: 356
Great thx, I am pretty sure I tried that a couple of weeks ago but probably spelled something wrong. smile

#108079 - 11/30/16 03:39 PM Re: mame lua API reference? [Re: TSCHAK]  
Joined: Apr 2015
Posts: 364
EoceneMiacid Offline
Senior Member
EoceneMiacid  Offline
Senior Member

Joined: Apr 2015
Posts: 364
@CrazyC: Actually, I'd like to properly document the API. The better it's documented, the more likely we'll see people do all kinds of nifty things with it.

So, do I just start typing away and submit my document somewhere?

Last edited by EoceneMiacid; 11/30/16 05:04 PM.
#108087 - 11/30/16 06:42 PM Re: mame lua API reference? [Re: TSCHAK]  
Joined: Jan 2012
Posts: 777
crazyc Offline
Senior Member
crazyc  Offline
Senior Member

Joined: Jan 2012
Posts: 777

#108088 - 11/30/16 06:47 PM Re: mame lua API reference? [Re: TSCHAK]  
Joined: Apr 2015
Posts: 364
EoceneMiacid Offline
Senior Member
EoceneMiacid  Offline
Senior Member

Joined: Apr 2015
Posts: 364
Thanks. I'll look into it tomorrow.

#109951 - 06/20/17 07:04 PM Re: mame lua API reference? [Re: TSCHAK]  
Joined: Jun 2017
Posts: 3
feos Offline
Member
feos  Offline
Member

Joined: Jun 2017
Posts: 3
Hi crazyc, how do I use item's read/write properly? What can they do to manipulate the state_entries? Like, if I iterate through them in lua, can I create a savestate in lua memory that way? mame-rr's lua engine could create savestate objects in lua memory and save to it and load from it, I wonder how much of that has left in the current implementation (if there ever was such functionality).

Page 1 of 2 1 2

Who's Online Now
2 registered members (Robbbert, dxl), 16 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,534
Posts111,541
Members4,793
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.042s Queries: 15 (0.018s) Memory: 5.0117 MB (Peak: 5.2362 MB) Zlib enabled. Server Time: 2018-05-23 09:02:08 UTC