|
Hi, I have string data with the format as shown below: {{ ["vvector"]="(0, 1, 0)", ["uvector"]="(1, 0, 0)", ["origin"]="(0, 0, 0)", }, } I need to convert this to a table but the order of the data must stay the same. Using the following code: local gentables = loadstring("return "..s) local tables = assert(gentables)() generates a table as shown below: [1][+] [origin] (0, 0, 0) [uvector] (1, 0, 0) [vvector] (0, 1, 0) Any quick solution for me? Regards Hendrik |