Questions tagged as 'lua'

0
answers

change table to your call in. moon?

I have this table below tabela = { ["Maquina"] = { {name = "susu", level = 600}, {name = "camel", level = 600}, {name = "juju", level = 600}, }, ["bruno"] = { {name = "fada", level = 600}, {n...
asked by 25.09.2016 / 22:40
0
answers

Moon randomseed to function only within a body (of)

I've programmed Lua a long time, but I almost never had to work with math.randomseed , I researched and found nothing to report it, I did some testing and none worked as I expected. The math.randomseed function changes the seed valu...
asked by 27.07.2016 / 00:53
0
answers

as the moon (corona sdk) runs on android

I'm testing the corona sdk for android, and I'm finding it very good. Of course they are simple tests, but it ran pretty well on an old cell phone with android 2.3, and the same apk ran on android 6. Taking the load of the program as its e...
asked by 10.08.2016 / 17:51
4
answers

how to insert image into the database

What kind of variable do I use to store an image in the database? And is there a specific command for this? or just insert as any record? I have a project in the language lua (mobile by corona sdk) that the person has to take a photo and I ne...
asked by 24.05.2017 / 19:48
2
answers

Is there a way to use accents in strings in LUA?

I'm looking for a way to use accents in strings in the LUA language. I already tried to do this texto='Pão,está,cabeçalho,' But in the engine I'm using (the ROBLOX studio), the game only writes to the part that has an accent or other specia...
asked by 26.01.2017 / 01:04
2
answers

Position of "letter" in string

How can I get the position of a letter in a string. EX: a = "x x x" I would like to get the position of each x. I tried using the string.find, but it just picked up the first one.     
asked by 30.10.2014 / 11:31
1
answer

PHP stripos in LUA

I want to convert this PHP code into LUA language. The problem is that there is no stripos function that counts the first occurrence of the desired LUA word. How can I convert the code below? <?php echo stripos("I love php, I lo...
asked by 06.05.2015 / 18:37
2
answers

Do not run command line

Well, I'm doing a program with VCLua and I realized that after compiling, even with the graphical interface, it executes the mode command line, how do I prevent this? Running only the program. Compileri with SrLua. The program is basically thi...
asked by 01.11.2014 / 03:12
1
answer

Auto benchmarking with moon

A script in C or C ++ could write algorithms on Lua (by brute force , that is, test several possible combinations) based on a database with algorithm results. The idea is to arrive at the most efficient algorithm for a given goal, for exampl...
asked by 02.07.2014 / 00:27
2
answers

how do I make a table go showing tables

I wanted to do a function that does type alg as the thing below for i in pairs(v) do if type(v[i])=="table" then for j in pairs(v[i]) do if type(v[i][j])=="table" then print("...") else...
asked by 13.11.2016 / 20:08