Jump to content




Output


  • You cannot reply to this topic
2 replies to this topic

#1 PixelFox

  • Members
  • 106 posts

Posted 08 February 2016 - 10:26 PM

I'm currently working on a tileset creator with CCLights2, and I'm attempting to write the output to a file, like:
{
{255, 0, 0}, {141, 250, 153}, {193, 144, 0},
{0, 0, 0}, {144, 144, 0}, {193, 153, 142}, ...
}

The Y axis is each line
And the X axis is each position on the Y.
ex. {193, 153, 142}: y=2, x=3

But instead it's outputting

{
[1] = {
[1] = {255, 0, 0},
[2] = {141, 250, 153},
[3] = {193, 144, 0},
}
[2] = ....
}

Is there a way I could write it to a file in the way I intended?

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 08 February 2016 - 10:40 PM

Sure. Use an updated copy of CC, back port the updated serialize function, or write your own serializer.

#3 PixelFox

  • Members
  • 106 posts

Posted 08 February 2016 - 10:40 PM

Ah! Thank you :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users