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


  1. A

    Lua ignoring float type

    Hello, I´m calling a function in lua to get some data via ubus. I need to show this info in a web. The table this method returns is the following. The problem is lua is just getting some of the data, not all. I can´t get the float values. When I iterate the table c_r, c_s, c_t and soc don´t...
  2. I

    Getting a script parsing error but have my ends for {

    I am getting these two errors when running a script. One is in the config and one is in my main.lua in my server. I dont see where I am missing an end in either of these. See below. [ script:ic_pawnshop] Error parsing script @ic_pawnshop/server/main.lua in resource ic_pawnshop...
  3. 2

    Lua + Blockchain

    Any cool blockchain projects that uses Lua out there? I know Bitcoin has its own assembly-like script system (without loops etc.) because it's so critical. But I imagine other, less critical projects could use Lua, especially since many blockchain projects are written in C++. @Egor...
  4. AdrifBC

    scan creations and result comparison

    Hello ! can you ask the question the problem that I was asked is to be able to create a backup file, (list, table) to then be able to compare and target the changes made (participants who no longer respond to a Ping for the example and the address would be highlighted) I have to make a...
  5. adamstc222

    Help with adding a button

    Hello I need help adding a button to my game I just want it to be a button that shows instructions for my game when it is pressed please can someone help. Here is my code: --displays title screen local titleBg local playBtn local creditsBtn local titleView --Author: Adam St Clair --App...
  6. 2

    Embedding Lua in C/C++

    I'm following @stetre's amazing guide (link to guide) on how to embed Lua in C/C++ Lua version: 5.3 Operating system: Ubuntu 20.04 LTS These are the additional steps I had to take to get it to work: Note: I'm a complete beginner, and it may be obvious to more experienced Lua developers, but...
  7. Sina Dehghani

    Windows How can I make a drm in the Lua?

    Hello! I am newbie ... So forgive me for my questions Please and Please and Please Help me: How can I make a drm in the Autoplay Media Studio software? DRM is a special player for playing a movie in my own format, which I have to create a solution for encryption with a special format and a...
  8. T

    Function return value is coming out of a subfunction

    I am not quite sure whether the thread title fits perfectly, but I am not entirely sure how else I could call it. local meta = FindMetaTable("Player") function meta:GetCharacterTable() if not self:IsPlayer() then return {} end local q = db:query("SELECT * FROM sid_" ...
  9. G

    Programming In Lua Book

    Hi, i just bought the fourth edition of Programming in Lua, i saw that there are exercices in it. I didn't find any correction for them. Is there any somewhere?
  10. 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...
  11. dinsdale247

    Announcing WinLua Toolchain Installer - Release 2012a

    Good news everyone! WinLua Toolchain 2012a is ready. WinLua Toolchain is now ready for general distribution. Winlua is a Windows development environment dedicated to Lua and C (and begrudgingly C++). WinLua Toolchain provides a (nearly) complete development environment in a windows MSI...
  12. CoolBuys1290

    Need Help with Chat Toggle in Open Tibia Client.

    I need to know the lua modification to toggle chat with enter key after clicking the wasd checkbox in Open Tibia Client. Using client 7.72. Please help, Thanks, CoolBuys1290
  13. dinsdale247

    Lua, Sol 3 and C++ (Oh, My!): Part Deux - We Like Our Toes.

    Lua, Sol 3 and C++ (Oh, My!): Part Deux - We Like Our Toes. Welcome Back Kids Wow, you came back! Maybe you really do want to learn to use Lua with C++? If you managed to stick through the first part of my series on using Sol 3 then you just might have the pain threshold that suites true C++...
  14. 2

    Lua 'end' syntax

    Is there any way to make the Lua end syntax more similar to Ada's end syntax? e.g.: end if, end loop, end Function_Name I'm currently using comments to emulate the Ada syntax, e.g.: function Get_Max (A, B) if (A > B) then return A; else return B; end -- if end -- Get_Max...
  15. Simon

    Lua vs. JavaScript

    How does Lua compare to other scripting languages such as JavaScript? When would you use one over the other?
  16. 9

    How to use LUA as a script for NPC In c++ game

    Hello, I was reading a lot on the internet but I am still looking for an answer, I dont expect a solution from you, just a simple answers or a books, online tutorials which will help me to solve that problem. Well I am coding a game for fun in c++, SFML, where I load entities like NPC, tiles...
  17. S

    Windows How to open Lua files on text editor using windows 10

    Hello i want open a lua file using text editor but i cant i have already used most of the editors but it wont let me please help me thanks
  18. D

    how is lua mixed with c++

    im 16 years old and have been learning lua the last 2 months 🙃
  19. D

    Windows How to install Lua on Windows?

    I'm new to the Lua programming language. How to install Lua on Windows? I've searched for videos but no luck.
  20. damian

    Roblox How to use RemoteEvents in Roblox Studio

    In this tutorial, I will go over: How to detect when a user clicks a part using ClickDetector How to send a request through RemoteEvent How to read the request inside of another script Please comment if I missed anything, and without further ado, let's begin...