Time Nick Message 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 you can get that reference but your get_inventory should have worked 00:37 MTDiscord 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 detached requires a name 00:39 MTDiscord 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 Oh wait you do have the name 00:40 MTDiscord uh, I thought it was deprecated or something to use it, ignore me ? 00:41 MTDiscord anyways, as far as my reading of the API goes, what you wrote above should have worked 00:42 MTDiscord uh... "inv_Name" vs "inv_name"? 00:43 MTDiscord is lua case sensitive? 00:43 AntumDeluge That was just a typo, it's correct in the code. 00:43 MTDiscord then I don't know 00:50 AntumDeluge Well, guess I'll be using "player" type formspec then. 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 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:12 smugler5 !cmd team PantsMan 10:27 hisforeverkid Hi I need to remoce 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 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 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 19:25 AntumDeluge luk3yx, inventory name was "server_shop". 19:27 AntumDeluge `core.create_detached_inventory("server_shop", {})` 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: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... 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:52 MTDiscord 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. 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: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 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 (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 yeah 23:50 MTDiscord im used to it 23:50 MTDiscord I thought I pinged the wrong person ? 23:50 MTDiscord as long as you dont call us over here mtdiscord, i dont care 23:50 MTDiscord I almost did that the first time ahahaha 23:51 MTDiscord 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 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 maybe its just me that isnt that confused 23:56 MTDiscord oh I'm sure there is plenty of people around that aren't confused either 23:56 MTDiscord maybe it's just me not used to it yet