Time Nick Message 00:20 MinetestBot 02[git] 04paramat -> 03minetest/minetest: Require 'waving = 3' in a nodedef to apply the liquid waving shader (… 1342e1a12 https://git.io/fjUig (152019-03-27T00:18:43Z) 00:24 calcul0n Emerald2, i'm afraid no :) 00:25 calcul0n which is why i make tree farms with little space around, so i can cut everything, replant and get a clean result 00:25 Emerald2 Sensible of you. I built a house in a forest. :P 00:27 calcul0n ho, get an axe then :) 00:27 Emerald2 Yeah I had to go clean it up with my axe. The admin since added the woodcutting mod to the server. 00:28 calcul0n i don't know this mod, does it work better? 00:28 Emerald2 It lets you hold sneak and cut a tree node then it keeps on cutting the rest of the tree. 00:29 Emerald2 Just got to make sure you don't break your axe. 00:29 calcul0n hmm, interesting 00:30 Emerald2 It's really handy with trees that have trunk nodes in annoying places. :D 00:31 calcul0n yeah, i see :) 00:35 argyle77 I wish trees had serial numbers 02:17 MinetestBot 02[git] 04paramat -> 03minetest/minetest_game: Restrict waving liquid shader to normal water 13dfe6fd6 https://git.io/fjUXq (152019-03-27T02:17:32Z) 04:54 download https://savethealbum.com 04:54 download https://www.holbertforcongress.com https://savethealbum.com 06:54 Nezrok I have a mod that, when I use it, does something to every node in the vicinity. I can't figure out how to get it to affect nodes in the area randomly (Any node, any position) 06:58 ANAND Nezrok, you can use ABMs for that 06:58 ANAND ~book ABMs 06:58 ANAND er... 06:58 Nezrok It is a tool, I need it to do it instantly 07:00 ANAND Ah ok 07:01 Nezrok Say for example, I had a bunch of slopes, on a wall 07:01 Nezrok And I wanted to rotate a large amount of them at once, but not all in the same area 07:01 Nezrok Cause it looks more organic, more natural 07:02 ANAND Oh I see what you're trying to do 07:03 ANAND Where exactly are you having problems? 07:03 Nezrok With the random node selection 07:03 Nezrok I can do all of them at once easily, when I use the tool 07:03 Nezrok But I don't want to do it all at once 07:03 ANAND Ok 07:04 ANAND Would it just grab any node and rotate it? 07:05 Nezrok All of them, yes 07:05 Nezrok If they support it, that is 07:06 Nezrok But yes, say it's currently working on a 10x10 area, 100 blocks, and I want it turn maybe 20 of the 100 at once, over the whole area 07:07 ANAND The thing is not many nodes support rotation, AFAIK 07:07 Nezrok Well yes, but it's a hypothetical 07:08 ANAND You could try using LVMs 07:08 Nezrok Yes, it does 07:08 ANAND Hm, so you just want a way to randomly select a bunch of coords in the selected region 07:09 Nezrok Exactly 07:09 ANAND Use math.random() 07:09 Nezrok Yes, and? 07:10 ANAND One sec 07:11 ANAND See https://rubenwardy.com/minetest_modding_book/en/map/lvm.html#reading-nodes 07:12 ANAND Instead of using three nested loops, use one single loop, and replace `local idx = a:index(x, y, z)` with `local idx = a:index(math.random(1,10), math.random(1,10), math.random(1,10))` 07:13 Nezrok Oooh 07:13 ANAND Basically, the code fetches random coords within a loop 07:14 ANAND You could even use math.random() for the loop control itself, for even moar random 07:14 Nezrok And instead of the x,y,z I'd put the emin and emax positions? 07:15 ANAND Yes, math.random(emin, emax) 07:15 ANAND For x, y, and z 07:15 Nezrok Okay 07:16 ANAND If you feel math.random is too predictable, or not random enough, you can use PcgRandom: https://github.com/minetest/minetest/blob/42e1a127140965cac1be6e51e48192e341c2a29e/doc/lua_api.txt#L5386 07:17 ANAND The random selection part is actually much easier without LVMs, but if the number of nodes to be modified is large, get_node/set_node won't perform very well. 07:17 Nezrok Yes, that was he issue I had run into before 07:17 Nezrok Too laggy 07:17 Nezrok the* 10:30 p_gimeno selecting node positions at random doesn't look too efficient for that purpose, I suggest looping through all positions and using math.random to determine whether to change or not a certain position 10:30 p_gimeno like: for z = 1, N do for y = 1, N do for x = 1, N do if math.random(1, 10) == 1 then --[[change node]] end end end end 10:59 ANAND That's a good idea too 11:00 ANAND Or maybe `if math.random(1,10) % 3 == 0 then` for higher hit rate 11:00 ANAND Nezrok: ^ 12:19 MinetestBot JDCodeIt: Mar-26 23:48 UTC coral reefs are intentionally slightly rare, see https://github.com/minetest/minetest_game/pull/2254#issuecomment-438866092 13:19 * twoelk explores hexchat 14:11 ANAND HexChat is the best! Go for it! 14:12 ANAND Quassel FTW 14:20 JDCodeIt I switched to hexchat and like it better than Pidgin (not to mention the less than 1 GB memory footprint!) 14:21 p_gimeno hexchat rocks, and plugins can be written in Lua ^.^ 14:22 p_gimeno I wrote one to provide issue links when ShadowBot was down 14:34 ANAND Ha, nice 14:34 ANAND Cool idea 14:34 ANAND I (ab)use the custom commands feature among others 14:50 JDCodeIt can schematics be placed in mgv6 or is that a non-mgv6 feature? 14:59 benrob0329 Never use Pidgin, never 17:04 Fixer pidgin requires 1gb of ram? wtf... 17:26 galaxie Fixer: Try finch. Same thing, but CLI. 18:41 JDCodeIt yes - virtual size - what the heck right? 18:42 JDCodeIt There must be a video came easter egg in there 18:42 JDCodeIt *game 18:45 p_gimeno could we have a mgv6v2? 18:47 p_gimeno I mean, a mgv6 with all the features in other mapgens 20:07 MinetestBot 02[git] 04DS-Minetest -> 03minetest/minetest: Optimize core.after in a simple way (#8351) 13ad75dba https://git.io/fjTvX (152019-03-27T20:05:50Z) 21:08 paramat JDCodeIt schematic placement is independent of mapgen so works in all of them 21:17 paramat but maybe you mean placement using the decoration API ... 21:19 MinetestBot benrob0329: Mar-27 19:23 UTC https://abstrusegoose.com/249 21:20 benrob0329 kaeza: nice 21:56 JDCodeIt paramat: thanks, I tried that in an example and it worked fine 23:31 necaremus hey, i have a stupid question :D i've tried setting up a server and if someone attempts to connect, they get a timeout error. what could be the problem? 23:31 necaremus i think i enabled the ports in firewall and router... 23:32 rubenwardy you need to also port forward 23:32 rubenwardy and make sure that its done on UDP 23:32 rubenwardy you can test by providing an IP here like so: 23:33 rubenwardy !up 142.4.209.73 30001 23:33 MinetestBot 142.4.209.73:30001 is up (87ms) 23:33 necaremus ok, it's done on UDP. but i have to look up port forward... what's that? (me noob :D) 23:34 necaremus found good article :3 thanks, gonna try 23:34 rubenwardy well, if you're in a home network, you need to make it so the router knows which port on the public IP to route to your computer 23:35 cheapie Heh, I guess there's still a copy of MT 0.4.something installed on my server that hasn't ran in ages... 23:35 * cheapie starts it up to see if it runs 23:35 cheapie !up 2600:3c03::f03c:91ff:fe37:4704 30000 23:35 MinetestBot ValueError: too many values to unpack (expected 2) (file "/home/sfan5/mtbot/modules/serverup.py", line 36, in serverup) 23:35 cheapie :/ 23:35 rubenwardy lool 23:35 rubenwardy probably doesn't support ipv6 because of the : 23:36 cheapie !up 45.56.102.16 30000 23:36 MinetestBot 45.56.102.16:30000 is up (90ms) 23:36 rubenwardy !up [2600:3c03::f03c:91ff:fe37:4704] 30000 23:36 MinetestBot ValueError: too many values to unpack (expected 2) (file "/home/sfan5/mtbot/modules/serverup.py", line 36, in serverup) 23:36 sfan5 yes 23:36 * cheapie shuts it back down 23:43 necaremus mhm... ok, if i understand port forwarding correctly, i did it already (i enabled it on router and told directly which PC listens on that port, just didn't know it's called that way ) 23:43 necaremus !up 192.168.178.30 30000 23:43 MinetestBot 192.168.178.30:30000 seems to be down 23:43 necaremus but something is wrong :D 23:45 necaremus btw, is it normal that the console logs "listening on 0.0.0.0:30000" althou the config file has address in it? 23:45 sfan5 yes 23:45 sfan5 "192.168.178.30" is your local address, it can not be reached from the internet 23:46 necaremus head->table 23:46 necaremus doh 23:47 necaremus !up 88.130.60.65 30000 23:47 MinetestBot 88.130.60.65:30000 seems to be down 23:47 necaremus :/ 23:49 sfan5 make sure the port forward is set to "udp"