The Daily Click ::. Forums ::. Klik Coding Help ::. Lua w/ MMF2
 

Post Reply  Post Oekaki 
 

Posted By Message

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
27th November, 2008 at 14:57:15 -

I'd like to give lua a try with MMF2 but i have no idea where to start. Yeah i can learn the language but i'd like to know how it's implemented into MMF2. Any help i'd be gratefull.
Like examples/artical/link.

Thanks!

 
dont make me divide by zero...

NeoMonkey

Finnish Army Fire Commander

Registered
  01/12/2006
Points
  243

VIP Member360 OwnerI am an April FoolPS3 Owner
27th November, 2008 at 15:53:57 -

Umm best way is to go into clickteams search page and try from there.

Edited by NeoMonkey

 
I have proven new mathematic formula to be true...

2D > 3D

Image


aphant



Registered
  18/05/2008
Points
  1242
27th November, 2008 at 18:24:58 -

There is an extension for it, called the LUA Object. I don't remember where though.

 

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
27th November, 2008 at 18:35:39 -

Here's the Lua Object link. This site is great for finding extensions.
http://ext.neatwares.ath.cx/ext/Lua_Object

 
n/a

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
27th November, 2008 at 22:03:27 -

Hmm... gonna sound noob infested but, i'm actualy have difficulty MMF2 side of things. MMF isnt reacting to the functions...

Edited by Zephni

 
dont make me divide by zero...

NeoMonkey

Finnish Army Fire Commander

Registered
  01/12/2006
Points
  243

VIP Member360 OwnerI am an April FoolPS3 Owner
28th November, 2008 at 00:43:06 -

I was curious to see how lua works, but well hehe I didn't. So there is no examples about lua in net. So mayby the best way is to read the help, which is on about section, when you press lua/lua++ object.

I looked it fast and I have never been interested in lua and basicly watched it at the first time. But as for fast look I would say it works like this:


Start of frame:
-Call function "<lua func1>" with "param1" return 1

On function "<lua func1>":
-Set counter to 1
-Return "<lua func1>"



Then the code ends and you have counter increased to 1, and you have returned value of 1. Ok I'm not 100% sure if this works, but the help file says something like this. So lua basicly works like fastloop or something. Only thing I still need is to code lua .

 
I have proven new mathematic formula to be true...

2D > 3D

Image


X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
28th November, 2008 at 09:56:41 -

There's a Lua command named DoCall(string) which allows you to send information back to MMF2.

 
a/n

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
28th November, 2008 at 14:17:24 -

Yeah it was the DoCall("name",param1,ect) That i messed up on. I didnt think the script had to call itself i thought it just wen line by line.

Oh well, iv'e figured it now, and i think if used in the right way it could be very powerfull! I'm most probly gonna make a tutorial now.

cheers guys!

 
dont make me divide by zero...
   

Post Reply



 



Advertisement

Worth A Click