+ Reply to Thread
Results 1 to 10 of 10

Thread: lua being used

  1. #1
    Rift Chaser
    Join Date
    Oct 2011
    Posts
    312

    Default lua being used

    i returned after 3 years. in rl, i am a programmer. is lua still being used. if yes, what version of lua? if no, what computer language is being used?

  2. #2
    Champion
    Join Date
    Jun 2011
    Posts
    561

    Default

    Yes lua is still used and it's version 4.0 AFAIK.

    Cheers
    N.

  3. #3
    Rift Chaser
    Join Date
    Oct 2011
    Posts
    312

    Default

    thank you.

  4. #4
    General of Telara
    Join Date
    Mar 2014
    Posts
    966

    Default

    /script print(_VERSION)
    =>
    [/script] Lua 5.1

    Actually, it is LuaJit, exact version unknown though, but it has a couple of extensions, including a few selected Lua 5.2 features.
    Dimension Addon 'Tinker Tools' is now available on Curse!
    Or grab the latest development code on GitHub.

  5. #5
    Rift Chaser
    Join Date
    Oct 2011
    Posts
    312

    Default

    if i download 5.2 lua editor/compiler, use 5.1 syntax or rift add-on kits/libraries, would it be safe and compatible?
    Last edited by riftloreseeker; 07-07-2016 at 11:25 AM.

  6. #6
    General of Telara
    Join Date
    Mar 2014
    Posts
    966

    Default

    You typically don't compile Lua manually, Rift (or rather the embedded LuaJIT) will do that automatically, so all you need is a text editor of your choice. (I like SciTE for example...)

    From what I found Rift won't accept pre-compiled bytecode for security reasons anyway, so there's no point discussing bytecode compatibility between various Lua implementations.
    Dimension Addon 'Tinker Tools' is now available on Curse!
    Or grab the latest development code on GitHub.

  7. #7
    Rift Chaser
    Join Date
    Oct 2011
    Posts
    312

    Default

    Quote Originally Posted by Lynx3d View Post
    You typically don't compile Lua manually, Rift (or rather the embedded LuaJIT) will do that automatically, so all you need is a text editor of your choice. (I like SciTE for example...)

    From what I found Rift won't accept pre-compiled bytecode for security reasons anyway, so there's no point discussing bytecode compatibility between various Lua implementations.
    i forgot lua is a scripting interpreted language. you are right. i will download luajit.

  8. #8
    Rift Chaser
    Join Date
    Oct 2011
    Posts
    312

    Default

    how do you link luajit to the scite editor? or do i create a separate makefile cmd line? in scite, there are no options for library, interpreter folder properties or parameters.

  9. #9
    General of Telara
    Join Date
    Mar 2014
    Posts
    966

    Default

    Well I normally don't run any code outside of Rift because most code relies on the addon API, so it won't run otherwise anyway. And those few snippest I want to test outside I just use a console window, often directly in the interactive interpreter.

    SciTE is not really meant to be an IDE either, though you can specify the command to run for the compile/build/go commands in your property files. If you open the lua.properties (from the Options menu) you'll find a line
    Code:
    command.go.*.lua=lua5.1 "$(FileNameExt)"
    There are 4 "levels" of property files, from global over user, directory to local, each overriding the previous level. So you can pretty much have completely separate configurations for each file location. You can for example put custom command.go.*.lua etc. lines in SciTEDirectory.properties in the root directory of your project and it'll use that. But I only use it for formatting options (text encoding, indentation settings etc.)
    Dimension Addon 'Tinker Tools' is now available on Curse!
    Or grab the latest development code on GitHub.

  10. #10
    Rift Chaser
    Join Date
    Oct 2011
    Posts
    312

    Default

    thanks. i will try it.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts