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

lua

  1. 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...
  2. 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...
  3. 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...
  4. 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_" ...
  5. 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?
  6. M

    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...
  7. 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...
  8. 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
  9. 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++...
  10. 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...
  11. Simon

    Lua vs. JavaScript

    How does Lua compare to other scripting languages such as JavaScript? When would you use one over the other?
  12. 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...
  13. 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
  14. D

    how is lua mixed with c++

    im 16 years old and have been learning lua the last 2 months 🙃
  15. 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.
  16. 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...
Top