New to LUA Programming

Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
<div class="IPBDescription">Looking for tools and tutorials</div>Hi Guys,

New to LUA, although I have experience of other programming languages, including C++, C#, Python and Visual Basic.

I'm looking for information specifically on LUA coding for NS2 - What version of LUA is used for NS2? Where can I find some tutorials on that particular version on LUA, set-up guides and general language syntax etc?

I've got an idea for a simple mod that will work with the tools released so far, just need to get into this LUA stuff pretty quickly :D

From the code samples I have seen on the forum, it seems a relatively straight forward language, I guess the proof will be in the eating :D

Thanks in advance for your assistance guys :D

Comments

  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    Sorry guys, opened my eyes and found the info :D Can this be deleted?
  • SgtBarlowSgtBarlow Level Designer Join Date: 2003-11-13 Member: 22749Members, NS2 Developer
    No, I am afraid you will have to put up with all the pointing a laughting :P
  • Dalin SeivewrightDalin Seivewright 0x0000221E Join Date: 2007-10-20 Member: 62685Members, Constellation
    *points*
    *laughs*
    *passes on good luck*
  • KalabalanaKalabalana Join Date: 2003-11-14 Member: 22859Members
  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    Thanks for all the support guys :D

    Seems I may have been a bit premature. NS2 doesn't run on Intel IG, so I need to get myself a new machine as soon as, sold my old one when I moved to Amsterdam.

    Laptops are useful, but not for everything it seems.. :D
  • Dalin SeivewrightDalin Seivewright 0x0000221E Join Date: 2007-10-20 Member: 62685Members, Constellation
    Well Lua runs on pretty much any CPU, AFAIK (from what I can remember it does support little and big endianess at any rate, if that means anything to you ;) ) but you can definitely learn Lua without having NS2 around. NS2 does make a few modifications to Lua, like adding in some class support (which is really just shortcuts to making tables, I think) and adding the NS2 libraries which are just static calls to C/C++ code.

    The core Lua is still there and can be learned easily with just a <a href="http://www.lua.org/download.html" target="_blank">stand-alone interpreter.</a> If you're running Windows, Lua for Windows comes with a lot of other useful libraries and, AFAIK, does install itself into the system so the "lua" command in the command prompt redirects to its exe.
  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    Thanks Dalin, I am going to have a go at the LUA code as is, but was really hoping to get a little playable mod out before the alpha, and that now will depend on me getting a new system in time....

    Nothing like setting myself deadlines I'm going to struggle to hit :D
Sign In or Register to comment.