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

Search results

  1. S

    Lua compiler

    How to install Lua on Windows
  2. S

    Lua compiler

    If you have Lua installed on your system, just run lua yourfile.lua in your terminal (or cmd). Btw, if anyone's interested in creating an online Lua text editor + interpreter for this forum, please message me. There's already a Lua VM written in JS.
  3. 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...
  4. 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...
  5. 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...
  6. S

    Introduce Yourself

    Hi fellow Lua-enthusiasts, 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 As you all know, Lua is used in many different niches and I think it'll be...
  7. S

    how to use goto or continue on LUA?

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

    Official Lua Forum GitHub

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

    Official Lua Forum GitHub

    There's now an official Lua Forum GitHub account! Any ideas on what we can build together? I'll add your ideas to this list continuously: online Lua interpreter/playground (e.g. JSFiddle,) with an option to import the most popular rocks and frameworks (using Fengari) GUI for LuaRocks...
  10. S

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

    Referring to 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)
  11. S

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

    I haven't had time to try it out yet, but I really like that it looks well thought out and organized. Btw, the ldoc link in the readme is broken. To your questions: I think an answer to the first question "What direction should I take this in?" implicitly answers the next two questions. In my...
  12. 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...
  13. 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...
  14. 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
  15. S

    Forum For LuaRocks Authors

    We're honored to have you here Hisham :)
  16. 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);;
  17. S

    need help please (WoW TBC delay/timer)

    I'm not familiar with WoW TBC, but I think you can use C_Timer.After(duration, callback). It executes a function after a set amount of seconds.
  18. S

    need help please (WoW TBC delay/timer)

    You have a higher chance of getting help if you copy-paste your current script here.
  19. S

    How to add code to posts

    :LOL: It's fixed now. Thank you! Edit: the plugin I had to use to get Lua as the default language had a bug in it so I had to disable it.
  20. S

    Windows How to install Lua on Windows?

    Install Lua on Windows 10 (build from sources) This tutorial shows you how to build and install Lua on Windows 10 from sources. The tutorial is not meant for complete beginners. Download and install TDM-GCC Go to the downloads section or download TDM64-GCC-9.2.0.exe Run the executable Select...
Top