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...
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...
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...
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...
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.
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...
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...
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...
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...