Lua export: how to export map custom properties exactly as they are written? (not as "strings")

Hi,
I use lua export for my game and I would need to embed a lua table as a map property.

example_prop = { {“N”,1},{“W”,5},{“E”,4},{“S”,9} }

Is there a way to export the property value as it is written above, and not as a string (which also includes escape characters)?

thank you

No, this is not possible at the moment. It would basically require nested properties, both array and object types, which could then be translated like that in the Lua export.

For now, if you just write the Lua code in your property value, you can use load (5.3) or loadstring (5.1) to parse it on the Lua side.

1 Like

Thank you :slight_smile: