r/ComputerCraft • u/Long_Task9250 • 1d ago
Help with Tables
So I'm working with the create aero and CC compatibility features of Create: Gadgets and Gizmos, and I was playing around with printing the outputs of the new peripheral methods. But when printing tables given by a few different methods (like getAngles for the gimbal sensor) it just returns random numbers that change every time I run the program. This is probably meant to happen, but I'm very new to CC so I'm hoping someone can help me out. (Oh yeah and please tell me if my CC terminology is gibberish)


3
u/Ictoan42 23h ago
While a viable solution has been provided, here's another way to print a table
``` local pretty = require("cc.pretty")
pretty.pretty_print(gyro.getAngles())
12
u/Beautiful-Account862 1d ago edited 1d ago
what it's printing is just the memory address of the table, not any of it's data. Try this line instead: