Questions tagged as 'lua'

1
answer

What does "introspection at runtime" mean?

Looking for information about a Lua graphical toolkit, I found an explanation of lgi (GTK) that had one great advantage: "... because it was written in C and with introspection capability at runtime, which facilitates The creation of bindings fo...
asked by 13.07.2014 / 23:10
2
answers

Get IP address LUA

I want to get the IP address through the LUA code. I have an example code that works but I get the IP of the LAN interface. local hote, _ = socket.dns.toip(socket.dns.gethostname()) How can I get the IP from another Wi-Fi interface? is it p...
asked by 29.06.2015 / 14:59
1
answer

Löve game does not work after compile

Recently, I created a game based on löve , which once finished and tested, I decided to try to compile. I followed the tutorial of the löve wiki build, using: copy /b love.exe+GhostShield.love GhostShield.exe It compiled normal...
asked by 19.03.2014 / 04:05
1
answer

How to apply / search for global / local transformations in OpenGL

I'm programming a simple Game Engine using the OpenGL graphics API. But I have a problem that I can not solve. The problem is that the transformations in the world (world) do not work correctly. The scale transformations are normal, but the...
asked by 20.04.2014 / 15:00
1
answer

LUA, Separate string with numbers in a table!

I have a system to retrieve codes, in case I would put something like this in a text file: HFGD65,{2454,2454},1,1 would be: CODE to redeem - string {items} - items within the table in numbers points - numbers days - number there I ope...
asked by 10.03.2017 / 14:33
2
answers

What's the difference between creating a string with quotation marks and brackets?

I always created the strings with the quotation marks, like this: local minhaString = "Eu sou uma string" I downloaded a source to give a studied language and I came across the following way to create a string : local query = [[ SELE...
asked by 20.12.2017 / 01:35
1
answer

Array size

How do I get the size of an array with this structure: A = { ["b"] = {c=1, d=2}, ["e"] = {f=1, g=2}, } I want to get the size of A, in this case, 2.     
asked by 21.09.2014 / 08:04
3
answers

Put information in field fields of a URL and send it to the server with a program language

It is possible, using a programming language, to access a web page with login and password data, to set login and password information and to "click" the submit button, and can enter the site with your credentials? After this you can browse t...
asked by 12.02.2014 / 19:26
1
answer

Send array by GET

I am sending% of a array in JavaScript to another page via a GET by calling the function. The problem is that sending is in string and not in array . I want to pass this array to the Lua language. This array contains values. Exam...
asked by 12.03.2015 / 17:07
1
answer

List three-dimensional table

I have a table that I want to print all its values. Example: local table_2 = { ["tabela1"] = "360Mhz", "demo", "teste", ["tabela2"] = "360Mhz", "demo", "teste" } for k,v in pairs(table_2) do print(k,v) end How can I print the 4...
asked by 20.08.2015 / 12:16