Hello Guest it is April 18, 2024, 04:02:32 AM

Author Topic: Here is a Down and Dirty, quick mcLua commonly used coding guide "no frills"  (Read 16035 times)

0 Members and 1 Guest are viewing this topic.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Here is a Down and Dirty, quick mcLua commonly used coding guide "no frills"

it is just common calls and coding for doing some mcLua stuff for your screens, macros or whatever. Grouped by subject, with examples.

The two files are the SAME file, one is in MS Word  .doc, and the other is PDF.

PLEASE feel free to "Add To" the document if you think some commonly used thing is missing, and/or if you see a mistake or something could be stated clearer.

Scott





fun times
I am sure others say Thank You, and of course i say Thank You, but Thank You is
too lightweight for this fine work. Your the best!

Why don't you write the manuals ? 
You could charge double and still be worth it,

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Quote
I am sure others say Thank You, and of course i say Thank You, but Thank You is
too lightweight for this fine work. Your the best!

Nope, getting feedback from forum users is like pulling teeth, much less a thank you...
but, it is just the way it is........

Quote
Why don't you write the manuals ?
You could charge double and still be worth it,

1). I was never asked or even poked at about it.
It is said according to rumor, that a vendor is making the manual(s) and it/they should be out soon, and it/they should be awesome.
Given that, the stuff I am putting out, at best is just a stop-gap measure to help those who are currently struggling up the learning curve slope.
2). Currently, I have charged $0.00 dollars for my work... so, if I charged double that would be Zero Squared!!!   Imagine what I could do with all that MONEY!!  hehehheehe  :)

All Joking aside, I am really glad you like it, and hopefully it has/will help you!!

Happy Thanksgiving!

Scott

fun times
Scott,

Sorry for the delay in sending this but I only just got power/cable/internet back after a storm.

I truly appreciate your efforts in this.  It will prove very valuable in getting me going towards understanding mcLUA and writing my own scripts.  Without it, I would have no idea of what functions have been included in Mach 4.

Peter

Offline BR549

*
  •  6,965 6,965
    • View Profile
Thanks as well Scott,

(;-) TP

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Thank you guys for the feedback!!
fun times

Offline rcaffin

*
  •  1,054 1,054
    • View Profile
OK, teeth pulled.

If I read this right, then we now have both a.b format AND c,d format?
I am sure I am getting too old for all this!

Cheers
Roger

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
well kinda both...

the first part of the commands is the dot notation part, and the comma delimited stuff is where your parameters are for that command.

You will see for the dot stuff like (there may be anywhere from 0 to more params
depending on what the call is doing):

mc.mcCcccccccc(p1, p2) for example for "Mach Core" commands/functions.
and
scr.***************************x("p1", "p2") for example for "Screen" commands/functions.

Scott
fun times

Offline rcaffin

*
  •  1,054 1,054
    • View Profile
I was thinking more in terms of the first part of
hsig, rc = mc.mcSignalGetHandle(inst, mc.OSIG_ENABLE##);
from Down&Dirty

Of course, since I am not (yet) using lua, it may well be that i have entirely misunderstood what this means.

Cheers
Roger

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
oh, lua can return MORE than one value.
fun times