Time |
Nick |
Message |
00:04 |
|
paramat joined #minetest-hub |
00:49 |
rdococ |
Could I use minetest.create_detached_inventory to store inventories in items? |
00:49 |
rdococ |
Or is there a better way to do that now? |
00:51 |
rdococ |
In the past, I've just converted the inventory data to a string when you pick the node up, and then convert it back when you place the node down again. This requires you to place the item to access the inventory, though. |
00:52 |
rdococ |
In addition, do detached inventories persist between server restarts? |
00:57 |
benrob0329 |
paramat: what do you think of the idea of being able to scale the smooth lighting resolution to match the texture resolution? |
00:57 |
benrob0329 |
so that it feels like it's part of the texture, rather than slapped on top of it? |
01:07 |
rdococ |
that sounds cool |
01:46 |
|
Ruslan1 joined #minetest-hub |
02:00 |
|
paramat joined #minetest-hub |
02:47 |
|
Ganome317 joined #minetest-hub |
04:15 |
sofar |
rdococ: detached inventories are not stored across restarts |
05:33 |
|
cautiouspotato joined #minetest-hub |
05:36 |
|
ANAND joined #minetest-hub |
06:46 |
|
pyrollo joined #minetest-hub |
06:55 |
|
pyrollo joined #minetest-hub |
07:14 |
|
Gael-de-Sailly joined #minetest-hub |
10:36 |
rdococ |
sofar: how would I store inventories in items? |
10:49 |
IcyDiamond |
Metadata or modstorage |
10:50 |
IcyDiamond |
I have used metadata for storing items in items |
10:50 |
rdococ |
maybe I could have a detached inventory that updates item metadata? |
10:51 |
IcyDiamond |
Sure |
10:51 |
rdococ |
in the past, I had a node that stored inventory in its metadata and then converted it back when placed |
10:52 |
rdococ |
however, this time I want items that can be opened without having to place them |
10:53 |
rdococ |
alternatively, I could secretly load the mapblocks near the top of the world and place the nodes there automatically |
10:53 |
IcyDiamond |
Lol |
10:55 |
rdococ |
what do you think about a lisp-like language where lists and atoms are represented as items? |
11:25 |
rdococ |
Do item stacks have a unique identity? |
11:27 |
ANAND |
rdococ: Not really |
11:27 |
ANAND |
But that can be implemented using ItemStack metadata keys |
11:38 |
rdococ |
How would I tell when an item is deleted? |
11:39 |
rubenwardy |
you can't |
11:40 |
ANAND |
Probably iterate through all items in the inv. and see if an item with the unique ID exists? |
11:40 |
ANAND |
Possible, but not recommended |
11:40 |
rdococ |
the item with the inventory could be anywhere |
11:40 |
ANAND |
._. |
11:40 |
rdococ |
I'd have to effectively do my own garbage collection |
11:41 |
ANAND |
You're storing an inv. within an ItemStack? |
11:41 |
rdococ |
my plan is to store a unique ID within an itemstack, and then map that to inventory data |
11:41 |
rdococ |
the reason I don't store the inventory data in the itemstack itself is that the itemstack might move while you're looking at its inventory |
11:41 |
ANAND |
True |
11:42 |
ANAND |
What are you working on, if I may ask? :) |
11:43 |
rdococ |
for now, a way for items to have inventories :P |
11:44 |
ANAND |
Oookay.. cool :) |
11:50 |
rdococ |
new plan: each item will have both its inventory data and a unique ID. then, I can check if the item has moved and if it has, close the inventory |
11:57 |
|
CWz joined #minetest-hub |
11:57 |
|
aerozoic joined #minetest-hub |
12:03 |
|
Fixer joined #minetest-hub |
12:39 |
|
tenplus1 joined #minetest-hub |
12:39 |
tenplus1 |
hi folks :) |
13:19 |
* tenplus1 |
wonders if ShadowBot is away for lunch |
13:21 |
tenplus1 |
VanessaE: you around ? |
13:24 |
VanessaE |
no :P |
13:25 |
VanessaE |
what's up? |
13:25 |
tenplus1 |
lol, hiiiii |
13:25 |
tenplus1 |
you left a memo for me reg. BakedClay... but I kinda closed it by mistake... |
13:25 |
VanessaE |
oh heh |
13:26 |
VanessaE |
well that was just an "update your shit" comment :) |
13:26 |
tenplus1 |
ooh, you got an update for me ? |
13:26 |
VanessaE |
I don't, I was saying you should make it work with Unified Dyes, do like the coloredwood mod. |
13:27 |
tenplus1 |
ohhhh, wouldnt that mean using an lbm to replace a lot of baked clay blocks and stairs to use the new one ? |
13:27 |
VanessaE |
yup. |
13:27 |
|
ShadowNinja joined #minetest-hub |
13:27 |
VanessaE |
it'd be a pain the rump. :) |
13:27 |
tenplus1 |
that worries me... |
13:27 |
tenplus1 |
wb shadow |
13:28 |
tenplus1 |
will check out coloured wood mod and see if it's worth it :DD |
13:59 |
tenplus1 |
also xpanes glass would benefit from having unified dye support :) |
14:04 |
|
scr267 joined #minetest-hub |
14:04 |
tenplus1 |
wb scr267 |
14:04 |
scr267 |
ty tenplus1 |
15:09 |
tenplus1 |
laters o/ |
15:09 |
|
tenplus1 left #minetest-hub |
15:33 |
|
benrob0329 joined #minetest-hub |
15:50 |
|
_Xenon joined #minetest-hub |
16:03 |
|
calcul0n_ joined #minetest-hub |
17:22 |
|
FrostRanger joined #minetest-hub |
17:26 |
|
aerozoic joined #minetest-hub |
19:32 |
|
scr267_ joined #minetest-hub |
19:33 |
|
BuckarooBanzai7 joined #minetest-hub |
19:37 |
|
ShadowNinja joined #minetest-hub |
19:38 |
|
Diamound joined #minetest-hub |
19:39 |
|
aerozoic_ joined #minetest-hub |
19:43 |
|
Ganome317 joined #minetest-hub |
20:26 |
|
pyrollo joined #minetest-hub |
20:48 |
|
BakerPrime_ joined #minetest-hub |
20:49 |
|
VanessaE_ joined #minetest-hub |
20:49 |
|
VanessaE_ joined #minetest-hub |
20:54 |
|
BakerPrime joined #minetest-hub |
20:55 |
|
VanessaE joined #minetest-hub |
20:55 |
|
VanessaE joined #minetest-hub |
21:10 |
|
BuckarooBanzai joined #minetest-hub |
21:40 |
|
scr267 joined #minetest-hub |
21:56 |
|
Multi_ joined #minetest-hub |
22:30 |
|
Bobr joined #minetest-hub |
22:31 |
|
ShadowNinja joined #minetest-hub |
23:24 |
|
ANAND joined #minetest-hub |
23:48 |
|
SweetGirl19 joined #minetest-hub |