Time Nick Message 14:50 Krock > direction /= distance || 1.0f; 14:50 Krock huh 14:52 p_gimeno yucky but maybe useful 14:52 Krock I also like to divide by booleans 14:55 p_gimeno um, yeah, not useful in C++ 14:57 p_gimeno maybe in python 16:23 sfan5 merging #8814 16:23 ShadowBot https://github.com/minetest/minetest/issues/8814 -- Find LuaJIT headers on vcpkg by adrido 16:39 pmp-p is there a build option to have stdin/stdout console act like the chat ? 16:40 Krock ncurses maybe? There's a build option for it, but dunno what it is capable to do 16:41 pmp-p why bring ncurses, no just simple line reader 16:41 pmp-p or maybe an udp socket instead since reopen() stdio is tricky on android 16:42 pmp-p Krock: could you point me to the relevant part of code ? 16:42 p_gimeno I guess you could write a mod to use socket 16:43 Lone_Wolf ncurses allows you to run commands and talk in the chat, it also lists the logs 16:43 pmp-p p_gimeno: yeah that's my goal once i've learned lua and add a simple rpc too 16:44 Krock Lone_Wolf: forward instructions to pmp-p pls. I don't know. 16:45 Lone_Wolf Not really much to instruct, just compile with ncurses enabled and start up minetest with --terminal IIRC 16:45 pmp-p p_gimeno: i've found luasocket and lua-xmlrpc for starters 16:45 pmp-p Lone_Wolf: thx i'll try that 17:10 pmp-p hmm i probably do something wrong, there's no error msg but does not look like different from without --terminal 17:15 pmp-p got it there should be a error msg in main.c when trying to use --terminial without --server 17:17 pmp-p and somebody obviously forgot to add some \r\n instead of just \n in the banner :) 17:19 Krock who needs \r\n? 17:19 pmp-p ncurses 17:19 pmp-p it sets the terminal to raw mode 17:19 pmp-p so to have \n behaviour must send \r\n 17:20 pmp-p but the ugly display is only when stderr is not properly redirected to a log file 17:29 pmp-p is it ok to PR without issues for trivial additions ? 17:33 Krock what if ncurses does not set the terminal to raw mode? Or a mode where it does not require \r\n. There might be more places that don't add the carriage return flag 17:36 pmp-p the problem is more about stderr and stdout being mixed in same ncurses "fullscreen" window 17:36 pmp-p stderr is rarely vt100 compliant 17:38 pmp-p splitting stderr/stdout would be nicer a bit like http://pmpp.ddns.net/paste/screen/shot-2019-08-18_1566149884.png 17:42 pmp-p and that can probably be done without ncurses at all, i don't think curses dialog are used ( but i could be wrong ) 17:43 pmp-p ( i hate ncurses it a pita to build on old droid ) 17:44 pmp-p bbl food 18:17 Krock !tell pauloue [craftresult doc PR 8813] Replacements search & swap matching items in the input list (point 1). For point 2: not placed if count != 1? right? 18:17 ShadowBot Krock: O.K. 18:24 Krock !tell pauloue [ItemStack:__tostring PR 8785] Thanks for the change. What are the benefits of duplicating ::serialize? 18:24 ShadowBot Krock: O.K. 18:28 pmp-p p_gimeno: using socket from a mod would need override secure.trusted_mods and a polling event loop am i wrong ? 18:47 paramat merging game#2447 18:47 ShadowBot https://github.com/minetest/minetest_game/issues/2447 -- TNT: Remove unusable sounds, use temporary placeholders by paramat 18:48 Krock where's the replacement part there? 19:13 p_gimeno pmp-p: I think that's right, yeah 19:21 paramat the diff shows changes to the sounds, not deleted sounds 20:25 pmp-p could someone please show me where in c++ code the chat buffer is collected and evet sent to lua in client mode ? 20:30 Lone_Wolf Could look at where ncurses gets it 20:30 pmp-p nope client mode not server mode 20:31 Lone_Wolf IIRC there's chat .cpp/.h files, have you checked there? 20:31 pmp-p i just want use a polling with select and a pipe to feed lua 20:31 pmp-p i'm looking at ChatBackend::addUnparsedMessage but i'm not sure 20:34 pmp-p i just want to understand the point client side where Server::handleChat is triggered 20:56 pmp-p hmm that's Client::typeChatMessage in client.pp name was a bit fuzzy 20:57 pmp-p since what it does is sendChatMessage ...