Minetest logo

IRC log for #minetest, 2020-04-15

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

All times shown according to UTC.

Time Nick Message
00:54 oil_boi_ sfan5: Hopefully that video I posted in the comments of the Github Collision Detection issue will help with the debugging of the new issue
00:54 YuGiOhJCJ joined #minetest
00:55 oil_boi_ I'm honestly not sure how I could help with it any further
01:08 oil_boi_ I cannot figure out how to disable the fast-math flag as I cannot find the documentation on it :(
01:15 nissiel joined #minetest
01:16 nissiel hello
01:19 ANAND joined #minetest
01:21 Lapis_Wolf I am a dedicated player of Minetest and have been for many years,at minimum since 0.4.14-16(it's been a while so I can't remember the exact version. Now,I wish to report what I believe may be a bug in 5.2.0 and possibly from earlier 5.x versions. Is this the chat where I report bugs??
01:23 ANAND MT's official issue tracker is on GH: https://github.com/minetest/minetest/issues
01:23 ANAND But if you're unable to file a bug report on GH, I think it's perfectly alright to report it here
01:24 Lapis_Wolf Thank you very much. Btw, I love everything that has been done with the game over the years, you all are amazing people! :D
01:26 ANAND I hope I'm not included in the "you all are amazing people!" :P
01:28 ANAND I'm assuming you're referring to the devs when you say that
01:30 oil_boi_ Everyone that positively improves minetest as a whole engine or game wise is a good person
01:30 oil_boi_ Also ANAND I'm very curious, what is the issue?
01:31 ANAND oil_boi_: What issue?
01:34 Lapis_Wolf You all applies to devs,mod makers,game makers, texture creators,players,etc who help with the game.
01:37 oil_boi_ Oops wrong person sorry ANAND, Lapis_Wolf what was the issue?
01:37 nephele_ joined #minetest
01:38 ANAND Ah ok :)
01:45 Lapis_Wolf I noticed that when I have damage disabled in any world, mobs will still come up, attack and damage/kill me while there is no healthbar at the bottam
01:52 ANAND Weird
02:06 oil_boi_ Sounds like the mobs mod is decreasing a nonexistant value then running the kill function
02:17 ANAND Lapis_Wolf: Did you try updating your mod? There might be newer versions of the mod released to fix this bug.
02:17 Lapis_Wolf it happened with the not so simple mobs mod and all other mobs mods i have
02:23 Taoki joined #minetest
02:28 Hawk777 joined #minetest
02:34 Lapis_Wolf found the best spawn point ever,it's literally all ocean,no land exists...
02:42 Verticen joined #minetest
03:14 oil_boi_ minetestbot
03:14 oil_boi_ @minetestbot
03:14 oil_boi_ minetestbot help
03:14 oil_boi_ :(
04:26 Hawk777 joined #minetest
04:56 Ruslan1 joined #minetest
04:58 Ruslan1 I tried to login to minetest forums and it said You exceeded the maximum allowed number of login attempts. In addition to your username and password you now also have to solve the CAPTCHA below.
05:08 SmugLeaf joined #minetest
05:16 murkle joined #minetest
05:25 TomTom joined #minetest
06:01 MinetestBot [git] nerzhul -> minetest/minetest: Verify database connection on interval (#9665) 5c588f8 https://git.io/JfvsX (2020-04-15T06:01:11Z)
06:03 MinetestBot [git] sfan5 -> minetest/minetest: Fix parsing JSON with large integers (#9674) 8ae8c16 https://git.io/JfvsF (2020-04-15T06:01:28Z)
06:36 macc24 joined #minetest
07:15 calcul0n joined #minetest
07:20 erlehmann_ joined #minetest
07:37 FreeFull joined #minetest
07:40 Flabb joined #minetest
07:46 mizux joined #minetest
08:11 NetherEran joined #minetest
08:27 tomraceror joined #minetest
08:38 ShadowNinja joined #minetest
09:03 Beton joined #minetest
09:03 YuGiOhJCJ joined #minetest
09:04 Fixer joined #minetest
09:16 sknebel joined #minetest
09:20 Fixer_ joined #minetest
09:39 Seirdy0 joined #minetest
10:01 tomraceror joined #minetest
10:02 erlehmann joined #minetest
10:04 macc24 joined #minetest
10:09 HDMI_STECKDOSE joined #minetest
10:17 calcul0n_ joined #minetest
10:23 calcul0n joined #minetest
10:32 proller joined #minetest
11:14 Daisae joined #minetest
11:15 Daisae How can one identify unknown items in inventory or the world?  Such as to see their item string.
11:18 sfan5 tooltip_append_itemname = true probably does what you need
11:28 BillyS joined #minetest
11:28 Daisae Yes, thanks.
12:14 tf2ftw is there a setting to control swing speed?
12:25 lmat Lapis_Wolf: Are you saying that animals inflict damage when damage is disabled? And this is a bug?
12:26 lmat tf2ftw: What is swing?
12:26 tf2ftw "fist"
12:27 tf2ftw lmat, the speed in which a tool or fist is moving
12:29 karamel joined #minetest
12:49 HDMI_STECKDOSE joined #minetest
12:53 Daisae joined #minetest
13:02 calcul0n tf2ftw, maybe with full_punch_interval in tool_capabilities, not sure what it does
13:11 proller joined #minetest
13:16 proller joined #minetest
13:23 Daisae Krock: Last June p_gimeno made a patch to make placed leaves decay.  You were talking about it with us also. SmallJoker made a patch to accomodate some needed override.
13:23 Daisae Now using that as a module causes an error : attempt to index global 'default' (a nil value)
13:23 Daisae https://notabug.org/pgimeno/Gists/raw/minetest--mod-force-leaf-decay/init.lua
13:24 Daisae Do you know, off-hand what the problem is?  there was a function addressing default.after_place_leaves . I guess it is related to that.
13:27 orbea Daisae: you have the full error message?
13:28 orbea complete with line numbers? what MTG version?
13:28 ANAND Daisae: The error message seems to hint that the `default` table itself seems to be missing. Have you added `default` as a dependency to your mod?
13:29 Daisae ModError: Failed to load and run script from ~/.minetest/mods/decay/init.lua:
13:29 Daisae ~/.minetest/mods/decay/init.lua:19: attempt to index global 'default' (a nil value)
13:29 Daisae stack traceback: ~/.minetest/mods/decay/init.lua:19: in main chunk
13:29 Daisae That is all.
13:29 Daisae It has no dependency file. That is needed?
13:29 ANAND Daisae: Try adding the following to the mod's mod.conf      `depends = default`
13:29 ANAND Yes
13:30 ANAND If the file doesn't exist, simply create one
13:30 ANAND See https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L163
13:34 Daisae That got rid of the error message. I'm testing it now.
13:38 Daisae it works
13:41 Ruslan1 joined #minetest
13:47 Ruslan1 I tried to login to minetest forums and it said You exceeded the maximum allowed number of login attempts. In addition to your username and password you now also have to solve the CAPTCHA below.
13:47 jonadab joined #minetest
13:48 sfan5 and?
13:51 Ruslan1 I can’t login
13:52 sfan5 and did you solve the captcha?
13:53 Ruslan1 Yes
13:53 Ruslan1 It did keep going
13:56 Verticen joined #minetest
13:57 Ruslan1 sfan5 it did keep going
13:58 sfan5 well no idea then
14:00 Ruslan1 sfan5: can you try login my account
14:01 sfan5 login attempts are probably per IP address, so that will work
14:04 Ruslan1 sfan5: ok it still says You exceeded the maximum allowed number of login attempts. In addition to your username and password you now also have to solve the CAPTCHA below.
14:08 Ruslan1 sfan5: can you please let owner know about my account
14:09 sfan5 there is no problem with your account
14:09 sfan5 and I have no idea what I can do to fix the captcha for you
14:11 Ruslan1 sfan5: yes
14:18 Ruslan1 Should I make new account?
14:18 sfan5 if you wait a while you should be able to log in again
14:20 Ruslan1 Are you fixing it
14:29 MinetestBot [git] MoNTE48 -> minetest/minetest: Android: add Android Studio support, completely redone java part (#9066) 62ae7ad https://git.io/Jfvw1 (2020-04-15T14:27:40Z)
14:30 Ruslan1 sfan5: if I fail to login then I cannot login anymore
14:31 Henson joined #minetest
14:31 sfan5 yes I know what your problem is
14:31 sfan5 try waiting a day
14:31 Ruslan1 How much days
14:33 Ruslan1 sfan5: how many days
14:33 sfan5 one
14:33 Henson is there a way to change a players name on a server, specifically the name that appears over their head?
14:34 ANAND Henson: You'll need a mod to do that.
14:35 ANAND See https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L5895 for the API function to be used
14:35 Ruslan1 sfan5: I still have login attempts
14:37 macc24 joined #minetest
14:39 captaineKiller joined #minetest
14:41 Lapis_Wolf joined #minetest
14:41 jimender2 joined #minetest
14:42 absurb joined #minetest
14:43 Henson ANAND: thank you.  Do you know much about minetest internals?
14:49 Wuzzy joined #minetest
14:52 ANAND Not too much I'm afraid. But I can manage to find my way around. :)
14:57 craigger joined #minetest
14:59 Fixer joined #minetest
14:59 Taoki joined #minetest
15:01 Taoki joined #minetest
15:17 macc24 joined #minetest
15:19 Telesight joined #minetest
15:20 Telesight Hello all ...
15:20 tomraceror joined #minetest
15:21 Telesight Why is it that my Minetest client uses my CPU at 100% ?
15:24 Lone_Wolf joined #minetest
15:26 sfan5 in which situation?
15:27 Telesight Always ... after 1 or 2 minutes after starting Minetest
15:30 craigger joined #minetest
15:33 Telesight This use of 100% of a CPU makes fanless laptops shutdown after 10 minutes playing Minetest
15:33 texmex Telesight: macOS user? Performance absolutely sucks on that platform.
15:34 Telesight No, I am a full Ubuntu server ;-)
15:35 sfan5 100% of a single thread? or multiple? do you still reach 60 FPS when that happens?
15:38 Henson joined #minetest
15:38 Telesight I have 12 processors in my systemmonitor, and the load of 100% is changed to another thread after 30 seconds or so. But a small laptop gets overheated and shuts down.
15:38 Telesight My player stands still in the game, no moving ...
15:40 Telesight fps is 58
15:40 sfan5 hm then it's probably not busy doing anything useful
15:40 sfan5 any special settings in your minetest.conf?
15:42 Telesight WEll, let me see ..
15:44 Flabb joined #minetest
15:45 Taoki joined #minetest
15:46 Noclip Could it be related to any mod that you are using which has for example a bug and no goes crazy?
15:47 Testus joined #minetest
15:47 calcul0n_ joined #minetest
15:48 Telesight Noclip then it would be server dependend ?
15:49 Taoki joined #minetest
15:51 Noclip Does this happen in multi- or singleplayer?
15:51 Noclip (Or in other words: Is the server running on the same machine?)
15:53 Telesight No, the client is connected to one of these idiotic *** by Telesight servers
15:54 Ingar what kind of CPU ?
15:55 Telesight Intel® Core™ i7-8750H CPU @ 2.20GHz × 12
15:55 HolyGun joined #minetest
15:57 Ingar it's all them bug mitigations eating ur CPU :p
15:58 Noclip Telesight: I would try the following: Restart Minetest with a 100% clean minetest.conf file and then create and join a new Minetest Game world without any additional mods. If then the issue still occures we know that it's not caused by your minetest.conf or any mods. Also telling us your Minetest version might help.
15:58 Ingar and, imho, if your PC dies with a single process doing 100% : RMA it
15:59 DS-minetest joined #minetest
16:00 Telesight Noclip: an empty minetest.conf ?
16:01 Telesight Client version 5.0.1
16:03 Noclip `/mv ~/.minetest/minetest.conf ~/.minetest/minetest.conf.bak`
16:05 Noclip Do that and then start Minetest again. It should then create a new minetest.conf.
16:23 dabbill joined #minetest
16:24 Telesight Ok, new minetest.conf, new local world, no mods: CPU's are now on max 40%
16:31 tomraceror joined #minetest
16:35 QwertyDragon joined #minetest
16:37 fluxflux joined #minetest
16:41 Telesight When I fly CPU goes over 80%
16:43 sfan5 it's generating the map so that doesn't sound entirely unexpected
16:44 HDMI_STECKDOSE joined #minetest
16:44 Telesight Player stands still now, and stil CPU over 80%
16:47 Krock definitely not normal. my E8500 doesn't even each 40% when flying
16:47 Noclip I'm currently standing still in a MineClone 2 world and I'm also at around 40% CPU usage.
16:47 Krock also how is your CPU usage at 80% if Minetest only makes use of one core, i.e. 1/6th?
16:48 Krock Telesight: what does htop/taskmanager tell you?
16:48 sfan5 standing idle, 60 FPS is about ~55% on one core here
16:49 rtjure joined #minetest
16:49 Telesight htop: Minetest 76%
16:49 Krock since which client version?
16:50 Krock does 5.3.0-dev solve your problems?
16:50 Krock bad GPU driver?
16:51 Telesight I see this since a few months, so after 5.0
16:52 Krock 5.1.0 you mean?
16:52 Krock 5.0 is already out for a long time
16:52 Telesight Cleint 5.0.1
16:52 Noclip One of my 4 threads is often at 100% but it's changing very quickly. Overall still 40% to 50%. Also Minetest isn't the only programm running right now.
16:52 Krock Telesight: so what about 5.3.0-dev?
16:53 Krock try/error until the problem's found
16:53 Telesight I compiled the client 5.3.0.dev but it gave 100% CPU use too
16:53 Krock with some luck it fixes itself by a software update
16:54 Krock and it wasn't a problem with - say - 0.4.17.1 ?
16:54 Krock or rather: still isn't
16:54 orbea Telesight: git bisect :)
16:55 Telesight hmmm I have not checked that at that time, but is on 3 different laptops now
16:55 Telesight So it is not laptop dependent
16:56 Noclip Telesight:  Was 76% the average cpu usage or the usage of one core / thread?
16:57 Krock anything else is not possible. Minetest cannot use more than one core
16:57 Telesight 1 thread and after a minute or so the next tthread gets te load
17:01 Noclip As I've said, one of my threads was often at 100% but it was always just one (as Krock said it can't use more) and it changed at least as fast as htop updated it. Maybe that's just normal?!
17:03 Noclip Telesight: Was one of those laptops a gaming laptop with a good graphics card (supported by appropriate drivers)?
17:06 Telesight I do have a good machine with an nVidia card that gives problems with Ubuntu, so I use the Intel GPU
17:08 Noclip So the NVidia card is completely unused? Can you give us more information about the Intel GPU?
17:11 Telesight Yep, I always had problems with those nVidia cards on other laptops, never solved the problem ..
17:11 Testus left #minetest
17:11 Telesight Intel® UHD Graphics 630 (Coffeelake 3x8 GT2)
17:24 Testus joined #minetest
17:24 HDMI_STECKDOSE joined #minetest
17:34 NetherEran joined #minetest
17:36 majochup joined #minetest
17:36 pipo joined #minetest
17:37 pipo Hi Telesight ... thought it was in the minetest.dev channel :)
17:38 Telesight No I never enter that ;-)
17:39 Telesight pipo; What is your CPU usage for Minetest?
17:40 pipo hmmm ... just logged out ... moment ...
17:41 tomracer joined #minetest
17:41 pipo Telesight: 10-12 percent on NAIB
17:41 pipo Telesight: while i am alone on it and not moving
17:42 Noclip I've closed all major programms, started Minetest (5.2.0) with a new minetest.conf file and created a new Minetest Game world. While standing still one of my threads also had around 40% usage. While flying around it was between 60% and 80% and after increasing the few distance to 600 (still flying) it was between 80% and 100%.
17:42 Telesight Noclip: looks likes my results ...
17:43 pipo Telesight: if i start moving ... depending on the environment ... 25 percent on NAIB
17:45 pipo not moving ... viewing range reduced to 40 ---- 6 percent
17:45 Noclip After flying a while I activated unlimited viewing range and looked back at all the generated terrain. The cpu thread in use now keept at 100% and my fps dropped to just 7.
17:46 pipo same place, still not moving ... viewing range set to 100 --- 18 percent
17:46 pipo with HexChat and 3 terminal open at the same time
17:48 pipo what i saw ... it depends on the map area you are in ... if i am in/above dense jungle wood areas ... RAM usage and CPU usages goes up
17:49 DS-minetest disable fancy leaves for faster jungles
17:50 Telesight Go, hoover above water that will do something ...
17:50 Noclip However my laptop's cpu temperature seemed to be stable at around 70°C which is still far under the critical temperature (100°C) so it's not really problem for me. Interestingly at the same time also the other cpu threads seemed to get up to around 40% to 60%.
17:51 Telesight This behavior kills cheaper fanless laptops
17:51 Noclip pipo: Jungle can really be a pain for performance ...
17:51 Lone_Wolf joined #minetest
17:53 pipo switched on noclip, fly, viewing range > 400 AND unlimited viering range ... it still stays below 50 percent CPU, but RAM fills up quickly now ... and fans start running
17:55 Telesight Same server, for me it is above 80% CPU
17:55 Noclip My laptop was very cheap but I bought it as used and it's already very old. When it was new it was very expensive. Luckilly it has a fan. It's also definitely not a gaming device, it doesn't even have a graphics card ...
17:55 pipo this area has a lot of water in it ... maybe that makes a difference?
17:56 * DS-minetest was using a viewing range of 5 with his old pc; foggy wielded items
17:56 Noclip I think it really depends on the power of the computer and not on minetest ...
17:57 Telesight My view always been at 4000 ... on every server
18:02 pipo Telesight: that's a normal client machine, you are not playing on directly on the server which holds the complete map?
18:03 Telesight Yes with a normal client connected to a server
18:03 DS-minetest it's no wonder that you've got bad performance when you always play minetest with such a high viewing range :P
18:04 DS-minetest just turn it down
18:04 Telesight I have to watch all those little griefers with my sharp eyes ...
18:04 DS-minetest ¿
18:05 Telesight And I do this for 5 years or so ...
18:06 DS-minetest you could connect with multiple clients and attach those to the players you want to watch
18:07 pipo still on NAIB ... CPU usage below 10 percent ... but /spawn or /home sooems to MOVE me, but the map does not render!
18:07 pipo *seems
18:08 Telesight SkyWars has 60% CPU and 66 players ... so it seems not a server problem ...
18:09 _Zaizen_ joined #minetest
18:11 * pipo is just below Telesight on NAIB now .. 28 percent CPU ...
18:32 majochup joined #minetest
18:40 MDude joined #minetest
18:40 Lapis_Wolf that explains why his/her name is Telesight
18:41 Pie-jacker875 joined #minetest
18:41 Seirdy joined #minetest
18:41 DS-minetest new mod: https://github.com/Desour/random_horse
18:42 Telesight Lapis what explains what?
18:42 pipo lol
18:42 Lone_Wolf waitwat lol
18:43 Lone_Wolf That mod looks like it'd be fun in singleplayer
18:43 Seirdy joined #minetest
18:43 Lone_Wolf *multiplayer
18:43 Lone_Wolf Autotype is weird today
18:44 DS-minetest mod only works in multiplayer
18:44 DS-minetest one can't ride themselves
18:46 Conradish006 joined #minetest
18:57 calcul0n joined #minetest
18:57 tomracer joined #minetest
19:04 Andrey01 joined #minetest
19:05 adfeno joined #minetest
19:05 adfeno Hi, how to monitor which things in a server are causing lag?
19:06 Krock missing sit animation, DS-minetest
19:06 MDead joined #minetest
19:06 sfan5 the profiler
19:06 Krock there are multiple profilers actually
19:06 Krock the mod profiler is probably the one you need
19:07 Noclip Telesight: I think he means that watching "all those little griefers with [your] sharp eyes" explains you name "Telesight": You have such a good sight as if you would use a telescope.
19:08 adfeno Krock: Was the "mod profiler" suggestion to me?
19:08 Krock # profiler.load = false
19:08 Krock see minetest.conf.example
19:08 Telesight Noclip You are very close ...
19:09 Krock you can run the chat command in-game to get a mod execution time report
19:09 Krock (the chat command = "/profiler save FORMAT")
19:10 Andrey01 hello, I have a problem: I run minetest-5.2.0-dev-2907c0f3 build and after I had installed the stable 5.2.0 (other minetest) and wanted to run again that unstable, the maps of ALL my current worlds were re-generated! I`m confused why?
19:11 Krock don't run two instances in parallel
19:12 Lapis_Wolf @Telesight your view range of 4km(4000 blocks=4000m)
19:13 Andrey01 Krock: but why can I not run two minetests simultaneously?
19:13 * pipo is off ...bye everyone
19:13 pipo left #minetest
19:13 Krock Andrey01: not on the same map. one will overwrite the other
19:13 Krock or corrupt the map
19:13 Krock Lapis_Wolf: blocks are 16³
19:14 Telesight Lapis, In reality I prefer lightyears ...
19:14 Lapis_Wolf also,dies anybody know the name of the texture pack that is commonly used in peoples' survival series on YouTube with the hexa or pentagonal textures?
19:14 Lapis_Wolf @Krock 16?
19:15 Andrey01 Krock: can I roll back anyhow the previous map state?
19:15 Noclip So you just tried all maps after each other, knowing that they would get destroyed as soon as you enter them?
19:15 Noclip I backuped my important worlds before updating to 5.2.0. Maybe you should do that to next time. If you compress your world files with 7zip they get much much smaller so you won't need a lot of storage space for those backups.
19:15 Krock mapblocks (blocks) are 16x16x16 nodes, thus 4000 blocks equal 64km, which is across the entire map
19:16 Krock ^ Lapis_Wolf
19:16 Krock Andrey01: backups, if you have any
19:16 Andrey01 oh, no
19:16 Krock Andrey01: I've also had this happen, but that's now four years ago.. it really wonders me why some people still get corrupt maps
19:17 Krock are you using sqlite3 as backend, or lebeldb, postgresql?
19:17 Lapis_Wolf dang! 64km!..
19:17 Krock *leveldb
19:19 Andrey01 Krock: sqlite3
19:21 macc24 joined #minetest
19:29 Andrey01 wait, as far as I recall, last time, when it was not corrupted yet, I couldn`t run on the same map simultaneously on two identical instances as it was singleplayer mode
19:34 Telesight joined #minetest
19:34 Andrey01 and other strange thing: I made even few backups of that map, but they... also appeared corrupt
19:37 Noclip_ joined #minetest
19:38 Noclip_ Krock, Lapis_Wolf: But the "viewing_range" setting (which Telesight was talking about) is measured in nodes so with 1 node being 1 meter long 4000 nodes equal 4km. Lapis_Wolf's calculation was correct he just used the wrong word.
19:38 Noclip_ Telesight: "You are very close ..." + "In reality I prefer lightyears ..."---> Are you eventually an astronomer?
19:41 HDMI_STECKDOSE joined #minetest
19:45 Telesight Noclip Not many found that ;-)
19:45 Telesight Ok I think I solved the CPU usage ...
19:48 Noclip_ How? Reducing your viewing range?
19:49 Telesight I checked a lot of settings, but it seems the Max FPS that raises the CPU usage; 60 fps means around 100% CPU, 25 fps < 40% CPU usage
19:50 pipo joined #minetest
19:51 Noclip_ left #minetest
19:51 Testus left #minetest
19:54 pipo left #minetest
19:54 Verticen joined #minetest
19:56 adfeno Krock: Thank you very much for the profiler hint
20:01 Telesight Ok thank you all for your mental support, I think I can make some players happy ...
20:21 DS-minetest joined #minetest
20:22 Verticen joined #minetest
20:26 DS-minetest shouldn't https://github.com/minetest/minetest_game/blob/bd64188ee566bc31c1cd50d63f0da3328d42ab51/mods/default/item_entity.lua#L73 be `setmetatable(item, {__index = builtin_item})`?
20:32 sfan5 there's an issue about it but nobody really knows
20:32 sfan5 is __index not required to be a function?
20:33 DS-minetest it can be a function or something that you can index, see http://www.lua.org/manual/5.1/manual.html#2.8
20:33 adfeno Is there a way to make the player entity emit light so as to mimic someone carrying a torch which lights their way?
20:34 DS-minetest (section "index")
20:34 DS-minetest adfeno: only nodes can emit light
20:34 argyle joined #minetest
20:35 DS-minetest with "emit" i mean here that other things are lit up by the light
20:35 argyle forum down?
20:35 sfan5 perhaps
20:35 sfan5 or rather "probably"
20:37 argyle I can't remember the setting that makes it so that you aren't half-way embedded in the floor
20:38 DS-minetest argyle: update your installed mods
20:38 argyle ok thanks
20:40 fluxflux joined #minetest
20:45 adfeno DS-minetest: I'm searching a way to improve a mod which aims to modify the default torch so that it becomes a tool and emits light at the same place as player.
20:46 adfeno It has a bug that if the player climbs a ladder, the torch is disabled and the player has to lit it again.
20:46 DS-minetest adfeno: such mods already exist (eg. technic's flashlight). afaik these mods replace air at the player's pos with an ivisible light source
20:46 DS-minetest try searching air nearby
21:04 testman joined #minetest
21:13 SwissalpS joined #minetest
22:06 Taoki joined #minetest
22:12 freelikegnu I want a mob to add a plant to a node but minetest.find_node_near() and minetest.set_node() near dont seem to like working with air
22:13 sfan5 what do you mean?
22:14 freelikegnu I have the pos of a node I want to decorate at "value" https://paste.ubuntu.com/p/twkPWPGZCS/
22:14 freelikegnu I'm probably doing this wrong
22:15 freelikegnu thanks sfan5 :D
22:15 sfan5 !api
22:15 MinetestBot Someone thinks you should read the API docs, please go to: https://github.com/minetest/minetest/blob/master/doc/lua_api.txt
22:15 sfan5 first, you should check if find_node_near actually returned anything
22:15 sfan5 since it can return nil
22:16 sfan5 it's also not called "default:air" but "air"
22:16 sfan5 and a radius of 1 if too small
22:16 sfan5 is*
22:17 freelikegnu I tried air but I will put it back.... so radius 2 is one node away from the value?
22:18 sfan5 I'm not totally sure about that, I'd start with 2 and see if that's too far
22:18 freelikegnu what does search center do?
22:20 sfan5 doesn't the documentation explain?
22:21 freelikegnu line 4637 "search_center` is an optional boolean (default: `false`)"
22:21 freelikegnu thats it
22:21 sfan5 and line 4638?
22:22 freelikegnu oh duh... very sorry
22:25 freelikegnu so from the output of minetest.find_node_near(value, 2, "air") I can use: if value ~= nil then
22:26 freelikegnu minetest.set_node?
22:29 sfan5 yes?
22:34 freelikegnu hmm seems I'm still comming up with "AsyncErr: ServerThread::run Lua: "" is not a registered node!"
22:36 sfan5 how does your call to set_node look?
22:38 freelikegnu if value ~= nil then
22:38 freelikegnu minetest.set_node(value, {name = replace_with})
22:38 freelikegnu end
22:38 sfan5 and replace_with is?
22:39 freelikegnu default:mossycobble
22:39 freelikegnu oop I mean goblins:mushroom_goblin
22:39 freelikegnu its basically the mushroom node
22:42 freelikegnu the awful mess I made: https://paste.ubuntu.com/p/m2QRNHzSt9/
22:44 sfan5 are you absolutely sure replace_with is set to the value you want it to be set to?
22:44 sfan5 if in doubt, print() it too
22:46 freelikegnu well the code was working fine before I added the decorate option... also I'm assuming air must be in quotes?
22:46 sfan5 "air" not air yes
22:47 sfan5 when you leave the quotes off it turns into nil because air is just an undefined variable
22:47 sfan5 I think Minetest even warns you with its output
22:55 oil_boi joined #minetest
23:19 Noclip_ joined #minetest
23:26 freelikegnu ok I got it working now... there was something else messed up in my file, many thanks for the help sfan5!
23:27 freelikegnu https://i.imgur.com/QF1ClOC.png
23:27 freelikegnu dang snow biomes... goblins were not happy :D
23:30 * Noclip sent a long message:  < https://matrix.org/_matrix/media/r0/download/matrix.org/MDvQIRXhlTkxrxipAqJMEFuq >
23:30 freelikegnu not sure whether its better to use firelike or torchlike for getting mushrooms on walls and ceiling...
23:31 oil_boi joined #minetest
23:36 proller joined #minetest

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