Time Nick Message 00:00 daiNoZord awf ... minimise 00:00 * daiNoZord hunting food 00:00 numzero hm... it seems a sort of shared tables is supported in Lanes now 00:01 adfeno2 sorry, I'm out of the loop. 00:02 numzero you was asking about running things in parallel in an MT mod 00:03 numzero Lua Lanes allows running Lua code in parallel 00:05 numzero separate threads won’t be able to access the MT environment directly but that may be fine for some use cases 00:06 numzero like running a mostly self-contained thing with limited communication to the MT itself 00:06 numzero are you trying to make an XMPP chat bridge? 00:07 adfeno2 numzero, a chat bridge, yes. 00:09 numzero so running the bridge in a separate “Lane” (thread) and passing the messages between it and MT itself via a “linda” should work 00:11 numzero (never tried that myself, though) 00:11 adfeno2 I hope Lane's limited ability to share tables suffices for the things I want to do (mostly maintain a list of XMPP users, a list of MT users, and a "chat message" queue, in case either side didn't catch quickly). 00:12 adfeno2 I'm OK on compromising the last part (message queue) if I find it too complex to do. 00:14 numzero the queue is there already IIUC 00:14 numzero it’s the primary interface Lindas provide 00:15 adfeno2 ah, nice. 00:17 adfeno2 numzero, even if Lane doesn't work quite well, I thank you very much for pointing me a way out. 00:43 Sven_vB numzero, thanks! 00:44 Sven_vB adfeno2, none of my pointer devices have an Alt or F4 button 00:44 Sven_vB via keyboard I could just press Escape :) 00:48 Sven_vB adfeno2, the usualy not-really-a-solution for IRC's reliance on a continuous TCP connection is to set up a bouncer on some permanently-connected server, and connect the actual, roaming clients to that bouncer. 00:49 adfeno2 try using Alt+SysRq+R, this as far as I know should force keyboard to work again, to some extent. 00:49 Sven_vB adfeno2, why would I? when I asked specifically for pointer device possibilities, it was about usability, not desperation. :) 00:50 Sven_vB more specifically, I was too lazy to adjust my keyboard multiplexer just for one keystroke. 00:50 adfeno2 ah I see. 00:51 adfeno2 I'll do some research on that then, 00:51 Sven_vB a button separate from the "close window" decoration button would have given me better reassurance that it will quit the game cleanly. 00:52 Sven_vB maybe I should feature-request it. 00:58 adfeno2 Sven_vB there might be a way to control or override mouse events so long as acpi_listen finds those. withe their key codes, one can write a script associated with an event on/etc/acpi (or similar path) to do the job. 01:01 Sven_vB indeed I can use xdotool to define mouse gestures for key press events. however, I think an obviously-clean-exit button should be in the game by default. 01:01 adfeno2 for example, if acpi_listen understand sat least middle mouse press, one could use that to call xkill. xkill in turn will expect you to left click a window to terminate or kill it. 01:02 Sven_vB maybe I should have clarified in my original question, that I was asking about MT as it's distributed, with default config. 01:03 adfeno2 you want MT to Change mouse behavior or change title bar? 01:03 Sven_vB probably on similar level than acpi_listen, would be xinput test 'pointer:Mouse Name here' | sed -nurf script.sed | sh 01:03 Sven_vB I want MT main menu to have a "Quit" button. 01:04 Sven_vB inside the window 01:04 adfeno2 ah I see. 01:04 Sven_vB because the window decoration's close button doesn't convey whether it will be a "clean" exit 01:07 adfeno2 Sven_vB most applications nowadays all terminate with the X at the title bar. 01:08 adfeno2 if you do insist on clicking it frenetically (due to some freeze) then the desktop session asks if you want to kill it instead. 01:18 Sven_vB feature request for the Quit button: https://github.com/minetest/minetest/issues/10894 01:35 Sven_vB wow. we actually had two older requests for that already. 01:36 Sven_vB and they even had better excuses for why they want their game experience be easy. 01:38 SX "most applications nowadays all terminate with the X at the title bar", no they do not if you run full screen and there's no such button 01:39 Sven_vB also that rebuttal is void because it misses the point 01:39 SX and many prefer to actually run games full screen without window decorations 01:43 SX Related not so nice thing is that minetest does not handle windowed full screen mode itself but that's another problem, with Linux if you're developer or sysadmin you will be able to change manager settings to do it. Still too hard for average user. With Windows.. well it gets messy and you need 01:43 SX another application to do that for you. 01:47 SX There's been requests for that too, heard some of devs saying that it is not needed because window manager should handle it. That's like building thing only for devs and other technical persons, end of rant. 02:15 Sven_vB_ SX, building for mostly devs is the default in free software. you're lucky if maintainers have non-dev friends who they'd like to use an application with. which, with a game, at least there's an increased probability. 02:18 Sven_vB for all my friends that I've tried to convert from Minecraft, the small planet surface area defeats it anyway. so until I find time to expand the world (and mapgen) horizontally, I can only play with techies anyway. 02:25 Sven_vB well, at least with free software we have the freedom to fix those things. :) that's a huge plus. 02:27 DrFrankenstone Is there any way for a mod to make use of set_sky() without it causing clashes if any other mod on the server uses set_sky()? 02:27 DrFrankenstone Like any conventions that avoid the problem if followed, or a middleman mod to go through? 02:47 Sven_vB DrFrankenstone, there are some libs that aim for multi-mod compatibility. haven't done any research though whether they deal with set_sky. 07:17 Sven_vB I wish the "Media... 0%" progress bar would update with some kind of progress indication. Thanks to --verbose I now see that it actually does lots of "VERBOSE[Main]: Client: Loaded cached media:" while the window hangs (it's not repainting itself). 10:52 celeron55 >minetest does not handle windowed full screen mode itself 10:52 celeron55 just to be clear, this is a problem that comes from irrlicht 10:54 celeron55 now that the plan is to fork irrlicht, fixing that should be possible 11:06 MiniontobyPI Hi 11:06 MiniontobyPI i need some help 11:06 MiniontobyPI im making csm 11:06 MiniontobyPI minetest.get_player_names() 11:06 MiniontobyPI how to hanlde this ^ 11:07 MiniontobyPI is it an array 11:07 MiniontobyPI so 11:07 MiniontobyPI for player in players do 11:07 MiniontobyPI or what? 11:15 MiniontobyPI may i get helP? 11:18 SusWombat Hi everyone 11:19 MiniontobyPI Hi 11:20 MiniontobyPI can i get some help with ´minetest.get_player_names()´ in an csm code? How to handle the output of it? 11:20 sfan5 do you know how to iterate an array in Lua? 11:20 MiniontobyPI for player in players do 11:20 MiniontobyPI count = count + 1 11:20 MiniontobyPI end 11:20 MiniontobyPI right? 11:21 sfan5 no 11:21 MiniontobyPI Oh 11:21 MiniontobyPI how to do it then???? 11:21 independent56 the best minetest game is development test. mtg, hades, nodecore? they have nothing 11:22 MTDiscord <085​06 independent> lol 11:23 MiniontobyPI for each??? 11:23 MiniontobyPI ipairs 11:24 MiniontobyPI for i, name in ipairs(names) do 11:24 MiniontobyPI oh 11:26 SusWombat does minetest have a activ modding community? 11:28 MTDiscord <11J​onathon> Yes 11:29 sfan5 SusWombat: https://forum.minetest.net/viewforum.php?f=46 11:29 sfan5 looks pretty active I'd say 11:33 MiniontobyPI ok, right i think that works now 11:33 MiniontobyPI now the next thing 11:34 independent56 the modding community is litterally buzzing. have one look, and see all the development that is going on. its extremely active. 11:34 MiniontobyPI huds["localplayer"] = player:hud_change(huds["localplayer"], "text", newText) doesnt works 11:34 independent56 i belive that the modding community is bigger then the core development community. 11:35 MiniontobyPI bad argument #1 to 'hud_change' (number expected, got boolean) 11:35 ShadowBot https://github.com/minetest/minetest/issues/1 -- GlowStone code by anonymousAwesome 11:36 MiniontobyPI bad argument #1 to 'hud_change' (number expected, got boolean) 11:37 ShadowBot https://github.com/minetest/minetest/issues/1 -- GlowStone code by anonymousAwesome 11:37 MiniontobyPI can i get help? 11:37 MiniontobyPI oh 11:40 MiniontobyPI bad argument #1 to 'hud_change' (number expected, got boolean) 11:40 ShadowBot https://github.com/minetest/minetest/issues/1 -- GlowStone code by anonymousAwesome 11:40 MiniontobyPI plz help 11:41 MiniontobyPI huds["localplayer"] = player:hud_change(huds["localplayer"], "text", newText) doesnt works 11:43 rubenwardy don't set huds to the result of hud_change 11:43 rubenwardy only hud_Add returns the ID 11:44 MiniontobyPI Oh 11:45 MiniontobyPI checking now 11:45 MiniontobyPI ... 11:46 MiniontobyPI thx rubenwardy 11:46 MiniontobyPI but now still me player count not works 11:47 MiniontobyPI and in-game time i want to see as hr:min:sec 11:53 MiniontobyPI https://pastebin.com/ZPm80ATV 11:53 MiniontobyPI plz help me with the player count 12:38 MiniontobyPI https://pastebin.com/ZPm80ATV 12:38 MiniontobyPI plz help me with the player count 12:38 BuckarooBanzai MiniontobyPI: what are you trying to do? 12:38 MiniontobyPI its an csm 12:39 BuckarooBanzai ok, whats the problem then? 12:39 MiniontobyPI im trying to make an in-game player counter (adn other things) hud gui thing 12:39 MiniontobyPI it shows 0 12:39 MiniontobyPI while me 12:39 MiniontobyPI and my secodn account are in 12:39 MiniontobyPI it says nil 12:39 MiniontobyPI or so 12:40 MiniontobyPI let me check if it is nil 12:40 BuckarooBanzai did you try with "ipairs()" 12:40 MiniontobyPI yes 12:40 BuckarooBanzai i think you have a list there 12:40 rubenwardy local count = players and #players or 0 12:40 MiniontobyPI but at first 12:40 rubenwardy you don't actually need to iterate over them, you can use # to count 12:40 MiniontobyPI hmmm 12:41 MiniontobyPI # 12:41 MiniontobyPI ok 12:41 MiniontobyPI also works for nil???? 12:41 rubenwardy yeah, `players and` handles that 12:41 rubenwardy you could use an ifstatement if you wanted to the same effect 12:41 MiniontobyPI local count = players and #players or 0 12:41 MiniontobyPI this is the full code? 12:42 rubenwardy no, you need to get the players and definee the function 12:42 rubenwardy function countPlayers() local players = minetest.get_player_names() return players and #players or 0 end 12:42 rubenwardy obviously with line breaks 12:42 MiniontobyPI ok 12:43 MiniontobyPI hmmm 12:43 rubenwardy oh, it'll return nil if the server doesn't let you query players 12:43 MiniontobyPI how to disable the CSM_RF_READ_PLAYERINFO 12:43 MiniontobyPI i think thats it 12:43 rubenwardy ask the server nicely 12:43 MiniontobyPI IM THE HOST 12:44 MiniontobyPI lol 12:44 MiniontobyPI how to do it if im the host? 12:44 rubenwardy look for csm restrictions in the conf 12:44 MiniontobyPI ok 12:44 rubenwardy csm_restriction_flags =0 disables all 12:44 rubenwardy https://github.com/minetest/minetest/blob/master/minetest.conf.example#L1589 12:44 MiniontobyPI ok 12:45 MiniontobyPI not found in the file, but will set to 0 12:45 MiniontobyPI and now 12:46 MiniontobyPI environment_step(): No address for peer found! 12:46 MiniontobyPI stack traceback: 12:46 MiniontobyPI [C]: in function 'get_server_info' 12:46 MiniontobyPI LOL 12:46 MiniontobyPI when i shut it down 12:46 MiniontobyPI Hmmm 12:47 MiniontobyPI 12:47 MiniontobyPI rubenwardy: now it says 3 12:48 MiniontobyPI let me try with my old code 12:48 MiniontobyPI !server addr:minetest.grape.ircnow.org port:30002 12:48 MinetestBot MiniontobyPI: Grapes MT creative server | minetest.grape.ircnow.org:30002 | Clients: 0/10, 0/0 | Version: 5.4.0-dev / minetest | Ping: 14ms 12:49 MiniontobyPI my code works! 12:54 MiniontobyPI and now 12:54 MiniontobyPI rubenwardy: 1 last thing 12:54 MiniontobyPI how to show the in-game time as hr:min:sec 12:56 MiniontobyPI and btw 12:56 MiniontobyPI attempt to call field 'get_node_light' (a nil value) 12:56 MiniontobyPI * `minetest.get_node_light(pos, timeofday)` 12:56 MiniontobyPI * Gets the light value at the given position. Note that the light value 12:56 MiniontobyPI "inside" the node at the given position is returned, so you usually want 12:56 MiniontobyPI to get the light value of a neighbor. 12:56 MiniontobyPI * `pos`: The position where to measure the light. 12:56 MiniontobyPI * `timeofday`: `nil` for current time, `0` for night, `0.5` for day 12:56 MiniontobyPI * Returns a number between `0` and `15` or `nil` 12:56 rubenwardy please don't paste so many lines 12:57 rubenwardy is this during connect time? 12:57 MiniontobyPI Soorry 12:57 MiniontobyPI I will use pastebin 13:00 MiniontobyPI ik mtimer does do it 13:08 MiniontobyPI i got it working 13:08 MiniontobyPI thanks mtimer mod 13:10 MiniontobyPI but yeah now the get_node_light plz 13:12 MiniontobyPI why does the function not works? 13:12 MiniontobyPI is it dead/deceprate 13:15 MiniontobyPI and rubenwardy, can i use minetest.register_on_modchannel_signal to check if the player joined the game? 13:26 MiniontobyPI away 18:30 MinetestBot 02[git] 04SmallJoker -> 03minetest/minetest: Server GotBlocks(): Lock clients to avoid multithreading issues 137ebd5da https://git.io/JtE8Q (152021-02-02T18:10:35Z) 19:47 MinetestBot 02[git] 04sfan5 -> 03minetest/minetest: Handle UTF-16 correctly in Wireshark dissector 139388c23 https://git.io/JtERM (152021-02-02T19:46:08Z) 19:47 MinetestBot 02[git] 04sfan5 -> 03minetest/minetest: Encode high codepoints as surrogates to safely transport wchar_t over… 13674d67f https://git.io/JtERD (152021-02-02T19:46:08Z) 19:47 MinetestBot 02[git] 04sfan5 -> 03minetest/minetest: Drop wide/narrow conversion functions 13c834d2a https://git.io/JtERy (152021-02-02T19:46:08Z) 19:47 MinetestBot 02[git] 04sfan5 -> 03minetest/minetest: Refactor utf8_to_wide/wide_to_utf8 functions 135e392cf https://git.io/JtERS (152021-02-02T19:46:08Z) 19:56 MinetestBot 02[git] 04Adriankhl -> 03minetest/minetest: Fix memory leak detected by address sanitizer (#10896) 132072afb https://git.io/JtE06 (152021-02-02T19:56:24Z) 19:56 MinetestBot 02[git] 04v-rob -> 03minetest/minetest: Fix list spacing and size (again) (#10869) 13f227e40 https://git.io/JtE0i (152021-02-02T19:55:13Z) 20:01 Sven_vB "VERBOSE[Main]: Executing '/bin/rm' '-rf' '/tmp/MTTempModFolder_5176'" <-- should we add "--one-file-system --" to all rm commands? 20:02 Sven_vB there were bigger projects than MT, who had too few levels of safety in their rm -r 20:04 sfan5 that would be incompatible with non-GNU coreutils 20:04 sfan5 or maybe it'd work on BSD but surely not on Android 21:12 Sven_vB we could do OS detection for that 21:15 Sven_vB OTOH, I see a rather clear divide in gamers. ones that should know how to sandbox a game properly, and ones that have learned to live with the risks. 21:16 Sven_vB yeah I think I prefer devs spend their time with the more game specific issues.