Minetest logo

IRC log for #minetest, 2021-03-24

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

All times shown according to UTC.

Time Nick Message
01:06 submariner joined #minetest
01:32 olliy joined #minetest
01:35 specing_ joined #minetest
02:12 Jordach joined #minetest
02:19 Peppy joined #minetest
02:41 erlehmann joined #minetest
02:53 erstazi quit
02:59 SwissalpS /msg erstazi try /quit  :D
03:25 Surfer2011_ joined #minetest
04:00 MTDiscord joined #minetest
04:45 smugler5 joined #minetest
06:14 Flabb joined #minetest
06:23 perrier joined #minetest
06:45 smugler5 joined #minetest
06:59 Swift110-mobile Hey
07:14 m42uko joined #minetest
07:17 BuckarooBanzai5 joined #minetest
08:00 ShadowNinja joined #minetest
08:47 TomTom joined #minetest
09:05 submariner joined #minetest
09:41 NathanS21 joined #minetest
09:42 v32itas joined #minetest
09:51 FeXoR joined #minetest
09:56 erlehmann joined #minetest
10:56 galex-713 joined #minetest
11:00 SwissalpS joined #minetest
11:03 calcul0n_ joined #minetest
11:21 hlqkj_ joined #minetest
11:29 troller joined #minetest
11:34 calcul0n__ joined #minetest
11:35 andrew left #minetest
11:43 v32itas joined #minetest
11:56 Verticen joined #minetest
12:08 tech_exorcist joined #minetest
12:10 Andrey01 joined #minetest
12:13 Andrey01 why if I use 'mesh' drawtype for a node and try to define two tiles for it from which the first is simple string name and second is an animation table, the second one won`t just be applied?
12:15 NathanS21 Your mesh probably doesn't have two materials defined, so there is no UV for the animation to be applied too.
12:18 Andrey01 hmm, and how many tiles can I use per a mesh node? As many as materials does it have?
12:18 NathanS21 I think Minetest maxes out at 6 tiles.
12:19 NathanS21 My guess would be if you have more materials than defined tiles, all the extra materials will use the list tile provided, much as how Minetest textures normal nodes.
12:20 Andrey01 and one material can have the only texture, yes?
12:21 NathanS21 Yep
12:22 Andrey01 ok, thanks, so I need just to create still a material for the second tile
12:43 twoelk joined #minetest
12:48 turtleman joined #minetest
13:11 wheeler left #minetest
13:28 leo_rockway joined #minetest
13:31 tech_exorcist https://wiki.minetest.net/Mapgen
13:31 tech_exorcist "Singlenode mapgen is officially stable."
13:31 tech_exorcist actually
13:31 tech_exorcist "Singlenode mapgen is officially stable.[1]"
13:31 kamdard joined #minetest
13:31 tech_exorcist I was expecting that "[1]" to be something like a xkcd-style "Citation needed" link
13:31 tech_exorcist :-)
13:32 specing_ joined #minetest
13:36 tech_exorcist (just to be clear, I didn't mean to shame the developers :D)
13:40 absurb joined #minetest
13:55 MiniontobyPI
13:55 MiniontobyPI Hi
13:55 MiniontobyPI I though about something
13:55 MiniontobyPI look at this yt video: https://www.youtube.com/watch?v=836B1J_gkl4
13:56 MiniontobyPI it is about mc´s duplicate worlds in different seeds,
13:56 MiniontobyPI idk if this is also possible at minetest
14:16 sfan5 who knows
14:35 hlqkj joined #minetest
14:52 MTDiscord <Warr1024> Sounds like Poincare recurrences.  If these worlds really were infinite then no matter the chunk size, as long as the chunk is itself finite then any chunk with a non-zero probability (i.e. that occurs at least once) would occur an infinite number of times.
14:53 MTDiscord <Warr1024> If the entire world is the same across two different seeds then probably what you're looking at is a hash collision.
15:18 hlqkj_ joined #minetest
15:25 tech_exorcist how can I make a recipe (minetest.register_craft()) return a higher-than-one amount of elements?
15:27 sfan5 output = "default:pine_wood 4",
15:27 tech_exorcist ok
15:27 tech_exorcist then I messed up something else
15:27 tech_exorcist I had already tried that
15:27 tech_exorcist thanks :D
15:28 tech_exorcist it's default:water_source, NOT default:water
15:28 tech_exorcist oops
15:30 ircSparky joined #minetest
15:30 ircSparky joined #minetest
15:43 Fixer joined #minetest
15:46 MadScientist joined #minetest
15:52 TechDude joined #minetest
15:53 TechDude Hello I have a quick question
15:54 TechDude so I want to register a node, do I have to register a craftitem AND a node?
15:54 TechDude Im not sure... 🤔
15:54 MTDiscord <Jonathon> :thonking:
15:54 MTDiscord <Jonathon> if you want a placeable node in the world, you jsut register a node
15:55 MTDiscord <Jonathon> there are ways to make a craftitem place a already registered node if you need that functionality for some reason
15:56 TechDude So if I register a node, don’t need to register a craftitem?
15:56 TechDude I can directly use minetest.register_craft to register a recipie for that node?
15:57 MTDiscord <Jonathon> yes
15:57 TechDude Ok thx
15:58 MTDiscord <Jonathon> for example a craft item is like the ore you get when dig default:stone_with_ore, it doesnt really physically exist in the world, its just in your inv/chests/etc
16:06 hlqkj joined #minetest
16:08 appguru joined #minetest
16:35 xerox123 joined #minetest
16:39 xerox123 joined #minetest
16:42 Hawk777 joined #minetest
16:46 appguru joined #minetest
16:59 delta23 joined #minetest
17:01 rschulman joined #minetest
17:05 LoneWolfHT joined #minetest
17:06 kamdard joined #minetest
17:11 awell joined #minetest
17:14 Andrey01 joined #minetest
17:14 illwieckz joined #minetest
17:16 Andrey01 NathanS21, I`ve defined two materials and two UV maps for that node, but the second tile doesn`t work
17:23 sec^nd joined #minetest
17:26 sec^nd joined #minetest
17:33 remihacker5 joined #minetest
17:35 remihacker5_ joined #minetest
17:38 Talkless joined #minetest
17:39 Talkless joined #minetest
17:43 Andrey01 I installed newer b3d exporter for 2.8 from here: https://github.com/GreenXenith/io_scene_b3d but my model has got to look like as in closed #9013 ...
17:44 ShadowBot https://github.com/minetest/minetest/issues/9013 -- Mesh Rendering is... broken?
17:44 Andrey01 I don`t remember how I could solve that problem in that issue
17:44 NathanS21 Not sure how well that .b3d exporter supports multiple materials, as I've never used them with it. I usually do multiple materials on OBJs
17:45 NathanS21 You should assign two materials to the mesh, each on their own part of the mesh.
17:46 Andrey01 I don`t know how to assign material to specific part of mesh, just select that in Edit mode and add material?
17:47 Andrey01 and so will it be assigned?
17:48 NathanS21 yep
17:49 NathanS21 I think there is a button that you'll see in edit mode that says Assign.
17:49 Andrey01 yes, I see it
17:49 NathanS21 https://youtu.be/6PH6t47LFJE
17:50 NathanS21 If you need further visual help.
17:50 NathanS21 :)
17:50 NathanS21 Just a video I made on the subject at one point.
17:50 hlqkj joined #minetest
17:51 Andrey01 thanks
17:58 LordPsyco joined #minetest
17:58 LordPsyco left #minetest
17:58 LordPsyco joined #minetest
17:58 LordPsyco left #minetest
18:01 emacsomancer joined #minetest
18:23 galex-713 joined #minetest
18:38 hlqkj joined #minetest
18:57 troller joined #minetest
19:06 v32itas joined #minetest
19:07 big_caballito[m] joined #minetest
19:17 Peppy joined #minetest
19:21 hdjxiike joined #minetest
19:22 MTDiscord <GreenXenith> The b3d exporter should(tm) multiple materials. I have done it before, no reason it should be broken now.
19:26 hdjxiike Hello friends, whats new in minetest? ,4
19:27 Krock hdjxiike: some code is new
19:34 hlqkj brother!
19:37 Krock bröther where are my lööps
20:18 tech_exorcist nice /s! now, according to the Minetest game launcher, the init.lua file of a mod I'm writing as an exercise contains invalid UTF-8
20:21 rubenwardy what's the error?
20:22 rubenwardy it's it about byte order marks?
20:22 tech_exorcist from debug.txt: "unexpected symbol near '<removed because idk what the hell it is and I don't want to screw up people's IRC clients>'"
20:23 rubenwardy where is the symbol in the file?
20:23 rubenwardy It's probably fine on IRC
20:23 rubenwardy or maybe the byte value would be useful
20:23 tech_exorcist I'm trying to find it with xxd
20:24 tech_exorcist hmm
20:24 tech_exorcist it may be 0xC2
20:24 sfan5 !c '\xc2'
20:24 MinetestBot 'Â'
20:24 tech_exorcist I ended up finding it out with the `less' utility
20:25 sfan5 hm wait
20:25 rubenwardy is it at the beginnning of the file?
20:25 tech_exorcist there should be no such character in that init.lua
20:25 tech_exorcist no
20:25 sfan5 !c (b'\xc2').decode('utf-8')
20:25 MinetestBot UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 0: unexpected end of data
20:25 tech_exorcist it's around the last line
20:25 sfan5 yeah it really is invalid
20:25 tech_exorcist actually
20:25 rubenwardy perhaps resave the file
20:25 tech_exorcist it IS on the last line
20:25 tech_exorcist I tried
20:25 tech_exorcist didn't work
20:25 rubenwardy maybe also delete the last few characters and type again
20:25 tech_exorcist tried that too
20:25 tech_exorcist I'll retry
20:26 rubenwardy maybe another code editor would help?
20:26 tech_exorcist let's see
20:26 big_caballito[m] are you using windows notepad?
20:26 tech_exorcist no
20:26 tech_exorcist I usually use nano
20:26 big_caballito[m] try saving as ANSI instead of utf8?
20:26 big_caballito[m] idk
20:26 rubenwardy nano is the sort of editor that will cause this, with terminal issues
20:27 tech_exorcist wtf?
20:27 sfan5 don't think nano has a charset selection
20:27 rubenwardy I often find that it truncates lines
20:27 delta23 joined #minetest
20:27 sfan5 if by truncates you mean it breaks them apart, that's a feature
20:27 big_caballito[m] yaeh use vim u wont have these probably
20:27 tech_exorcist I don't have vi(m) here
20:27 big_caballito[m] problem*
20:28 big_caballito[m] sfan5: like sneak glitches were a feature of minetest? lol
20:29 rubenwardy I don't mean the word wrap
20:32 big_caballito[m] I just noticed this:
20:32 big_caballito[m] > Latest version: 5.1.0
20:32 big_caballito[m] someone wanna fix the IRC heading thing?
20:33 rubenwardy[m] joined #minetest
20:34 Topic for #minetest is now The official Minetest channel | Latest version: 5.4.0 (2021-02-23) | 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: https://irc.minetest.net/minetest
20:34 rubenwardy interesting
20:34 rubenwardy if it synced from matrix to IRC, why not the other way around
20:34 rubenwardy[m] left #minetest
20:34 hdjxiike joined #minetest
20:36 tech_exorcist the file is 886 bytes big, and the invalid byte is indeed 0xc2, at the position 819
20:37 tech_exorcist there's also 0xb7 at 820
20:39 tech_exorcist source: a tool I wrote to check for byte values that are higher than 0x7f
20:47 hdjxiike joined #minetest
20:47 katp32 joined #minetest
20:48 twoelk left #minetest
20:51 hdjxiike joined #minetest
21:15 I_am_6r1d joined #minetest
21:30 Taoki joined #minetest
21:34 tech_exorcist hmm, how do I get a player's coordinates? doc/lua_api.txt is not helping me :-(
21:34 tech_exorcist and neither is https://minetest.gitlab.io/minetest
21:37 Hawk777 I have no idea, but does “minetest.get_player_by_name(name):get_pos()” not give you what you want, assuming you have only the player’s name and not a reference to the player object already (just use “player:get_pos()” in the latter case)? I haven’t tested it, just looked at lua_api.txt and it seemed like the obvious answer.
21:37 rubenwardy that is correct
21:38 tech_exorcist ok
21:38 tech_exorcist thanks! :D
21:42 delta23 joined #minetest
21:43 tech_exorcist "attempt to call field 'get_player_from_name' (a nil value)"
21:43 tech_exorcist func = function(player_name, param)
21:43 tech_exorcist local player = minetest.get_player_from_name(player_name)
21:43 rubenwardy by name
21:44 tech_exorcist oops
21:46 tech_exorcist now it works
21:46 tech_exorcist thanks
21:46 tech_exorcist :-)
21:46 * tech_exorcist facepalms
21:47 troller joined #minetest
22:10 numzero joined #minetest
22:39 ircSparky joined #minetest
22:44 MTDiscord <MisterE, Modder of Sorts> Can someone link me to sfan's 1-line Minetest Build script again please?
22:54 sfan5 https://forum.minetest.net/viewtopic.php?p=311160#p311160
23:30 MTDiscord <MisterE, Modder of Sorts> thank you!
23:33 MTDiscord <MisterE, Modder of Sorts> why not officially release this in the Minetest downloads page?
23:33 MTDiscord <MisterE, Modder of Sorts> its so easy 😄
23:35 MTDiscord <MisterE, Modder of Sorts> wait... this is only for the server?
23:36 sfan5 yes
23:36 MTDiscord <MisterE, Modder of Sorts> umm... is there one for the whole package?
23:37 sfan5 there is another one-line script by a community member for the client, you might have misremembered
23:37 sfan5 https://forum.minetest.net/viewtopic.php?f=42&amp;t=3837
23:37 sfan5 don't think it works with the new irrlicht yet though
23:38 MTDiscord <MisterE, Modder of Sorts> I used your script previously... It was just what I needed for my server... naw I want minetest 5.4 on ubuntu desktop, and so now it isnt what I need... I did misremember. THx.
23:39 MTDiscord <MisterE, Modder of Sorts> yes... it crashes
23:39 MTDiscord <MisterE, Modder of Sorts> Reading state information... Done Package libpng12-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'libpng12-dev' has no installation candidate
23:40 MTDiscord <MisterE, Modder of Sorts> well, I guess I will give the official build instructions another shot
23:40 sfan5 https://www.minetest.net/downloads/
23:40 sfan5 the download page has some easier alternatives for 5.4.0
23:40 MTDiscord <MisterE, Modder of Sorts> I want a portable version tho
23:40 sfan5 hm
23:40 MTDiscord <MisterE, Modder of Sorts> Otherwise I would just use flatpack
23:40 MTDiscord <MisterE, Modder of Sorts> but I need multiple instances,
23:49 MTDiscord <MisterE, Modder of Sorts> so... I followed the instructions to build minetest, but it gave the error that irrlicht was not found. Ok, so I am building irrlicht inside the minetest dir. Hope that works
23:51 MTDiscord <MisterE, Modder of Sorts> nope didnt work
23:51 MTDiscord <MisterE, Modder of Sorts>  user@user-comp:~/minetest$ cmake . -DRUN_IN_PLACE=TRUE -- *** Will build version 5.5.0-dev *** -- Could NOT find Irrlicht (missing: IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR)  CMake Error at CMakeLists.txt:63 (message):   Irrlicht is required to build the client, but it was not found.   -- Configuring incomplete, errors occurred! See also "/home/user/minetest/CMakeFiles/CMakeOutput.log". user@user-comp:~/minetest$ make
23:51 MTDiscord -j$(nproc) make: *** No targets specified and no makefile found.  Stop. user@user-comp:~/minetest$
23:51 MTDiscord <MisterE, Modder of Sorts> it has irrlicht all built inside the minetest folder
23:53 sfan5 cmake can't guess where irrlicht is even if it's "right there"
23:53 MTDiscord <x2048> I built Irrlicht in a sibling folder and just passed -DIRRLICHT_LIBRARY=<path to libirrlicht.a> -DIRRLICHT_INCLUDE_DIR=<path to irrlicht/include folder>
23:53 sfan5 ^ yeah that
23:55 MTDiscord <MisterE, Modder of Sorts> will that make a portable version? Im worried because Im specifying a path
23:56 sfan5 it will

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