Questions tagged as 'lua'

1
answer

Dynamic Allocation and Pointers on the Moon

I would like to know how to do dynamic allocation and pointer of a structure in Lua, I have the following statement in C that I need to pass to Lua; typedef struct ilha { char name; struct ilha *prox1, *prox2, *prox3; } *Ilha; Ilha al...
asked by 10.11.2015 / 14:08
0
answers

Create PDF with 2 pages [closed]

I'm using this example: forums.mediabox.fr/wiki/tutoriaux/pao/construction_fichier_pdf for create a header for the pdf. The problem is that in my example I can only create a page, but I want 2 pages. I use this code in a separate file and incl...
asked by 20.08.2015 / 18:37
0
answers

How to set a background image in a WxFrame?

With the library wxLua , how do I use an image as the background of a WxFrame ? Using wxBitmap , the components that are over the image are not shown correctly.     
asked by 05.01.2015 / 04:15
1
answer

Timestamp without using os.time ()

How to convert a date and time to your timestamp, but not using os.time() in Lua? What expression to calculate? Is it possible? Example: data = "01/01/2015" hora = "10:00:00"     
asked by 14.05.2015 / 15:31
1
answer

Get "output" command Lua

I want to get the output of a lua command and store it in a string. EX: print (1) output- > 1 getOutput ("print (1)") I would like to store the returned value in a string, in this case, 1. Something like a debugger, it would execute the co...
asked by 21.11.2014 / 00:07
1
answer

When to use a scripting language? [closed]

When to use a script language and what is the ideal scenario for using it? I have read about script languages and thought about using them in my C / C ++ server project for one game, which leads me to another question: I know it depends a...
asked by 06.12.2016 / 23:41
1
answer

How to install the moon via terminal in ubuntu?

How to install the moon via terminal in ubuntu? When I try apt-get install lua is returned O pacote lua é um pacote virtual fornecido por: lua5.1 5.1.5-5ubuntu0.1 lua50 5.0.3-7 lua5.2 5.2.3-1     
asked by 08.12.2015 / 16:11
1
answer

Does moon have static and dynamic variables in the heap? [closed]

Does the storage binding (related to the lifetime of the variable) allow static variables? Allow dynamic heap variables?     
asked by 07.04.2018 / 23:03
1
answer

Where can I download the hump library? [closed]

In my American Stack Overflow account, I asked how I could make the game wait a certain number of seconds. One of the results was using hump.timer, for example: function love.load() timer=require "hump.timer" face=love.graphics.newImag...
asked by 16.12.2016 / 02:03
1
answer

Return data from .lua file in PHP in array form

I need to access some data stored in a .lua file in PHP. This is the content of the meu_arquivo.lua file: tbl = { [22004] = { unidentifiedDisplayName = "Sapato", unidentifiedResourceName = "»÷µé", u...
asked by 02.03.2018 / 21:56