Time Nick Message 00:43 Jordach uh 00:43 Jordach minetest.check_for_falling fails after using minetest.remove_node() and minetest.dig_node() 09:13 timdorohin Well, i have no idea what to do now. Redis background save causes server lag up to 11s every time it wants to, and i can't figure out reason of this (la and iowait still small). 09:14 sfan5 does redis stop responding during that time? 09:16 timdorohin redis-bgsave is non-blocking by design, so... 09:20 timdorohin sfan5: https://mtstat.us.openode.io/lor.minetestserver.ga:30000 - maximum lag chart. at 11:31 and 11:36 redis saved db 09:20 sfan5 I know that it's designed to be non-blocking, but the question is what happens in practice 09:20 timdorohin at this time server was running about 2-3 hours 09:23 timdorohin sfan5: anything. at 11:45 i restarted server and everything was fine till 11:47 when redis saved db again 09:25 timdorohin sfan5: and after second restart (12:03) looks like issue is gone. Heisenbug! 09:29 timdorohin It's windows-style of problem solving: reboot and pray until it works again 09:30 timdorohin But really, io load is 5%, LA<1 what could be wrong? 11:04 longerstaff13-m Having to use my phone through a flipping wifi extender at church as the main router doesn't seem to work with my phone 11:04 longerstaff13-m Both are Netgear 11:05 longerstaff13-m My sister and her fiancé can get on with their phones (then again, my phone does have faulty wifi in it) 14:01 rdococ I'm going to use Blockly for my "using blocks to program Minetest mods" concept. 14:35 rdococ My screen is so small, even though it has thousands of pixels... 14:35 rdococ In fact, it has more than a million pixels and yet it's so small. 14:40 Krock rdococ: street lanterns are one pixel and YUGE 14:41 rdococ The screen's not necessarily *physically* small, but stuff can feel so cramped 14:42 rdococ Especially on Discord, or when using the Blockly Developer Tools. 14:46 rdococ hmm... should drawtype just be a text field or an input? 14:48 rdococ actually, I might create a block for each drawtype that lets you specify various inputs for them 14:52 rdococ Krock: if you only specify 3 tiles to register_node, are they interpreted as {Y, X, Z}? 14:53 Krock depends on drawtype 14:53 rdococ normal drawtype 14:54 rdococ I've decided to have a block for every drawtype that includes inputs for the drawtype and any properties the drawtype has 14:55 Krock for normal it's https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L5845 14:55 Krock that's without any rotation applied 14:55 Krock i.e. param2 = 0 16:30 tenplus1 hi folks :) hey Krock 16:31 Krock hi tenplus1 16:32 tenplus1 o/ 16:33 Mr_Pardison ayyy 16:34 timdorohin sfan5: well, lags gone after swithing redis to appendonly log persistence 16:34 tenplus1 hi mister :) 16:34 timdorohin tenplus1: hi 16:34 tenplus1 hi tim :P 16:35 tenplus1 I added very simple pushing abilities to mobs api, you can now push cows/sheep/pigs around 16:36 timdorohin tenplus1: Yay! 16:38 Mr_Pardison time to do some herding! 16:38 tenplus1 in mob definition add: pushable = true, 16:38 tenplus1 I've only done it for those 3 animals so far :D 16:38 IcyDiamond I'm trying to make a multiblock structure for fusion reactor but i have no idea how to validate these positions with facedir supported as well 16:39 tenplus1 hi icy 16:39 IcyDiamond hi 16:40 IcyDiamond https://i.lunasqu.ee/Screenshot_18-09-15-19:39:43.png this is how i store the structure, the one i've selected is the controller that i want to check its surroundings at 16:40 IcyDiamond topmost array is y 16:41 IcyDiamond table, sorry 16:41 IcyDiamond this is lua 16:41 IcyDiamond xD 16:41 IcyDiamond im way too bad at math but im going to try anyway 16:42 VanessaE ah HAH! 16:43 VanessaE tenplus1 *pounce* 16:43 tenplus1 o/ Vanessa 16:43 VanessaE tenplus1: I've been waiting for you :) 16:44 tenplus1 whassup ? 16:44 VanessaE I was wondering if you'd be willing to work your "redo" magic on bas080's bees and vines mods? 16:44 tenplus1 link me with the mods andI'll check 'em out 16:45 VanessaE https://github.com/bas080/vines ~ https://github.com/bas080/bees 16:46 tenplus1 okies, bookmarked them, will check both out :P 16:47 VanessaE \o/ 16:53 IcyDiamond lua could really use `continue` 16:53 IcyDiamond >.> 16:54 tenplus1 explain icy ??? 16:54 IcyDiamond stacked if statements in loops are so disgusting looking 16:54 IcyDiamond for something do if something ~= 1 then continue end ... end 16:55 tenplus1 isnt that what while loops are for ? 16:55 IcyDiamond as opposed to right now you need 16:55 IcyDiamond for something do if something ~= 1 then .. end end 16:55 tenplus1 while condition is true, loop ? 16:55 IcyDiamond but the if statements stack up.. 16:55 VanessaE refactor, functionalize 16:56 IcyDiamond https://i.lunasqu.ee/Screenshot_18-09-15-19:55:52.png 16:56 IcyDiamond im probably a bad coder 16:56 IcyDiamond but oh well 16:56 IcyDiamond XD 16:57 IcyDiamond in that screen, if i could use if idef > 0 then continue end, it would save an ident 16:57 IcyDiamond same with if defi.millibuckets > 0 then 16:57 IcyDiamond okay that one is a bad example but yeah 16:57 IcyDiamond xD 16:58 IcyDiamond https://i.lunasqu.ee/Screenshot_18-09-15-19:58:23.png idents just annoy me but inline looks even worse 16:59 IcyDiamond https://i.lunasqu.ee/Screenshot_18-09-15-19:58:57.png see, this is much better 16:59 IcyDiamond XD 16:59 tenplus1 so long as code is readable I'm ok with either or 17:00 IcyDiamond first screen is wrong, it needs to be ~= 17:00 IcyDiamond w/e 17:02 IcyDiamond ill figure this out one day 17:02 IcyDiamond rn im too lazy 17:06 IcyDiamond can you rotate a voxelmanip? 17:07 tenplus1 doesnt voxelmanip have it's own schematic placement, and if so a rotation option like the original 17:08 Krock IcyDiamond: "continue"? Since when? 17:08 VanessaE is there a graceful way to transfer a node's metadata into the itemstack that's created when its dug? 17:08 IcyDiamond Krock: 18:53 <+IcyDiamond> lua could really use `continue` 17:08 VanessaE it's* 17:08 Krock well, it has goto 17:08 IcyDiamond meh 17:09 tenplus1 might be able to use on_dig Vanessa, copy metadata, add item, paste information and remove node 17:09 Krock and if you have many nested if-checks to reduce, then use repeat until false end 17:09 IcyDiamond i hate the idea of gotos in any language 17:09 Krock and breaks inside 17:09 tenplus1 goto's can be handy sometimes, but messy 17:15 Krock preserve_metadata = function(pos, node, old_meta, drops) ... end 17:15 Krock that as node definition. not sure if it requires 5.0-dev, though. 17:15 VanessaE ...is not availabe in 0.4 17:15 VanessaE +l 17:15 Krock ah 17:16 Krock after_dig_node provides the node information, but not the itemstack 17:17 rubenwardy continue is a goto 17:17 rubenwardy well, it's a jump 17:17 rubenwardy :D 17:17 Krock if false then is also a jump 17:17 rubenwardy very true 17:17 Krock function calls too.. there's not much more than computing or jumping in code 17:18 rubenwardy there's no real need for jumps 17:18 rubenwardy just skips 17:18 rubenwardy you don't really need turing completeness 17:19 Krock but then you can't implement loops, if you only skip 17:19 Krock it has to go back in some point 17:20 timdorohin Krock: just skip through pointer overflow) 17:20 Krock (unbalanced parentheses are now balanced again 17:21 Krock VanessaE: sounds like you need an engine change which adds "keep_meta" to the drop table 17:21 rubenwardy you can unroll loops 17:21 rubenwardy it'll be fine 17:21 Krock this requires loops to have a static count of iterations 17:21 rubenwardy or you could have virtual mapping of instructions 17:22 VanessaE Krock: I'm doing as tenplus1 suggesteed 17:22 VanessaE -s 17:22 VanessaE -e 17:22 VanessaE jfosnjobgjo[sbrwjobgajortbjo[ 17:22 Krock apt-get purge your-old-keyboard 17:22 VanessaE apt-get upgrade --force new-hands 17:23 Krock run update first to ensure you've got the latests information 17:23 VanessaE heh 17:23 Krock -s 17:24 rdococ ugh 17:24 rdococ there doesn't seem to be a channel to help with blockly development. 17:24 rdococ #blockly and ##blockly don't exist on freenode, at least 17:25 Krock also search though the channel descriptions. they might use another main channel 17:26 rdococ For some reason, I can't get the development tools to export workspaceBlocks.xml 17:26 rdococ the file's just empty 17:26 rdococ well, it contains an empty xml tag 17:26 tenplus1 hi rdococ 17:27 rdococ hi 17:35 rdococ there seem to be tons of errors in the developer console about parsing JSON 17:35 rdococ I have no idea why 17:35 rdococ I'm trying to read the errors but I can't even access the JSON that the error is occuring with 17:41 Fixer apt-get install white cheap yet good mitsumi classic back make keyboards great again without this thin hipster shit 17:42 tenplus1 lol 17:43 rdococ make minecraft great again, by playing minetest insteaad 17:44 tenplus1 o/ calcul0n 17:56 rdococ I might switch back to using Snap! blocks that don't do anything coupled with a completely separate interpreter in Lua. 17:57 rdococ At this point, it isn't even my own incompetence, but just that the tools I'm using are broken. 17:59 tenplus1 hi benrob 17:59 benrob0329 Hello tenplus1 18:00 tenplus1 lolol 18:01 tenplus1 he makes some amaziung redstone builds 18:01 tenplus1 wb 18:04 Mr_Pardison ty 18:11 VanessaE tenplus1, Krock: in case you're curious, my solution: https://gitlab.com/VanessaE/minislots/commit/5b3cdf0af6b44ee7d0e933f8bb5f7b7d2c3478d3 18:12 VanessaE it's a bit manual, maybe a little brute-force, but it works. 18:13 VanessaE I just wish I could set the itemstack's description or the contents of its mouseover tooltip 18:13 VanessaE oh wait...I can 18:13 tenplus1 hehe yay :) 18:21 VanessaE https://gitlab.com/VanessaE/minislots/commit/7e37f00d826be36a536beca1351dd8de3ebc9d21 18:21 tenplus1 now the money goes with the slot machine :) nice 18:21 VanessaE yup 18:21 VanessaE it used to require you to cash-out before it would let you dig 18:22 VanessaE this is in prep for another feature though 18:23 rdococ I feel sad. 18:23 tenplus1 you shoudl make a server called Casino Royale where you play machines to raise cash and buy blocks to build with :D 18:23 VanessaE aw, rdococ has a sad :( 18:24 tenplus1 why you sad rdococ ?? 18:24 Mr_Pardison tenplus1: that's actually a very good idea. 18:24 rdococ blockly developer tools doesn't want to export workspace blocks... 18:24 VanessaE tenplus1: in fact, saving this stuff into the item meta is part of that next feature - I'm gonna add a basic owner's-only info/config screen, and the casino name is one thing they'll be able to set 18:25 rdococ I wanted to create a system that would allow you to create minetest mods in a visual environment 18:25 Mr_Pardison could also have more fancy/expensive machines that allow you to directly get building items. 18:25 rdococ imagine trying to create a visual programming language with minetest formspecs, though 18:25 tenplus1 nuuu, around the machines are store blocks that showcase and sell blocks :) it all adds to the experience :D 18:25 VanessaE tenplus1: and since it takes in and pays-out minegeld, your idea could work :) 18:25 Mr_Pardison no but for ones that you can't craft. 18:26 tenplus1 ahh, gotcha mister :D 18:28 IcyDiamond sweet 18:28 IcyDiamond i got my multi-node structure to work 18:28 IcyDiamond not with facedir yet tho 18:29 IcyDiamond https://i.lunasqu.ee/Screenshot_18-09-15-21:28:44.png even reports errors 18:30 rdococ Ooh, imagine creating Minetest mods in Minetest 18:31 IcyDiamond no idea how to do this with accounting facedir 18:31 IcyDiamond guess i have to rotate an array somehow 18:31 tenplus1 unless you have 4x arrays for each direction 18:31 timdorohin rdococ: we need to go deeper :D 18:31 tenplus1 and depending on direction of coinsole it checks whichever array suits that orientation 18:31 rdococ something like scriptblocks, except you would select a region and it would scan for nodes that act like hat blocks or definitions on their own and then it would translate it to lua 18:32 rdococ we can call it... nodely 18:33 IcyDiamond https://i.lunasqu.ee/Screenshot_18-09-15-21:33:15.png my data 18:33 IcyDiamond xD 18:33 IcyDiamond the variables are content IDs so its easy to compare to voxelmanip 18:34 rdococ looks like the width and height are 15, correct? 18:34 IcyDiamond yes 18:35 tenplus1 wait, thought it was 3 high ? 15wide 15 deep ? 18:35 rdococ yes 18:35 IcyDiamond yes 18:36 rdococ then you can convert them to coordinates, and then rotate the coordinates 18:37 IcyDiamond https://termbin.lunasqu.ee/ms4u heres how i do it right now 18:37 IcyDiamond (its bad i know) 18:37 rdococ x = (i - 1) % 15; y = math.floor((i - 1) / 15); -- these coordinates are zero-indexed 18:38 rdococ s/y/z/ 18:38 IcyDiamond yeah 18:41 tenplus1 this may sound silly but, how about minetest.find_nodes_in_area(pos1, pos2, {"group:nodebits")) 18:42 tenplus1 count how many of the purple blocks it contains, and only check if "air" is in the right places 18:42 rdococ minetest.find_nodes_in_area(yay, yay, yay) 18:42 tenplus1 that way you dont need to rorate 18:42 tenplus1 *rotate... if air is in right place (since it's circular in any rotation) and number of group:nodebits is accurate then it's build properly :D 18:43 IcyDiamond well i need specific nodes in specific places 18:43 IcyDiamond on the structure 18:43 tenplus1 check for air and the 4 possible controller positions, if pos1 or pos2 or pos3 or pos4 etc 18:44 tenplus1 that way you dont need to scroll through every solid node, only air which voxelmanip can check real quick 18:44 tenplus1 and since it's circular an easy find_nodes_in_area can count the solid bits 18:45 tenplus1 just a possibility :D 18:48 rdococ actually, if you offset the x and y so that they're centered around 0 (you might have to offset by a non-integer, but there shouldn't be any precision loss if you only offset by whole halves e.g. 7.5) then you can multiply each coordinate based on the four directions 19:20 rdococ https://github.com/google/blockly-devtools/issues/307 19:36 tenplus1 nite all o/// 20:51 Calinou hi :) 23:16 xerox123 word of caution, that bug where spamming spaces makes it look like someone else said something? Just happened on a server, might be just one guy doing it everywhere 23:18 ChimneySwift servers which allow newline characters in chat also have that issue if people insert them with csm 23:19 ChimneySwift it's good to know that it's possible though, if people are getting fooled they need to be told that it's a thing XD 23:20 ChimneySwift large monitors and chat coloring csms also ruin those 23:24 rdococ blockly developer tools combined with my testing document was more than my RAM could handle 23:24 rdococ I'll need to download more :/ 23:25 ChimneySwift dang, make sure you delete system32 before trying to download more ram 23:26 rdococ if your internet is fast enough, cloud RAM 23:28 ChimneySwift XD