Page 1 of 1

how to store meta_data in a player?

PostPosted: Fri May 13, 2016 20:47
by cesarpachon
I want to store some status (coin counter) per player. my first attempt was player:getpos followed by minetest.get_meta, but that seems to be stored the info at the current player position, not in the player itself.

is possible to store meta data in a player? if not, what is the suggested approach?

Re: how to store meta_data in a player?

PostPosted: Fri May 13, 2016 20:56
by burli

Re: how to store meta_data in a player?

PostPosted: Fri May 13, 2016 21:13
by cesarpachon
thks, looks like the right approach is to use text files. I already had tried that but with a fixed filename, and then I thought it was bad because the file is unique for all players. the solutions I see in your posts uses files, but with the player name as name of the file. clever.