Time |
Nick |
Message |
00:04 |
|
specing_ joined #minetest |
00:08 |
|
swift110 joined #minetest |
00:10 |
|
Gustavo6046 joined #minetest |
00:23 |
|
Gustavo6046 joined #minetest |
00:33 |
AntumDeluge |
"core.create_detached_inventory(inv_name, {})"; "core.get_inventory({type="detached", name=inv_Name})" = Client crash: "Unknown InventoryLocation type" |
00:34 |
AntumDeluge |
Oh, maybe I need to store it in a global: myinv = core.create_detached_inventory(inv_name, {}) |
00:37 |
AntumDeluge |
Nope, that didn't work. |
00:37 |
MTDiscord |
<entuland> you can get that reference but your get_inventory should have worked |
00:37 |
MTDiscord |
<entuland> the API clearly makes that example as you used it |
00:38 |
AntumDeluge |
The formspec line is: "list[" .. inv_name .. ";deposit;0.2,1.5;1,1;0]" |
00:39 |
MTDiscord |
<GreenXenith> detached requires a name |
00:39 |
MTDiscord |
<entuland> out of curiosity, why are you using core. instead of minetest.? |
00:39 |
AntumDeluge |
....because it doesn't take as long type. ;) |
00:39 |
AntumDeluge |
"core" is just an alias for "minetest". |
00:39 |
MTDiscord |
<GreenXenith> Oh wait you do have the name |
00:40 |
MTDiscord |
<entuland> uh, I thought it was deprecated or something to use it, ignore me ? |
00:41 |
MTDiscord |
<entuland> anyways, as far as my reading of the API goes, what you wrote above should have worked |
00:42 |
MTDiscord |
<entuland> uh... "inv_Name" vs "inv_name"? |
00:43 |
MTDiscord |
<entuland> is lua case sensitive? |
00:43 |
AntumDeluge |
That was just a typo, it's correct in the code. |
00:43 |
MTDiscord |
<entuland> then I don't know |
00:47 |
|
Sven_vB joined #minetest |
00:50 |
AntumDeluge |
Well, guess I'll be using "player" type formspec then. |
01:30 |
|
Gustavo6046 joined #minetest |
01:54 |
|
Gustavo6046 joined #minetest |
01:59 |
|
Taoki joined #minetest |
02:21 |
|
Hawk777 joined #minetest |
02:43 |
luk3yx |
> The formspec line is: "list[" .. inv_name .. ";deposit;0.2,1.5;1,1;0]" |
02:43 |
luk3yx |
AntumDeluge: Does `inv_name` start with "detached:"? |
02:44 |
luk3yx |
If your detached inventory is called `inv` you have to use `detached:inv` in formspecs |
02:59 |
|
Surfer2011 joined #minetest |
03:21 |
|
MineTester joined #minetest |
03:23 |
MineTester |
Hi all, running in to an odd issue and wondering if anyone has seen this before. I set up a minetest server on a VPS, but when I connect to it from two different machines, it drops my internet. I have to reset switch/router for internet to come back. Once I'm connected it's fine |
04:00 |
|
MTDiscord joined #minetest |
04:11 |
|
smugler5 joined #minetest |
04:12 |
smugler5 |
!cmd team PantsMan |
04:12 |
|
smugler5 left #minetest |
05:53 |
|
Flabb joined #minetest |
05:59 |
|
illwieckz joined #minetest |
07:46 |
|
FeXoR joined #minetest |
08:00 |
|
ShadowNinja joined #minetest |
08:29 |
|
illwieckz joined #minetest |
08:38 |
|
SmugLeaf joined #minetest |
09:11 |
|
Fixer joined #minetest |
09:57 |
|
SwissalpS joined #minetest |
10:01 |
|
entuland joined #minetest |
10:04 |
|
riff-IRC joined #minetest |
10:08 |
|
illwieckz joined #minetest |
10:13 |
|
Aris left #minetest |
10:22 |
|
calcul0n_ joined #minetest |
10:25 |
|
illwieckz joined #minetest |
10:26 |
|
hisforeverkid joined #minetest |
10:27 |
hisforeverkid |
Hi I need to remoce |
10:30 |
|
proller joined #minetest |
10:30 |
hisforeverkid |
Hi I need to remove trees I have the treecpacitor mod . Do I have o hold the sneek key to activate it? |
10:40 |
calcul0n_ |
with this mod it's always enabled i think, but i'm not sure i'm thinking about the same |
10:45 |
hisforeverkid |
calcul1on Thanks for the comback |
10:59 |
|
z812 joined #minetest |
10:59 |
|
z812 joined #minetest |
11:10 |
|
illwieckz joined #minetest |
11:30 |
entuland |
whosit: got feedback from rubenwardy, turns out the book needs fixing that section, it's by design for those recipes to override each other, for the empty strings to get ignored and for the "item shapes", so to speak, to work in the same way in different positions of the grid |
11:45 |
|
Aris joined #minetest |
11:48 |
|
Aris left #minetest |
11:49 |
|
Verticen joined #minetest |
11:51 |
|
Aris joined #minetest |
11:51 |
|
appguru joined #minetest |
11:52 |
|
tech_exorcist joined #minetest |
12:03 |
|
specing_ joined #minetest |
12:14 |
|
bingfengzs joined #minetest |
12:20 |
|
bingfengzs joined #minetest |
12:22 |
|
calcul0n__ joined #minetest |
12:31 |
|
twoelk joined #minetest |
12:38 |
|
MineTester joined #minetest |
12:44 |
|
proller joined #minetest |
12:48 |
|
z812_ joined #minetest |
12:50 |
|
Andrew__ joined #minetest |
13:02 |
whosit |
entuland: thank you... but if implemented as described in the book, that could be a clever way to have it both ways - be able to have both position-independent and position-dependent recipies. Although, it may be confusing and require some special handling when displayin recipies in-game... |
13:06 |
entuland |
yeah that would be nice, but seems like it was just a misunderstanding of how the engine works |
13:06 |
entuland |
seems like it always worked like that |
13:15 |
|
delta23 joined #minetest |
13:26 |
|
scr267 joined #minetest |
13:44 |
|
SmugLeaf joined #minetest |
13:46 |
|
kamdard joined #minetest |
13:47 |
|
djenkins_ joined #minetest |
13:49 |
|
ssieb joined #minetest |
13:52 |
|
MTDiscord joined #minetest |
13:52 |
|
craigger joined #minetest |
14:45 |
|
MTDiscord joined #minetest |
15:17 |
|
Hawk777 joined #minetest |
15:22 |
|
Gustavo6046 joined #minetest |
15:51 |
|
delta23 joined #minetest |
16:12 |
|
MTDiscord joined #minetest |
16:13 |
|
illwieckz joined #minetest |
17:01 |
|
Talkless joined #minetest |
17:15 |
|
Noisytoot joined #minetest |
17:20 |
|
erlehmann joined #minetest |
17:31 |
|
hlqkj joined #minetest |
17:37 |
|
entuland joined #minetest |
18:10 |
|
n_to joined #minetest |
19:01 |
|
proller joined #minetest |
19:07 |
|
absurb joined #minetest |
19:10 |
|
tech_exorcist joined #minetest |
19:18 |
|
tech_exorcist joined #minetest |
19:25 |
AntumDeluge |
luk3yx, inventory name was "server_shop". |
19:27 |
AntumDeluge |
`core.create_detached_inventory("server_shop", {})` |
19:28 |
|
Taoki joined #minetest |
19:34 |
AntumDeluge |
Are colons (:) okay to use in formspec strings? They don't have any special meaning do they? I think only comma & semi-colon need escaping, correct? |
19:37 |
AntumDeluge |
Actually, guess luk3yx already answered that for me. :) |
19:40 |
|
ircSparky joined #minetest |
19:40 |
|
ircSparky joined #minetest |
19:42 |
AntumDeluge |
It looks like a detached inventory must be prefixed with "detached:" no matter what. Am I wrong? |
19:43 |
AntumDeluge |
*detached inventory name... |
19:50 |
|
delta23 joined #minetest |
20:23 |
|
swift110 joined #minetest |
20:28 |
|
proller joined #minetest |
20:57 |
|
swift110 joined #minetest |
21:10 |
swift110 |
hey all |
21:11 |
AntumDeluge |
Hi swift110 |
21:14 |
sfan5 |
AntumDeluge: yes |
21:15 |
AntumDeluge |
Thank you for the confirmation sfan5. |
21:22 |
swift110 |
nice |
21:22 |
swift110 |
how goes it AntumDeluge |
21:24 |
AntumDeluge |
Pretty well. I think using this detached inventory is going to solve my problem. |
21:26 |
swift110 |
thats cool AntumDeluge I find minetest pretty hard to get into which is why i play it so rarely |
21:38 |
|
Verticen joined #minetest |
21:50 |
|
proller joined #minetest |
21:52 |
|
olliy_ joined #minetest |
21:52 |
MTDiscord |
<appguru> AntumDeluge: colons are fine, backslashes, [ and ], ";" and "," must be escaped. You should be using minetest.formspec_escape though as that might change. |
21:54 |
AntumDeluge |
Thank you appguru. |
22:00 |
|
Sven_vB joined #minetest |
22:58 |
|
Verticen joined #minetest |
23:35 |
AntumDeluge |
I have a texlist element ("textlist[2.15,1.5;9.75,3;products;" .. get_product_list(id) .. ";" .. tostring(selected_idx) .. ";false]"). When a textlist event occurs I can retrieve the selected index with "fields.products".... |
23:36 |
AntumDeluge |
But is there a way to retrieve that selected index with a button push event? (type(fields.products) = nil) |
23:36 |
AntumDeluge |
I'm looking at http://minetest.gitlab.io/minetest/formspec/#elements but haven't seen anything yet. |
23:37 |
|
absurb_ joined #minetest |
23:38 |
AntumDeluge |
Can a textlist element be configured separately just like a detached inventory? |
23:39 |
AntumDeluge |
At the moment, I am storing the selected index in player meta data. But I was wondering if there is a better way? |
23:42 |
entuland |
AntumDeluge: to my knowledge, no, you have to listen to the events and get the info about the selected element in the textlist when it changes, then store that info somewhere to be used afterwards |
23:43 |
entuland |
I never found a way to query those widgets outside of the events they raise |
23:43 |
AntumDeluge |
Okay, that's what I'm doing right now. Is storing in player meta data a good option? |
23:44 |
entuland |
that I can't tell, I used smartfs so far but this very subject got discussed recently and rubenwardy suggested looking at this instead: https://github.com/octacian/libuix |
23:45 |
AntumDeluge |
Thanks entuland, I will have a look at that. |
23:45 |
entuland |
yw |
23:45 |
MTDiscord |
<Jonathon> Wait! This library is in super-early developmental stages. It can't be used at all yet in the real world. But do not fear! There is not much more to be done. In the meantime, contributors would be greatly appreciated. There is no public todo list at the moment, so if you are interested please contact octacian. |
23:47 |
entuland |
thanks for the heads-up Jonathon, I'll keep that in mind if I happen to mention it again - also, AntumDeluge ^^ |
23:49 |
MTDiscord |
<entuland> (well that was a bit confusing me as the nick here on Discord and the name shown on IRC didn't match ? ) |
23:49 |
MTDiscord |
<Jonathon> yeah |
23:50 |
MTDiscord |
<Jonathon> im used to it |
23:50 |
MTDiscord |
<entuland> I thought I pinged the wrong person ? |
23:50 |
MTDiscord |
<Jonathon> as long as you dont call us over here mtdiscord, i dont care |
23:50 |
MTDiscord |
<entuland> I almost did that the first time ahahaha |
23:51 |
MTDiscord |
<entuland> on the IRC side it's very odd cause it looks like there is some guy named MTDiscord with serious personality issues ahahaha |
23:51 |
MTDiscord |
<Jonathon> lol |
23:52 |
wsor4035 |
i mean, you would think at the rate the irc mod is used that people would be used to relays |
23:52 |
entuland |
it definitely tricked me cause I've been away for a while and I forgot there were such bridges |
23:54 |
MTDiscord |
<Jonathon> maybe its just me that isnt that confused |
23:56 |
MTDiscord |
<entuland> oh I'm sure there is plenty of people around that aren't confused either |
23:56 |
MTDiscord |
<entuland> maybe it's just me not used to it yet |