Questions tagged [opencomputers]

OpenComputers is a Minecraft mod that adds computers and robots into the game that can be programmed in Lua 5.2.

Resources:

17 questions
0
votes
4 answers

Lua access indeces from table generated from JSON

So, I am bound to use Lua for getting weather data from the Openweathermap API. I managed to send a http request to return and store all data but now I am stuck with a Lua table I don't know how work with. I am very new to Lua and I didn't find any…
Xore
  • 11
  • 1
  • 5
0
votes
1 answer

Lua table keys changes in function return

It seems when I return a table from a function I lose they keys. Not sure if this is how Lua should be functioning. For example function main() local someTable = {} someTable["foo"] = "bar" print(someTable["foo"]) return…
Sean O'Rourke
  • 182
  • 1
  • 2
  • 11
1
2