Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
mame lua API reference? #108060
11/29/16 11:40 PM
11/29/16 11:40 PM
Joined: Jul 2011
Posts: 94
T
TSCHAK Offline OP
Member
TSCHAK  Offline OP
Member
T
Joined: Jul 2011
Posts: 94
Is there one, yet?

-Thom

Re: mame lua API reference? [Re: TSCHAK] #108061
11/30/16 12:37 AM
11/30/16 12:37 AM
Joined: Jan 2012
Posts: 783
C
crazyc Offline
Senior Member
crazyc  Offline
Senior Member
C
Joined: Jan 2012
Posts: 783
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.

Re: mame lua API reference? [Re: TSCHAK] #108065
11/30/16 10:14 AM
11/30/16 10:14 AM
Joined: Aug 2015
Posts: 358
Edstrom Offline
Senior Member
Edstrom  Offline
Senior Member
Joined: Aug 2015
Posts: 358
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?

Re: mame lua API reference? [Re: TSCHAK] #108066
11/30/16 10:47 AM
11/30/16 10:47 AM
Joined: Apr 2015
Posts: 367
E
EoceneMiacid Offline
Senior Member
EoceneMiacid  Offline
Senior Member
E
Joined: Apr 2015
Posts: 367
Same question, using -console does not return an error, but does not start the console either

Re: mame lua API reference? [Re: TSCHAK] #108069
11/30/16 01:24 PM
11/30/16 01:24 PM
Joined: Mar 2001
Posts: 15,988
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 15,988
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.

Re: mame lua API reference? [Re: TSCHAK] #108076
11/30/16 02:28 PM
11/30/16 02:28 PM
Joined: Aug 2015
Posts: 358
Edstrom Offline
Senior Member
Edstrom  Offline
Senior Member
Joined: Aug 2015
Posts: 358
Great thx, I am pretty sure I tried that a couple of weeks ago but probably spelled something wrong. smile

Re: mame lua API reference? [Re: TSCHAK] #108079
11/30/16 03:39 PM
11/30/16 03:39 PM
Joined: Apr 2015
Posts: 367
E
EoceneMiacid Offline
Senior Member
EoceneMiacid  Offline
Senior Member
E
Joined: Apr 2015
Posts: 367
@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.
Re: mame lua API reference? [Re: TSCHAK] #108087
11/30/16 06:42 PM
11/30/16 06:42 PM
Joined: Jan 2012
Posts: 783
C
crazyc Offline
Senior Member
crazyc  Offline
Senior Member
C
Joined: Jan 2012
Posts: 783

Re: mame lua API reference? [Re: TSCHAK] #108088
11/30/16 06:47 PM
11/30/16 06:47 PM
Joined: Apr 2015
Posts: 367
E
EoceneMiacid Offline
Senior Member
EoceneMiacid  Offline
Senior Member
E
Joined: Apr 2015
Posts: 367
Thanks. I'll look into it tomorrow.

Re: mame lua API reference? [Re: TSCHAK] #109951
06/20/17 07:04 PM
06/20/17 07:04 PM
Joined: Jun 2017
Posts: 3
F
feos Offline
Member
feos  Offline
Member
F
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
0 registered members (), 51 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,566
Posts111,888
Members4,805
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.026s Queries: 15 (0.009s) Memory: 5.7158 MB (Peak: 5.9387 MB) Zlib enabled. Server Time: 2018-08-17 13:33:07 UTC