Time Nick Message 07:05 Oblomov is it possible to programmatically select an inventory slot? 09:16 CWz There seems to be an error with stairs and slab texture: https://i.postimg.cc/WpMZ82Ry/screenshot-20220814-121329.png 09:17 CWz latest git for both minetest and mtg 09:39 MTDiscord maybe #12672 09:39 ShadowBot https://github.com/minetest/minetest/issues/12672 -- "autoscale" feature for world-aligned textures seems to have broken in 5.6.0 10:25 CWz any temporary fix? 10:44 MTDiscord disable auto_scale in your conf 10:45 MTDiscord oops i mean „autoscale_mode“ 11:58 vampirefrog is there an example mod that just adds a block type? 11:58 vampirefrog I just want a certain 3D model in my world, as a block 12:07 vampirefrog you know what, I was trying to add a computer but I found this laptop mod 12:07 vampirefrog https://content.minetest.net/packages/GamingAssociation39/laptop/ 12:07 vampirefrog but it says mod 'default' is missing 12:07 vampirefrog but I'm running mineclone5 12:07 vampirefrog I've had this happen to me before too, any idea how I can fix it? 12:12 freshreplicant[m Default is part of Minetest Game (not the engine Minetest, which Mineclone 2 also runs on). 12:12 freshreplicant[m So that mod does not support other games it seems. 12:13 vampirefrog hmm okay 12:25 vampirefrog is there a way to make a http server from lua? 12:25 vampirefrog maybe with websocket support too 12:25 vampirefrog cause I want to make a websocket to relay the chat 13:52 freshreplicant[m vampirefrog: relay it where? 13:53 freshreplicant[m There's a bridge mod for Matrix. https://content.minetest.net/packages/joenas/matrix_chat/ 13:53 freshreplicant[m And Telegram I think. 14:03 vampirefrog relay it to whoever connects to the websocket 14:03 vampirefrog I want it to be a server, not a client 14:04 vampirefrog the matrix and telegram bridges act as matrix and telegram clients, whereas I want my mod to send JSON on the websocket to whoever connects to the websocket 14:12 vampirefrog in effect, I want it to be a http server with websocket capability 14:13 vampirefrog it can use long polling too, if websockets are too complex 14:13 vampirefrog I don't mind writing my own http server code if I have to 14:13 vampirefrog or it can even be a plain TCP socket 14:17 diceLibrarian I've run into a problem 14:17 diceLibrarian advtrains has started trying to compare a nil value, please advise 14:47 vampirefrog looks like I can use the http client API to send data to a node.js server that does the websocket push itself 14:47 vampirefrog would be nice to have http server functions tho 14:48 vampirefrog though someone would have to switch libcurl for microhttpd or something like that 15:34 MTDiscord vampirefrog: Minetest can use any Lua library via require(), you just have to grant the mod an insecure environment. LuaSocket is the "standard" for doing TCP/UDP, never done a HTTP server in Lua so don't know if there's any libraries for that 15:35 MTDiscord nor websockets either 15:36 vampirefrog TCP would be just fine 15:36 vampirefrog my other problem would be, even if I could listen on a socket, how would I manage to not block the main process? 15:37 vampirefrog cause I'd have to have some sort of event loop waiting on that socket 15:37 MTDiscord hehe that's the exact problem I had a while ago 15:37 MTDiscord you can set any timeouts to zero (instant timeout if no data) 15:37 MTDiscord *no data waiting to be read 15:38 vampirefrog so I'd just be polling the socket basically? 15:38 vampirefrog like, every few ms? 15:39 MTDiscord for luasocket specifically there's socket.select https://aiq0.github.io/luasocket/socket.html#select 15:39 vampirefrog yes but select would block the thread 15:39 MTDiscord only if given a non-zero timeout 15:39 vampirefrog okay 15:41 MTDiscord once you actually decide to read from the socket you should re-enable timeouts so you don't end up trying to read a request with only half the data available 15:41 MTDiscord *re-enable blocking timeouts 15:41 vampirefrog I don't mind reading the data in chunks 15:42 vampirefrog some requests are going to be too big for one read anyway 15:43 vampirefrog would I have to use minetest.after() for each poll? 16:50 vampirefrog not sure how to do zero timeout 17:50 mazes_84 Hi I'm trying to generate coredump, but total failure nothing gets dumped 17:51 mazes_84 ulimit are correct, coredumps enabled in kernel, minetest and irrlicht compiled with debug on 17:52 mazes_84 any hints on specifics extra steps for minetest 17:53 MTDiscord Maybe it just doesn't crash? XD 17:54 sfan5 do you see the segfault in dmesg? 17:54 mazes_84 Server[29201]: segfault at 5c0aeee0 ip 00007fbb85334be2 sp 00007fbb4b7f94b0 error 4 17:54 sfan5 and where are you looking for the coredump? it no longer just appears in the same folder like in the old days, systemd takes care of saving it these days 17:55 sfan5 (try coredumpctl list) 17:55 mazes_84 no systemd, pattern is set to core.%e.%t 17:55 sfan5 and lastly if all you want is a usable backtrace in case of crashes gdb can help https://github.com/minetest/minetest/blob/master/util/test_multiplayer.sh#L22-L24 17:56 mazes_84 ok I think I'll got this way 17:56 mazes_84 thanks 17:58 mazes_84 I always disable coredump from kernel usually, as at my first linux install dumps filled whole disk 17:59 mazes_84 those days disk were like 200MB, but my computer was far from this huge storage 18:11 milk hello 18:14 MTDiscord hello 18:27 MinetestBot 02[git] 04Zughy -> 03minetest/minetest: Docs: add "flip moon texture" into breakage file (#12417) 13760242c https://github.com/minetest/minetest/commit/760242c076921775733c3dd039d3aaabcc64125f (152022-08-14T18:25:52Z) 18:29 MinetestBot 02[git] 04lionkor -> 03minetest/minetest: Add handling of environment variables to control terminal/logging col… 132690585 https://github.com/minetest/minetest/commit/2690585e992474cc458e274250c14b2a65a6b926 (152022-08-14T18:27:28Z) 18:29 MinetestBot 02[git] 04x2048 -> 03minetest/minetest: Limit force shadow update to urgent blocks (#12692) 13aa2fdc6 https://github.com/minetest/minetest/commit/aa2fdc6ef6300f6b6683f96305bb1d9e63ba8ebb (152022-08-14T18:29:20Z) 18:30 definitelya_ GitHub can't handle this Minetest! 18:30 definitelya_ eheh 18:33 MTDiscord Are these pull requests from the main repo? 18:34 MTDiscord Why isnt this working for setting param2 data? https://github.dev/MisterE123/wip_thing/blob/master/mods/SHIPGEN/nodepalettes/init.lua 18:35 definitelya_ ye, it says /minetest/minetest 18:36 sfan5 "if c_data == def.cid then" a table can't equal a number 18:36 definitelya_ Oh I need this actually! 18:36 MTDiscord thank you! 18:37 sfan5 also doing a for loop over mapgen_nodes is inefficient 18:39 MTDiscord then, what would be more efficient? 18:39 MTDiscord I need to set the paramtype of many different types of nodes 18:40 sfan5 a table lookup 18:40 sfan5 where the content id is the key 18:41 MTDiscord yay it works! 18:41 MTDiscord https://cdn.discordapp.com/attachments/749727888659447960/1008445272407416853/unknown.png 18:41 MTDiscord oh, ok. I can do that 18:48 MTDiscord sfan5: like that? https://github.dev/MisterE123/wip_thing/blob/master/mods/SHIPGEN/nodepalettes/init.lua 18:49 sfan5 you now have an efficient data structure and are still doing an inefficient for loop over it 18:50 MTDiscord but... I need to perform the paramtype modification on any node in that table 18:50 MTDiscord *every 18:52 MTDiscord I need any node that is in that table to have the param2 set based on a custom mix of pre-defined noises (custom to each node type). If the generated node is found in that table, it needs modification 18:52 sfan5 how do you find an entry with a particular key in a table? 18:52 MTDiscord OH! 18:54 MTDiscord I understand now, thinking about how to implement 18:56 MTDiscord What does this message in the log mean? 2022-08-14 14:39:43: VERBOSE[ConnectionSend]: con(4/1)Possible packet stall to peer id: 205 queued_commands=17400 18:58 Krock it means that a client cannot handle the flood of packets that are waiting for them 19:00 MTDiscord like that? (updated) 19:00 MTDiscord yeah thats much more efficient 19:02 MTDiscord how efficient is this param2 setting compared to a lua-only mapgen? 19:17 MTDiscord important question, what's the upper and lower bound for Z? 19:25 MTDiscord So queued commands are a client side thing? Asking because my server has a couple of users, but sometimes we have odd lag episodes. We noticed when a client sent a chatmessage. He got his own chat message displayed only several seconds later, but the chatbridge (to discord and irc and whatnot) would send out immediately. 20:26 pumpkkin[m]1 hello 20:29 MisterE[m] welcome pumpkkin ! 20:29 diceLibrarian welcome 20:29 diceLibrarian what does the [m] mean? 20:30 MTDiscord Matrix 20:30 diceLibrarian ah 20:30 diceLibrarian this means that because I'm connected through Konversation that I don't have that? 20:30 MTDiscord Likely 20:32 pumpkkin[m]1 so up to how many players can Minetest servers support? 20:33 sfan5 the practical performance limit with the current engine is probably around 200 20:33 pumpkkin[m]1 nice 20:33 pumpkkin[m]1 i think the devil's game doesn't support even that many anymore 20:34 pumpkkin[m]1 * many anymore minecraft 20:34 MTDiscord You can do many more with multiple servers joined together 20:34 pumpkkin[m]1 idk why that didnt work 20:35 diceLibrarian IRC doesn't support html tags 20:35 MTDiscord Which is how huge Minecraft servers work, and Minetest has a third party system for that too 20:35 MisterE[m] unfortunately the proxy that connects multiple servers is stuck on minetest 5.4 20:35 MTDiscord Though I dont think its ever been practically tested 20:35 MTDiscord Ah, thats rough 20:35 pumpkkin[m]1 * minecraft 20:36 MisterE[m] people have been asking the dev who maintains it to update it, but he hasnt 20:36 diceLibrarian IRC doesn't support markup of any kind last I checked 20:36 pumpkkin[m]1 pumpkkin[m]1: guys i did it 20:36 pumpkkin[m]1 :> 20:36 diceLibrarian my client just shows your markup tags 20:37 MisterE[m] they also cant see the sad face emoji XD 20:37 pumpkkin[m]1 MisterE[m]: now that's just cruel 20:37 pumpkkin[m]1 is dice using IRC? 20:37 diceLibrarian indeed 20:37 diceLibrarian IRC Client known as Konversation 20:37 MisterE[m] yes 20:37 MisterE[m] it supports basic chat and in-text emojis only 20:38 pumpkkin[m]1 why is there no bot to let dice know of my emojis :< 20:38 diceLibrarian yeah that's actually sad 20:38 pumpkkin[m]1 diceLibrarian: sounds like something out of Kubuntu 20:38 pumpkkin[m]1 like the Konsole 20:38 diceLibrarian Kubuntu 21.04 20:38 diceLibrarian actually 21.10 20:38 pumpkkin[m]1 u on kubuntu? 20:38 pumpkkin[m]1 im on lubuntu 20:38 diceLibrarian indeed 20:38 pumpkkin[m]1 we're like cousins 20:38 diceLibrarian I use kubuntu since it's not actually maintained by canonical 20:39 pumpkkin[m]1 idk what that is 20:39 diceLibrarian lucky 20:40 pumpkkin[m]1 do we talk only about minetest here? 20:41 diceLibrarian "General, player and modding discussion is on-topic. If in doubt, post here" 20:41 diceLibrarian from the channel topic 20:42 rubenwardy diceLibrarian: it does including strike out 20:42 diceLibrarian nice bold 20:42 diceLibrarian but the strikeout stuff shows up as boxes 20:44 pumpkkin[m]1 poor guy 20:44 pumpkkin[m]1 he got disconnect ig 20:44 diceLibrarian nope 20:44 diceLibrarian I recognize that 20:44 diceLibrarian they closed their IRC client 20:45 pumpkkin[m]1 diceLibrarian: im not sure how im supposed to interpret that 20:45 diceLibrarian an IRC client is a program you use to connect to IRC 20:46 MisterE[m] slinks away in shame Re #minetest-dev 20:46 * diceLibrarian complains about how kids these days don't know IRC from Usenet, but in a joking manner 21:34 pumpkkin[m]1 time to learn lua 21:34 pumpkkin[m]1 we aint getting anywhere without lua 21:38 pumpkkin[m]1 Ping timeout is what happens when we don't know lua 21:39 pumpkkin[m]1 * know lua (just a joke) 22:35 MTDiscord I have to make a choiche 23:34 vampirefrog I managed to write the plugin 23:34 vampirefrog mod* 23:34 vampirefrog it just polls select() every ms 23:35 vampirefrog I'm not sure how others mods do it, I'm looking at the IRC mod rn 23:35 vampirefrog but it does work, it reads and writes chat messages 23:35 vampirefrog including colors 23:35 vampirefrog uses 0xFF and 0x00 as message start and end 23:54 vampirefrog looks like the IRC mod uses minetest.register_globalstep() 23:56 vampirefrog but the IRC submodule does a socket.sleep(0.1) 23:56 vampirefrog which is weird