User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 15 of 15

Thread: Is LUA good for user scripting in games?

  1. #11
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Is LUA good for user scripting in games?

    Quote Originally Posted by Mokhtar
    After all how tough would it be to read "then" from the user and replace it with "{" internally?
    Please don't do that.

  2. #12
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is LUA good for user scripting in games?

    if you really wanted to limit syntax usage you would have to dig into provided scripts with lpeg or something, which would involve implementing some or all of lua's grammar, then throw an error if it finds a match... this might not even catch everything, though

    it's fairly easy to sandbox user scripts in lua (but the way you do it will change in 5.2), but this still means you have to pay attention so you don't accidentally expose the global environment through a library function or something

    but yes, as already mentioned, a fair amount of "security holes" when it comes to sandboxing are in the form of functions which you can either nil out, or if you are using a sandbox, not provide

    i believe line-by-line debugging would be possible through the debug.sethook() function (and other debug.* ones)... but last i tried using that function in xlua it didn't work

  3. #13
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is LUA good for user scripting in games?

    XLua uses hooks for backtrace reporting, so maybe you'll have to turn that off first? XLua also provides an alternative hard sandbox that exists in a separate state, although it may not be the best choice.

  4. #14
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,537
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Is LUA good for user scripting in games?

    Quote Originally Posted by Retriever2
    Second, people tell you Lua will do what you want because it will, or it will be very close within reason. Some of the things you are requesting are not reasonable and you will not see anyone implement them. Debugging, stepping, no one is going to link a full C debugger and compiler into an extension.
    My best advise to anyone who really wants a debugger or a text editor is to either use an external one that allows it, or make one yourself. Its a fair project to take up

  5. #15
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is LUA good for user scripting in games?

    Quote Originally Posted by Retriever2
    XLua uses hooks for backtrace reporting, so maybe you'll have to turn that off first?
    doesn't seem to work either

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Where is a good place to get good sounds?
    By delta9857 in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 25th November 2010, 12:34 AM
  2. MMF and Scripting
    By Pkeod in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 8th May 2008, 04:23 PM

Posting Permissions

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