• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Search results

  1. S

    Moderating posts due to spam

    The forum is receiving about 5 new spam accounts and threads each day. Therefore, I've decided to moderate all new threads/replies, until someone volunteers as a moderator. If you'd like to volunteer, please reply to this thread. As a moderator, you'll be responsible to keep the forum safe and...
  2. S

    using global Variable in IF-THEN

    There is no loop in the code you posted. You need to declare x = 0 outside of the loop.
  3. S

    Server migration

    Sorry for the downtime: the database crashed (no data was lost).
  4. S

    Server migration

    LuaForum.com has migrated from Godaddy to Amazon AWS. [x] migrate to aws [x] httpd -> nginx [x] https/tls [ ] email setup
  5. S

    Lua compiler

    How to install Lua on Windows
  6. S

    Lua compiler

    If you have Lua installed on your system, just run lua yourfile.lua in your terminal (or cmd).
  7. S

    Thread Rules

    I. Titles A title should describe the contents of a thread. A good rule of thumb is to write titles similar to what you would search for on Google. Bad title examples: “help please”, “I need help”, “problem”, “few questions”, “error”, etc. Good title example: “Is there a Lua function for...
  8. S

    G-Series API V8.45

    The Logitech G-Series uses Lua as its macro language. The API explains the following Lua functions: OnEvent GetMKeyState SetMKeyState Sleep OutputLogMessage GetRunningTime GetDate ClearLog PressKey ReleaseKey PressAndReleaseKey IsModifierPressed PressMouseButton ReleaseMouseButton...
  9. S

    Benefits of use Lua?

    The main benefit of using Lua is that you do not have to recompile large C++ projects. You can make changes, reload Lua scripts, and see its effect, while your C++ program is running. Lua scripts do not usually implement core/critical functionality, but is rather used for addon/extension...
  10. S

    Introduce Yourself

    Hey everyone, I've taken an idea from the Nginx forum to make Lua Forum more fun! New (and old) members can introduce themselves and their Lua experience in Member Chit Chat -> Introduce yourself
  11. S

    how to use goto or continue on LUA?

    You're just missing the end keyword after the last goto continue
  12. S

    Official Lua Forum GitHub

    I like the PGP idea. What use cases do you see there? I have some ideas, but I want to hear yours.
  13. S

    Official Lua Forum GitHub

    There's now an official Lua Forum GitHub account! Any ideas on what we can build together? GitHub link: github.com/luaforum
  14. S

    [WIP] Restia: My dumb attempt at a web framework

    In readme.md Section: Building the Documentation: ldoc link https://github.com/DarkWiiPlayer/restia/blob/master/ldoc returns 404 not found, try in incognito mode Section: Contributing: ldoc link lunarmodules/LDoc, has a syntax error (comma at the end)
  15. S

    [WIP] Restia: My dumb attempt at a web framework

    Nice. Btw, the ldoc link in the readme is broken. If the target audience is "Ruby users", then make the transition as easy as possible for them.
  16. S

    Reliability in production

    Hi all :) I received this email from the CEO of a company: I've found that openresty lua is very good for MVP and prototyping, but can not be safely used in production. Particularly, socket connections to mysql and redis are dying silently on a high load condition. You connect, check that the...
  17. S

    Function luaDoTradeOrbs(cid, target, points) 0.4 -> 1.3

    The addRef method in TFS 0.4 is just incrementing a reference counter. The TFS 1.3 equivalent is incrementReferenceCounter(). If you look here you can see that TFS 0.4 player class has a transferContainer member, this does not exist in TFS 1.3 Btw, you still have the double semicolon syntax...
  18. S

    Function luaDoTradeOrbs(cid, target, points) 0.4 -> 1.3

    What errors are you getting? Try to replace: getEnv() with getScriptEnv() getPlayerByUID() with getPlayerByID() Take a look at luacript.h and luascript.cpp to see what functions are available in TFS 1.3
  19. S

    Forum For LuaRocks Authors

    We're honored to have you here Hisham :)
  20. S

    Function luaDoTradeOrbs(cid, target, points) 0.4 -> 1.3

    There is a syntax error in your code, the following line has a double semicolon: Item* Orb = new Item(7722);;