Time |
Nick |
Message |
04:24 |
|
kaeza joined #minetest-mods |
07:01 |
|
restcoser joined #minetest-mods |
08:07 |
|
Ritchie joined #minetest-mods |
09:03 |
|
madAzliP joined #minetest-mods |
12:57 |
|
Wuzzy joined #minetest-mods |
16:24 |
|
diemartin joined #minetest-mods |
16:26 |
|
fraang joined #minetest-mods |
16:32 |
fraang |
hi! i am currently exploring the modding possibilities in minetest and am trying to store player infos like attributes or skills |
16:32 |
fraang |
but i am not sure how to do that properly. any suggestions? |
16:37 |
kaeza |
fraang, the regular approach is to have a table in Lua indexed by player name |
16:38 |
kaeza |
and (de)serialize to/from disk as needed |
16:38 |
kaeza |
depending on your needs, detached inventories may also be used |
16:39 |
CiaranG |
fraang: simple example - https://gitlab.com/CiaranG/health/blob/master/playerattribs.lua |
16:43 |
fraang |
thx |
16:43 |
fraang |
i will take a look at it |
16:47 |
|
restcoser joined #minetest-mods |
18:10 |
|
madAzliP joined #minetest-mods |
22:40 |
|
Wuzzy2 joined #minetest-mods |
23:33 |
|
Exio4 joined #minetest-mods |
23:33 |
|
kaeza joined #minetest-mods |