Hey everyone, I've spent the past 4 hours hammering away at this problem to no avail (Either I'm really bad at understanding the lua stack, or it's something else entirely)
Suppose I have an lua file structured like this
ID1 = {
name = "Description 1",
mod = 20
},
ID2 = {
name = "Description 2",
mod = -15
}
And now suppose I need to get this loaded into a structure I have.
And my question is, how do I do it? How can I iterate though all these tables dynamically and load these values in. I've tried using lua_next and other methods, but all they do is spit out access violation reading exceptions.
Edit: Whoops, wrong subforum. Could I have this moved to API?