Is there something like an player metadata ?

Sires
Member
 
Posts: 30
Joined: Mon Jan 02, 2017 21:00
In-game: Sires

Is there something like an player metadata ?

by Sires » Mon Jan 09, 2017 17:24

Every time I have ideas about mods that needs to store information in the player, but I don't know how to save data in the player, is there any metadata of the player, or I need to save all the informations about the player in node metadatas ?
AY havy gud modys: Obdy, Codeblocks
Workingi ohn: EnergyFlow
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Is there something like an player metadata ?

by rubenwardy » Mon Jan 09, 2017 17:54

Player meta data does not currently exist, although it's hopefully going to soon

You should save player metadata into a new file in the world using io.open and minetest.serialize
 

hajo
Member
 
Posts: 262
Joined: Thu Oct 13, 2016 10:45

Re: Is there something like an player metadata ?

by hajo » Mon Jan 09, 2017 18:57

Sires wrote:I have ideas about mods that needs to store information in the player,
but I don't know how to save data in the player

To store infos, you could use items, like books/signs/chests.
Some of 'my' wiki-pages: Build-a-home - basic-robot - basic-machines - digtron
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron