Minetest logo

IRC log for #minetest, 2019-03-27

| Channels | #minetest index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
00:20 MinetestBot [git] paramat -> minetest/minetest: Require 'waving = 3' in a nodedef to apply the liquid waving shader (… 42e1a12 https://git.io/fjUig (2019-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
00:47 ANAND joined #minetest
01:10 MarisaG-laptop joined #minetest
01:17 SmugLeaf joined #minetest
01:21 Miner_48er joined #minetest
02:12 YuGiOhJCJ joined #minetest
02:17 MinetestBot [git] paramat -> minetest/minetest_game: Restrict waving liquid shader to normal water dfe6fd6 https://git.io/fjUXq (2019-03-27T02:17:32Z)
02:19 Cornelia joined #minetest
03:06 paramat joined #minetest
03:07 Nezrok_ joined #minetest
03:09 Nezrok__ joined #minetest
03:30 kaeza joined #minetest
03:30 diemartin joined #minetest
03:48 milkt joined #minetest
04:06 norkle joined #minetest
04:22 testman joined #minetest
04:34 ssieb joined #minetest
04:53 download joined #minetest
04:54 download https://savethealbum.com
04:54 download https://www.holbertforcongress.com https://savethealbum.com
04:55 HeyYou joined #minetest
05:22 Hirato_ joined #minetest
05:35 Ruslan1 joined #minetest
06:02 paramat joined #minetest
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*
07:40 CWz joined #minetest
07:49 ssieb joined #minetest
08:09 nicky joined #minetest
08:17 sonicpp joined #minetest
08:20 Beton joined #minetest
08:24 aheinecke joined #minetest
08:28 karamel joined #minetest
08:28 Tux[Qyou] joined #minetest
08:40 Tuxedo[Qyou] joined #minetest
09:03 amenji joined #minetest
09:22 troller joined #minetest
09:24 proller joined #minetest
09:44 jluc joined #minetest
09:45 proller joined #minetest
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:38 Copenhagen_Bram joined #minetest
10:38 dch joined #minetest
10:51 proller joined #minetest
10:51 fling_ joined #minetest
10:56 njoseph joined #minetest
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: ^
11:02 kaeza joined #minetest
11:11 troller joined #minetest
11:16 carstenw joined #minetest
11:16 riff-IRC joined #minetest
11:20 proller joined #minetest
11:25 sh__ joined #minetest
12:03 indiana joined #minetest
12:19 JDCodeIt joined #minetest
12:19 MinetestBot JDCodeIt: Mar-26 23:48 UTC <paramat> coral reefs are intentionally slightly rare, see https://github.com/minetest/minetest_game/pull/2254#issuecomment-438866092
12:23 YuGiOhJCJ joined #minetest
12:29 twoelk joined #minetest
12:35 Tux[Qyou] joined #minetest
12:36 milkt joined #minetest
12:39 twoelk joined #minetest
13:10 calcul0n joined #minetest
13:14 nri joined #minetest
13:17 twoelk joined #minetest
13:19 * twoelk explores hexchat
13:39 Fixer joined #minetest
14:11 ANAND HexChat is the best! Go for it!
14:12 ANAND <rubenwardy> Quassel FTW
14:15 proller joined #minetest
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:36 proller joined #minetest
14:43 nri joined #minetest
14:50 JDCodeIt can schematics be placed in mgv6 or is that a non-mgv6 feature?
14:59 benrob0329 Never use Pidgin, never
15:16 amenji joined #minetest
15:17 fluxflux joined #minetest
16:04 fluxflux joined #minetest
16:56 Darcidride joined #minetest
17:04 Fixer pidgin requires 1gb of ram? wtf...
17:06 amenji joined #minetest
17:11 argyle77 joined #minetest
17:12 tzh joined #minetest
17:18 FrostRanger joined #minetest
17:25 kurtzmusch joined #minetest
17:26 galaxie Fixer: Try finch. Same thing, but CLI.
17:55 kaosatha joined #minetest
18:03 nri joined #minetest
18:21 YuGiOhJCJ joined #minetest
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:42 nowhere_man joined #minetest
18:45 p_gimeno could we have a mgv6v2?
18:47 p_gimeno I mean, a mgv6 with all the features in other mapgens
18:51 puzzlecube joined #minetest
19:02 Gael-de-Sailly joined #minetest
19:08 Darcidride joined #minetest
19:16 kurtzmusch_ joined #minetest
19:36 Darcidride joined #minetest
19:39 ensonic joined #minetest
19:43 Megaf joined #minetest
19:54 proller joined #minetest
20:02 Blo0D joined #minetest
20:07 MinetestBot [git] DS-Minetest -> minetest/minetest: Optimize core.after in a simple way (#8351) ad75dba https://git.io/fjTvX (2019-03-27T20:05:50Z)
20:13 nri joined #minetest
20:26 walle303 joined #minetest
20:30 FreeFull joined #minetest
20:45 cddepppp256 joined #minetest
21:07 paramat joined #minetest
21:08 paramat JDCodeIt schematic placement is independent of mapgen so works in all of them
21:11 kaeza joined #minetest
21:17 paramat but maybe you mean placement using the decoration API ...
21:19 benrob0329 joined #minetest
21:19 MinetestBot benrob0329: Mar-27 19:23 UTC <kaeza> https://abstrusegoose.com/249
21:20 benrob0329 kaeza: nice
21:22 Jordach joined #minetest
21:30 proller joined #minetest
21:41 puzzlecube joined #minetest
21:53 gorilla joined #minetest
21:56 JDCodeIt paramat: thanks, I tried that in an example and it worked fine
22:13 riff-IRC joined #minetest
22:29 Deyrakaal joined #minetest
22:43 Deyrakaal left #minetest
23:07 sonicpp joined #minetest
23:30 necaremus joined #minetest
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"
23:51 Lone-Star joined #minetest

| Channels | #minetest index | Today | | Google Search | Plaintext