Category "lua"

replace number after word

I have a big file with the word engineHealth":1000.0 I want to change the number after engineHealth":

"memory allocation error: block too big" doing simple integer division

I have a weird issue. LUA 5.3.5, compiled on STM32F429. Free RAM is about 1Mb (memory allocation is using external SDRAM, not the more limited internal RAM on

'end' expected near '<eof>' for map import for lua file

Error Syntax error: main.lua:8: 'end' expected (to close 'function' at line 5) near '<eof>' Traceback [love "callbacks.lua"]:228: in function 'handler' [

Garry's Mod: How to send a DLL?

Garry's Mod provides a C++ API to create server-side and client-side DLLs. As it is said in the article "Creating Binary Modules", they must be placed in the "g

i can't run a lua game in love2D

When I try to run the game, I receive this error: Error [love "boot.lua"]:323: Cannot load game at path 'C:/Users/LENOVO/Desktop/LUA-Projects- master/projects

How do i copy an array from a lua file

I Want to copy an array from a text file and make another array equal it so local mapData = { grass = { cam = "hud", x = 171, image

LUA - How can you generate an array of numbered variables?

I'm sorry if my question is stupid, I'm not a programmer, but I'd really like to write a tool to help me generate color gradients. Until now I've had this huge

On Roblox I'm trying to make it so that when you use a proximity prompt a image label becomes visible and stays visible even when you rejoin

local proximity = workspace.Cardpack.ProximityPrompt --GUI.Enabled = true local proximityPromptService = game.GetService("ProximityPromptService") proximity.Tr

NodeMCU net server listen gives error out of memory in lua (esplorer)

I have one error here that I don't know how to solve and didn't find a working solution on the Internet. I have a NodeMCU 12 E. and I want to transfer data from

When are functions assigned to a variable actually computed?

I'm doing some troubleshooting on a Lua function I wrote yesterday as part of a game development effort using the Love2D API. The function is designed to handl

How to change the HTML rendering of a Pandoc element?

I'm trying to customize the default HTML output of footnotes from an .odt file. For example a file with a footnote like this: Some text with a footnote1 Will

Why does the powerup not draw to the screen?

I've been making a breakout game recently and I've come upon a problem. So, I made a powerup function to randomly draw powerups to the screen. However when I ru

Love2d countdown and stopwatch

As the title suggests I want to create a love2d countdown as well as a stop watch. I previously tried doing this as follows: Countdown: function love.load()

Logitech lua reliable Sleep

Introduction I am writing a lua script for my logitech mouse. The logitech lua api has this documentation. My script moves the mouse every x milliseconds to dra

Lua Obfuscation - How would you make a lua string look like C++ compiled code

I was wondering, how would I make a simple lua string or entire code look look C++ compiled code but run as regular vanilla lua? print("Test string") -- How wou

Scroll the full js webpage using lua script to get the full source code

I want to scroll and get the full webpage source code using lua script. as example (http://note.com/ ) I want to scroll this full website to get the full source

Why does calling lua_newuserdata result in SIGSEGV Segmentation Fault?

I'm trying to identify why a call to lua_newuserdata result in SIGSEGV. The gdb backtrace is : Thread 2 "main.o" received signal SIGSEGV, Segmentation fault. [S

neovim init.lua module "lua.plguins" not found

I'm in the configuration neovim I added the configuration file in C:\Users\wupan\AppData\Local\nvim\init.lua require("lua.plugins") and C:\Users\wupan\AppData\

Love2d "bad argument #2 to 'draw' (Quad expected, got nil)"

I am currently trying to make a flappy bird copy and I am having trouble when attempting to spawn in pipes (when a pipe should spawn I get the following error:

Fix warp in recaster (lua)

function RENDER_RAY(plr,rayNumber,Ray_Distance,RayAmount,rayAngle) local theta = plr.angle - FOV/2 local diss = Ray_Distance * math.cos(math.rad(theta -