Hi, I’m new to using programming languages, so please excuse my ignorance here, but how do you return the player’s starting location in a string format using LUA?
I’m using dofile in my json mapgen to load a LUA script at the end.
Right now when I use
local ps = player.start_location
and then write the value of ps to a log file, I end up with
userdata: 0x559bf5658358
I assume I am not formatting or calling the data properly to see a value in human readable format. My other thought is that there is currently no way of getting this data without adding to the LUA class definitions.
Any help would be greatly appreciated!