Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render unknown Roblox datatypes in tables differently #4

Open
tacheometry opened this issue Aug 19, 2022 · 0 comments
Open

Render unknown Roblox datatypes in tables differently #4

tacheometry opened this issue Aug 19, 2022 · 0 comments

Comments

@tacheometry
Copy link

Right now, if I log a table with, say, a CFrame inside it, and make it print to the Roblox output, it renders like so:

Log.Info("Some table: {Value}", { myKey: new CFrame() });
[INFO] Some table: {"myKey":null}

The table output is okay. However, myKey's value is interpreted as null, and this makes reading this output pretty confusing! Could Roblox data types be interpreted like the below?

{"myKey":<CFrame>}

or maybe even with the CFrame's components? (I doubt people would really be interested in this method though.)

{"myKey":CFrame(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)}

The same thing happens with stuff like Instances - they get printed as null.

@roblox-aurora roblox-aurora deleted a comment from Tanshaohwee Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant