Minetest logo

IRC log for #minetest, 2020-04-07

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

All times shown according to UTC.

Time Nick Message
00:11 calcul0n joined #minetest
00:13 Pie-jacker875 joined #minetest
00:28 Hirato joined #minetest
00:44 Extex How can I make a function that is like a combo of math.floor and matg.ceil
00:44 Extex It'd work is the same way as the javascript Math.round
00:44 rubenwardy likkee... round?
00:44 rubenwardy math.round = math.floor(x + 0.%)
00:44 rubenwardy math.round = math.floor(x + 0.5)
00:45 rubenwardy that's not actual code
00:46 Extex tnx
01:04 sfan5 useful feature #2 for today https://a.uguu.se/5gpv8lWBgOfX_.gif
01:04 ShadowBot https://github.com/minetest/minetest/issues/2 -- Burned wood
01:04 sfan5 I should really go to bed, though
01:05 rubenwardy same
01:05 rubenwardy today, I wrote a behaviour tree implementation in a minetest mod
01:05 rubenwardy for use in a simple entity API
01:07 Extex XD
01:08 Extex "I just created a whole new api cause I was bored"
01:08 Extex lol
01:19 rubenwardy Well, I'm making something for the combat mod jam on the unofficial discord
01:33 nephele_ joined #minetest
01:35 Hawk777 joined #minetest
01:50 orbea do you have to be relatively close to a sapling for it to grow?
02:02 Henson joined #minetest
02:03 Henson hi everyone, I'm new to minetest.  Is there a way I can find a node of a certain type?  I can't figure out how to get back to a certain location, but I know I put a bed there.  Can I find all the locations in the game of bed nodes?
02:04 Henson game -> world
03:00 Extex joined #minetest
03:18 Hawk777 joined #minetest
03:23 Extex joined #minetest
03:25 Pie-jacker875 joined #minetest
04:00 QwertyDragon_ joined #minetest
04:16 Henson I eventually figured out how to hack the minetestmapper program to find the nodes and thus the place I was looking for.
04:18 QwertyDragon joined #minetest
04:30 Obot01 joined #minetest
04:30 Obot01 hi
04:34 swift110 joined #minetest
04:38 Extex How would I make a node that does the following:
04:38 Extex Big stack of blocks
04:38 Extex |
04:38 Extex |
04:38 Extex |
04:38 Extex |
04:38 Extex |
04:39 Extex And you place gravel on top
04:39 Extex And it falls through the nodes
04:40 Extex And when it gets to the bottom it becomes a new thingy "my_mod:node_with_gravel"
04:40 Extex Would this require me to overwrite the falling node entity?
04:52 swift110 hey all
05:12 fluxflux joined #minetest
05:20 fluxflux joined #minetest
05:29 Pie-jacker875 joined #minetest
05:56 nephele_ Extex, If you place down your gravel block, you could then check in its on place function if there is a specific node below, but generally i dont think the falling node entity can fall through anything, so you probably need to use another entitiy you define indeed
05:58 nephele_ I think you would need to unset that it is physical, and do some specific code for the entity to trigger making your new node (probbaly once it passed all your nodes and collides with another one, and then y+1) (not sure how to determine collisions effectively here, but surely there is a way)
06:00 Noclip joined #minetest
06:06 Testus joined #minetest
06:14 Extex nephele: ok thanks :)
06:15 TomTom joined #minetest
06:24 Noclip[m] left #minetest
06:44 andyo joined #minetest
06:46 Kimapr joined #minetest
06:52 Noclip joined #minetest
06:55 NetherEran joined #minetest
07:04 MDude joined #minetest
07:05 Miniontoby joined #minetest
07:05 Miniontoby left #minetest
07:16 macc24 joined #minetest
07:25 calcul0n joined #minetest
07:36 Testus left #minetest
07:40 frostsnow joined #minetest
07:55 tomraceror joined #minetest
08:22 galex-713 joined #minetest
08:31 macc24 joined #minetest
08:32 HDMI_STECKDOSE joined #minetest
08:37 NetherEran joined #minetest
08:38 ShadowNinja joined #minetest
09:01 Beton joined #minetest
09:13 AndDT joined #minetest
09:32 SwissalpS joined #minetest
09:45 Rafi59 joined #minetest
09:49 nephele joined #minetest
09:50 erlehmann joined #minetest
10:26 macc24 joined #minetest
10:36 Fixer joined #minetest
10:38 proller joined #minetest
11:08 HDMI_STECKDOSE joined #minetest
11:11 SwampTurtle joined #minetest
11:21 AndDT joined #minetest
11:56 macc24 joined #minetest
12:02 turtleman joined #minetest
12:19 mizux joined #minetest
12:48 BigCaballito joined #minetest
12:49 BigCaballito The website says it is down for maintenance, what's going on?
12:56 sfan5 which website in particular?
12:58 BigCaballito minetest.net website
12:58 rubenwardy works to me
12:58 rubenwardy https://www.minetest.net
12:59 BigCaballito It says within pages is temporarily down for maintenance
12:59 rubenwardy oh, no it's not
12:59 rubenwardy https://www.githubstatus.com/
13:00 Wuzzy joined #minetest
13:01 BigCaballito joined #minetest
13:02 BigCaballito Oops, can't switch tabs on Android
13:02 BigCaballito Githubstatus says it is investigating a pages error
13:04 Flabb joined #minetest
13:07 Copenhagen_Bram joined #minetest
13:33 erlehmann_ joined #minetest
13:54 Soo_Slow joined #minetest
13:56 calcul0n_ joined #minetest
14:02 macc24 joined #minetest
14:25 Taoki joined #minetest
14:27 DrFrankenstone_ joined #minetest
14:28 absurb joined #minetest
14:29 astro why does it seem that minetest opens a window with no information, closes it, and then opens a new one with correct class information but inherits the geometry of the previous window?
14:29 astro it interferes with my wm, which I configured to tile windows by default unless they have a certain class
14:29 astro I make minetest floating by default, but it still inherits the geometry of the blank window which got tiled
14:41 sfan5 might be because it's querying video modes
14:41 sfan5 or maybe an implementation detail in Irricht
14:41 sfan5 irrlicht*
14:43 rubenwardy yeah, you need to open a fake window in order to get things like screensize   astro
14:46 astro is it not possible to give this initial window a class?
14:46 QwertyDragon https://forum.minetest.net/
14:46 rubenwardy what do you mean by a class?
14:46 QwertyDragon An error occurred during a connection to forum.minetest.net. PR_END_OF_FILE_ERROR
14:47 rubenwardy QwertyDragon: hardware issues
14:47 QwertyDragon ok ty
14:47 blaise lol
14:47 astro rubenwardy: WM_CLASS(STRING) = "Minetest", "Minetest"
14:55 NetherEran joined #minetest
15:02 oil_boi_ joined #minetest
15:04 Andrey01 joined #minetest
15:04 Andrey01 The forum doesn`t work at all these days :(
15:11 Andrey01 Does anybody know why it is not loaded and when it will be fixed?
15:11 rubenwardy hardware, no idea
15:11 rubenwardy !op
15:11 sfan5 !op rubenwardy
15:11 rubenwardy hm
15:11 rubenwardy didn't think so
15:13 Topic for #minetest is now Forums and wikis are experiencing issues | Latest version: 5.2.0 (2020-04-05) | General, player and modder discussion is on-topic. If in doubt, post here | Responses may take a while, be patient | Rules: https://wiki.minetest.net/IRC#Rules | Development: #minetest-dev | Server list: https://minetest.net/servers | IRC logs: http://irc.minetest.net/minetest
15:14 rubenwardy not that anyone will read that
15:19 oil_boi_ So this is the new forum, yay
15:21 Andrey01 I think the reason why the forum doesn`t load is in such majority of bots because it throws out to me 504 error.
15:22 testman joined #minetest
15:24 oil_boi_ Andrey01: https://www.lifewire.com/504-gateway-timeout-error-explained-2622941 This means that the network is working properly but the server itself is possibly overloaded because of internal problems, bots, or ddos attacks
15:24 oil_boi_ I'm not a network admin but that's what the internet told me :P
15:26 rubenwardy the problems are probably something to do with the 658 users online
15:27 oil_boi_ 639 guests :O
15:29 Andrey01 the forum has got worked finally now
15:32 Andrey01 Hmm, and really, why is so great amount of members lately? Why are so many bots?
15:35 calcul0n_ joined #minetest
15:45 calcul0n joined #minetest
15:54 Extex joined #minetest
15:55 Rafi59_ joined #minetest
15:55 Rafi59__ joined #minetest
16:04 Rafi59 joined #minetest
16:06 NetherEran joined #minetest
16:08 DS-minetest joined #minetest
16:12 eyekay joined #minetest
16:12 FreeFull joined #minetest
16:13 calcul0n_ joined #minetest
16:15 eyekay joined #minetest
16:17 ektor joined #minetest
16:24 eyekay joined #minetest
16:25 Extex joined #minetest
16:28 eyekay I wanted to translate minetest to hindi (hi-IN), where should i ask about that?
16:29 sfan5 uh hmm
16:30 sfan5 do you want to translate the main menu and related thing? or in-game content of minetest_game? both?
16:31 eyekay Both
16:32 sfan5 ok let me just figure out how that works
16:32 eyekay Ok thanks
16:35 sfan5 ok so
16:35 sfan5 eyekay: you'll want to register here https://hosted.weblate.org/accounts/register/ then you can start translating here https://hosted.weblate.org/projects/minetest/minetest/hi/
16:35 fluxflux joined #minetest
16:36 eyekay Thank you
16:37 sfan5 the in-game content is translated using these templates (there are more than this one): https://github.com/minetest/minetest_game/blob/master/mods/default/locale/template.txt
16:37 sfan5 you can fork the repository on github, fill those in and then create a Pull Request
16:38 calcul0n joined #minetest
16:38 eyekay Ok thanks
16:38 sfan5 though before in-game translations will work, the engine translation (on weblate) needs to be merged
16:41 NetherEran joined #minetest
16:46 SwissalpS joined #minetest
16:54 astro where in the code is the window created?
16:55 Pie-jacker875 joined #minetest
16:58 sfan5 that code is inside irrlicht
16:59 astro is it irrlicht which opens the fake window before the real one?
16:59 sfan5 the only code inside Minetest that deals with X11 is this: https://github.com/minetest/minetest/blob/master/src/client/renderingengine.cpp#L253
17:00 sfan5 directly that is, the engine could still indirectly cause a fake window to be opened
17:01 astro what I want to do is try to make it so that the fake window sets WM_CLASS so that my wm properly recognizes it and avoids tiling it
17:01 sfan5 hm actually the code I linked is the one responsible for settzing the class
17:07 Pie-jacker875 joined #minetest
17:10 craigger joined #minetest
17:12 Astrobe joined #minetest
17:13 Astrobe Hello, I've got issues with 5.2:
17:14 Astrobe entity:getvelocity() was apparently deprecated -- alright
17:14 Astrobe But it seems that the new get_velocity can return a nil result ?
17:15 DS-minetest Astrobe: it returns nil if it's an invalid objectref
17:16 Astrobe Hmmm so I guess on_punch was called after the mob died froom the punch.
17:18 sfan5 is mobs_redo causing crashes?
17:18 Astrobe yeah, but a quite old version
17:19 sfan5 yes I was about to tell you to update
17:22 Astrobe I am afraid I cannot, cause I have hacked it too much. Now that's my problem. Thanks.
17:23 lmat How do I change the message of the day? I see where it is in configuration. Is it sufficient to modify that file and that's all, or do I need to shut off the server, modify the message, then restart?
17:23 NetherEran joined #minetest
17:25 Astrobe Most config changes need a restart, lmat.
17:26 Astrobe If not all, actually. Anything minetest.conf needs a restart for sure.
17:26 lmat Astrobe: So everyone is expected to restart all their servers every day (for a motd update if nothing else)? :'(
17:27 sfan5 you can use /set -n to change settings ingame
17:27 rubenwardy Astrobe: methods on objects such as get_velocity will return nil when the object is deleted. You need to make sure that the code handles delete objects correctly
17:28 lmat sfan5: awesome!
17:29 lmat It looks like the wiki and fora are not so stable (wiki better than fora). What's going on? I guess a lot more people using these things now that everyone's staying home? ^_^
17:34 rubenwardy tags on CDB are now searchable -  https://content.minetest.net/packages/?tag=environment
17:36 MinetestBot [git] orbea -> minetest/minetest_game: trees: Reduce local variables (#2637) 14a385d https://git.io/JvA5n (2020-04-07T17:36:03Z)
17:38 Extex joined #minetest
17:41 DS-minetest joined #minetest
17:43 galex-713 joined #minetest
17:44 calcul0n_ joined #minetest
17:55 Copenhagen_Bram joined #minetest
17:58 DS-minetest hm, if you attach a player to some object with offset, the wield raycast will start from the player position, but the camera is not moved. is this intended?
18:02 DS-minetest looki looki https://i.imgur.com/3Knwc9f.png
18:03 DS-minetest used clicker:set_attach(self.object, "", {x = 20, y = 10.5, z = 2}, {x = 0, y = 0, z = 0}) (where clicker is the player and self.object the helicopter)
18:03 macc24 joined #minetest
18:03 DS-minetest the wrong node is selected
18:04 DS-minetest the camera is not moved
18:09 Krock I think it wouldn't be backwards compatible to change that
18:10 lmat Hmmm...how do I test my port forwarding? I have SSHed to a machine outside my LAN and I would like to ... something like   telnet MYNAME 30000; but of course the port forwarding is for UDP. What kind of packet should I send to make the server log something?  echo "minetest /connect" > /dev/udp/MYNAME/30000;  ?
18:10 Krock but from the looks, shooting line and crosshair use different points
18:10 Krock bug was already reported
18:10 DS-minetest ah
18:10 Krock !up yourup 3000
18:10 MinetestBot yourup:3000 seems to be down (host did not resolve)
18:11 Krock ^ also works in /query, lmat
18:11 Krock but well yes, you can also write/copy the ping script from there
18:11 Krock I believe there's also a basic snippet in the doc/ directory
18:12 Krock (there = MinetestBot modules repo)
18:16 Astrobe or maybe nmap can tell if port is reachable ?
18:17 lmat "you can also write/copy the ping script from there" from whence?
18:18 lmat Oh, minetestbot modules repo, okay.
18:18 lmat Astrobe: Looks like nmap supports udp (never used it before). I'll give it a shot, thanks1
18:19 lmat "Host is up (0.044s latency)." !
18:19 lmat I would ask you guys to just join my game, but I don't trust any of you, so...
18:19 lmat :-P
18:20 Astrobe Yeah, especially K-r-o-c-k.
18:22 Krock just use minetestbot to test the connection. sfan5 will be glad seeing those private IPs in the non-existent logs ;)
18:23 Krock Astrobe: you succeeded not highlighting me, but not in preventing me from reading it anyway
18:23 lmat xD
18:23 Astrobe You know you are writing in too many languages for you when you write "if not v return then" in Lua...
18:23 Astrobe My server is not up anyway, so I'm safe :-)
18:24 Krock Astrobe: you know that when writing if (not v) {  code   end
18:24 Krock or commenting Lua code using //
18:25 Krock or C code using #.. well, the color of the text changes, but that's for a different reason
18:26 sfan5 lmat: nmap saying the host is up does not guarantee that MT works
18:26 DS-minetest comment in C with #define
18:26 DS-minetest (if that works)
18:26 Astrobe #define REM this is a comment :D
18:26 DS-minetest and multiline comments with #ifdef bla comment #endif
18:27 Krock #if 0
18:27 lmat sfan5: All I need to know is that my packet was delivered (through the Internet, firewall, and switch).
18:29 fluxflux joined #minetest
18:32 Fixer_ joined #minetest
18:41 astro I've done some printf-debugging and I find that the engine only creates one window, initially without any info
18:41 astro the engine later on sets information such as WM_CLASS on the window (my wm doesn't update the window yet but at this point it doesn't matter)
18:41 astro but then the engine calls setResizable (an irrlicht function) which destroys and recreates the window (now my wm realises this is minetest)
18:41 astro I'm not sure how one would set WM_CLASS at the correct time to make my wm play nice, but I suppose it won't be a simple fix
18:48 calcul0n joined #minetest
18:50 Exagone313 joined #minetest
18:55 Flabb joined #minetest
19:05 erlehmann_ joined #minetest
19:08 Verticen joined #minetest
19:13 Gundul joined #minetest
19:17 Astrobe I don't know what your particular problem is, but tools like xprop might help.
19:18 calcul0n_ joined #minetest
19:23 Nutty8 joined #minetest
19:23 Nutty8 Hello!!
19:23 Nutty8 Are you all fine?
19:24 Krock No, this is Patrick.
19:25 Nutty8 kkkkk
19:25 DS-minetest you small joker
19:25 Nutty8 I'm sorry, I was not expecting this :')
19:30 Krock also nobody expected the Spanish Inquisition
19:31 Krock <insert image here>
19:31 Nutty8 I'm just passing by
19:32 Krock you're welcome to stays
19:32 Krock -s
19:32 Nutty8 To thank you guys for making minetest :D
19:32 Lone_Wolf joined #minetest
19:41 Nutty8 Also
19:41 Nutty8 Is the forum offline? '=D
19:42 DS-minetest read the topic
19:43 troller joined #minetest
19:43 Krock i.e. /topic
19:45 DS-minetest yeah, the irc topic, not some topic on the forum, that would break the law of forums
19:48 Nutty8 Ohhhh I see
19:48 Nutty8 Thanks ;)
20:00 astro Astrobe: thanks for mentioning xprop!
20:00 astro I found that xprop can still track the window even after it apparently gets destroyed and recreated
20:00 astro so I guess it just gets hidden and unhidden again, or something to that effect
20:00 astro I suppose there might be a way to create a hidden window, set its properties, and only afterwards make it visible?
20:17 calcul0n joined #minetest
20:28 Astrobe AFAIK its the "client" program that does all this, but the WM can do its own things. That's how virtual desktops are done.
20:30 Astrobe Some WMs let you define crazy rules to place specific program windows on specific desktops and such.
20:32 Astrobe Maybe you'll find something helpful there: http://tools.suckless.org/x/
20:34 DS-minetest :O is there still no math.round helper?
20:34 astro Astrobe: thanks, I already enjoy using some of suckless's software
20:34 astro I was asking whether making the client (ie minetest) only show the window after having set its properties (most importantly WM_CLASS) would be feasible
20:34 astro it would help avoid the issue of the wm forcing the window into a tiling space when it has a class rule to not do that to minetest
20:37 turtleman joined #minetest
20:39 Hirato_ joined #minetest
20:53 calcul0n joined #minetest
21:02 calcul0n_ joined #minetest
21:17 Tumby joined #minetest
21:30 erlehmann joined #minetest
21:33 Verticen joined #minetest
21:35 erlehmann joined #minetest
21:35 Tumby can anybody help me with the lua voxelmanip? im trying to place doors with it, but the top half of the door seems bugged. players can place blocks there, even though the door is supposed to be in the way
21:36 sfan5 how are you playing the door?
21:36 DS-minetest doors are special, look into the mtg code
21:49 Tumby oh so apparently theres a special node called doors:hidden that goes on top
21:49 sfan5 yes
21:50 sfan5 you should really be placing doors the normal way, you usually only need a voxelmanip when you need performance
21:50 Tumby i tried set_node and place_node and got the same results
21:51 Tumby place_node was even worse. the door wasn't even rotated the right way
21:51 DS-minetest you'll need to place the door craftirm
21:51 DS-minetest item*
21:52 DS-minetest if you want to place the door with voxelmanip or set_node, don't forget to rotate the invisible tiny thingy correctly
21:53 Tumby im assuming the invisible thing gets the same param2 as the actual door
21:54 DS-minetest maybe
21:54 sfan5 calling minetest.registered_craftitems["doors:door_wood"].on_place should work to place the door correctly
21:54 sfan5 though you can't choose the rotation that way
22:00 Tumby placing the doors:hidden node works flawlessly
22:01 sfan5 but it's not portable ;)
22:04 proller joined #minetest
22:07 Tumby can you explain what you mean?
22:09 sfan5 it's specific to the current implementation of the doors mod as found in minetest_game
22:09 sfan5 a future update might break your door placing
22:09 sfan5 but that's probably no surprise to you
22:10 * DS-minetest doesn't beliefe that spending time in making it super-duper future-proof is worth it
22:13 Pie-jacker875 joined #minetest
22:43 turtleman joined #minetest
22:43 Taoki joined #minetest
22:49 craigger joined #minetest
23:05 luizrpgluiz joined #minetest
23:05 luizrpgluiz hi
23:06 luizrpgluiz this forum.minetest.net error 505 why?
23:06 Extex They're having some hardware iasues
23:06 Extex They are working on fixing it
23:07 luizrpgluiz :)
23:19 craigger joined #minetest
23:25 Hirato_ joined #minetest
23:36 Pie-jacker875 joined #minetest
23:41 Pie-jacker875 joined #minetest
23:43 Pie-jacker875 joined #minetest
23:52 alket joined #minetest

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