Minetest logo

IRC log for #minetest, 2017-10-14

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

All times shown according to UTC.

Time Nick Message
00:05 nac joined #minetest
00:11 behaleba- joined #minetest
00:16 behalebabo joined #minetest
00:19 bas080_ joined #minetest
00:25 xerox123 joined #minetest
00:25 lumberJ joined #minetest
00:43 Megaf joined #minetest
00:44 Flairieve using minetest.after(5) without any functions gives me an error
00:44 Flairieve Which I don't want to call a function
00:52 Flairieve is there anyway thing like wait(5) or sleep(5)?
00:53 ThomasMonroe joined #minetest
00:54 behalebabo Flairieve: I don't believe there's any function to do that in default lua or minetest, sleeping like that would freeze the entire server as all mods run in the same thread
00:56 lumberJ joined #minetest
00:58 Flairieve So there is basically no way to wait 5 seconds before printing another message without defining a function?
00:59 behalebabo Flairieve: not without calling an external program or loading a non-default library
00:59 behalebabo but as I said, that would be a bad idea for any mod intended for gameplay use
01:08 Flairieve How would it freeze other mods? Why can't it just wait 5 seconds and not freeze everything else?
01:12 Etzos[m] Just taking a guess here, but I would assume it's because there's no (easy) way to block execution without blocking execution entirely without some kind of futures/coroutine/async construct.
01:13 o11c Flairieve: how do you think other mods would execute?
01:14 Flairieve So there is no way of waiting for just five seconds?
01:16 behalebabo Flairieve: there are methods (calling the external sleep program, busy loops watching the timer, etc.) but all mods and the minetest core itself run mostly in one thread, so a sleep like that will freeze the entire server
01:16 Flairieve Why can't mods run in there own thread?
01:17 behalebabo because minetest was not originally designed that way
01:18 Flairieve So if I wanted to print every block in the game but I wanted to wait 5 seconds before printing the next I would just have to deal with the game freezing every second?
01:18 behalebabo yes, or you could save the list somewhere and use a timer like minetest.after to print it iteratively
01:19 Flairieve Why can't I just use minetest.after(5) then without calling a function?
01:19 behalebabo because minetest.after is a function to execute something after a period of time, it is not a general sleep function
01:20 o11c behalebabo: if there *were* threads, how would you safely access anything in any other thread?
01:20 o11c Flairieve: it sounds like you already *have* a function, so why are you complaining that you have to pass a function?
01:21 behalebabo o11c: presumably this hypothetical multithreaded minetest would have been designed with proper concurrency features so that threads could easily cooperate
01:21 o11c lol
01:22 o11c Flairieve: also, if you're just dumping the block database ... consider reading the raw database files themselves
01:22 Flairieve well its already in a function I just want to wait for 5 seconds before printing the next message
01:22 Flairieve but that dump block thing was just an example because I don't see anyway of waiting
01:22 behalebabo Flairieve: do you have something specific in mind?
01:23 Flairieve Well I was going to make a mining machine that finds an area and digs a block every 5 seconds
01:23 behalebabo in that case you should use a node timer
01:23 o11c I don't actually speak LUA, but:  instead of function foo() { for i in range(num_blocks) { print(blocks[i]); } }, just write function foo(i) { print(blocks[i]), minetest.after(5, foo, i+1) }
01:24 behalebabo Flairieve: for more information, read https://github.com/minetest/minetes​t/blob/master/doc/lua_api.txt#L3367
01:40 LazyJ joined #minetest
01:40 CalebDavis joined #minetest
01:42 bas080_ joined #minetest
02:04 bas080_ joined #minetest
02:20 twoelk left #minetest
02:36 swift110 joined #minetest
02:40 bas080_ joined #minetest
02:46 Flairieve joined #minetest
02:48 Flairieve https://www.lua.org/pil/9.1.html If you wrap code around a coroutine function and use some type of wait event, I think the game will not freeze?
02:48 neinwhal joined #minetest
02:55 redblade7 joined #minetest
02:57 Natechip if anyones wondering, im working on a post about how to compile minetest dev and stable on manjaro and arch
03:15 swift110 nice Natechip
03:17 Natechip swift110: thanks :)
03:18 swift110 sure
03:18 swift110 I really want to get into the game
03:22 swift110 whats a good server you recommend
03:24 lumberJ Natechip weren't you asking about compiling on windows the otherday?
03:24 lumberJ was that for a post?
03:26 lumberJ swift110 what kind of gameplay do you like? servers can contain very different games.
03:27 Natechip swift110: survival, creative, skyblocks, or what?
03:27 Natechip lumberJ I gave up compiling on windows
03:27 lumberJ :D
03:27 lumberJ i just gave up on windows years ago :P
03:27 lumberJ are you running arch or manjaro now?
03:28 swift110 Natechip, well I am a beginner so hopefully nowhere that will kill me lol
03:29 Natechip lumberJ manjaro
03:29 Natechip i like it too!
03:29 lumberJ cool
03:31 Natechip swift110: if you want creative I would say RedCat Creative, if you want strick survival where no one has creative I would say Legends of Survival, less strict survival Switchboard PVP or HOMETOWN, crazy hard survival go on just test
03:32 Natechip swift110: if you want to talk more about servers join #minetest-hub
03:32 lumberJ or just start looking at the server forum
03:32 lumberJ and find one that looks interesting to you
03:33 lumberJ forum.minetest.net and click servers
03:34 torgdor joined #minetest
03:44 MinetestBot [git] lhofhansl -> minetest/minetest: Retrieve a small cone of blocks in the direction of the players veloc… b97b9a5 https://git.io/vdXyd (2017-10-14T03:43:58Z)
03:47 swift110 I'm in vanessa's creative server
03:47 swift110 just walking around
03:49 Tazy joined #minetest
03:57 bas080_ joined #minetest
03:59 Natechip my post on how to compile minetest dev on arch based distros (manjaro).
03:59 Natechip https://stolven11.github.io/minetest/p1
04:06 swift110 nice
04:07 lumberJ Natechip, i am meandering through your repos on github...
04:07 swift110 Natechip, I have been trying to get it on Solus
04:07 swift110 Oh goodness wrong game
04:07 swift110 Just to clarify Minetest is available for Solus
04:08 swift110 Although I have been unable to play it lately
04:08 AntumDeluge left #minetest
04:09 lumberJ if you really want to troll players with fake nyancats you should make them spawn underground and impossible to dig :D
04:11 AntumDeluge joined #minetest
04:27 Natechip lumberJ: ya that was a mod for Emerald2 and I to mess with ppl on my server XD
04:27 Natechip swift110: ill look
04:30 Natechip swift110: does solus use apt-get?
04:30 Natechip or pacman
04:30 Natechip or what
04:30 Natechip to install packages
04:31 swift110 no
04:31 swift110 its not based on anything
04:31 Natechip eopkg
04:32 Natechip ?
04:32 swift110 it used eopkg
04:32 Natechip how did u even install minetest
04:32 Natechip what version of minetest is it
04:33 swift110 Natechip, its in the repos
04:33 swift110 that laptop is charging right now
04:34 Natechip i need to find packages there
04:34 Natechip one sec
04:35 swift110 ok
04:36 Natechip meh
04:36 Natechip do u know where i can search for packages there swift110?
04:40 swift110 gaming on solus
04:40 swift110 do you have it in vbox I could show you like that
04:50 Natechip i dont
04:50 Natechip idk u would need to find packages if you wanted to compile dev versions
04:52 swift110 ok
04:53 swift110 I have a video that shows how to compile for solus so that should help
05:50 ADeluge joined #minetest
05:53 Flairieve joined #minetest
05:53 Flairieve Is there anyway to dump all the sounds that only nodes use? I want to see a list of default sounds I can choose from for my node.
05:58 Flairieve Like where is the sound list at?
06:03 neinwhal Flairieve: minetest_game/mods/default/sounds
06:03 neinwhal You can create your own sounds too, as long as it is ogg vorbis format, minetest should be able to play it.
06:04 Flairieve In my mod I tried to use sounds = default.node_sound_defaults() and sounds = default.node_sound_stone_defaults() but it prints up an error
06:04 Flairieve That it can not find defaults
06:04 neinwhal add default to depends.txt
06:06 Flairieve also how do I get a list of default.node_sound_(ETC...)_defaults()? I'm not talking about the sound files themselves
06:06 neinwhal https://github.com/minetest/minetest_game/​blob/master/mods/default/functions.lua#L4
06:07 Flairieve thanks
06:07 neinwhal :)
06:11 Flairieve I don't see why there is a sound list in the lua_api list?
06:11 Flairieve Or in any wiki at all?
06:16 neinwhal you mean isn't? If so, the sounds are provided by minetest_game, not minetest itself.
06:18 Flairieve Ahh I see now
06:19 Flairieve also I was trying to use on_activate = minetest.set_node() using the pos of the block itself and setting it to air
06:21 neinwhal on_activate is only for entities.
06:21 neinwhal for nodes, use either on_construct or after_place_node
06:21 Flairieve ohh
06:27 Flairieve Is there any minetest api for Atom?
06:33 frostsno1 joined #minetest
06:33 CWz joined #minetest
06:38 AlexYst joined #minetest
06:43 Flairieve Also is there any function that minetest keeps on checking for?
06:49 neinwhal depending on the situation, you can use minetest.register_globalstep - which is called every server step or register_abm for nodes.
06:49 neinwhal for the eariler question, no idea but a quick search shows this; https://forum.minetest.net/vi​ewtopic.php?p=189618#p189618
06:59 Flairieve How do you include chatcmdbuilder?
06:59 Flairieve I tried using dofile but it just errors out with mod security
06:59 Flairieve If its a mod then where is the download link?
07:06 neinwhal add "chatcmdbuilder" to a new line in depends.txt
07:06 neinwhal basically if you are using functions or stuff from any external mod in your mod, just add the mod name in a new line to depends.txt
07:08 Flairieve I did but then my mod glitches out saying that it could not find the library
07:08 Flairieve mod "flair" has unsatisfied dependencies: "chatcmbuilder"
07:09 neinwhal ^ if that's the exact error message, you misspelt "chatcmdbuilder" it appears
07:10 neinwhal both mods need to be enabled too.
07:10 Flairieve ohhhh
07:10 Flairieve but then how would I warn the client who installs the mod to include it?
07:10 xerox123 joined #minetest
07:10 Flairieve I mean to enable cmdchatbuilder
07:11 ChimneySwift joined #minetest
07:12 neinwhal https://forum.minetest.net/v​iewtopic.php?f=11&t=1271
07:12 neinwhal It should be under "Mod dependencies"
07:12 neinwhal preferably provide a link too
07:16 Flairieve Now I question where is cmdchatbuilder even located at?
07:17 Flairieve Ahh I found the mod on github
07:19 tverrbjelke joined #minetest
07:23 Flairieve Also what how would I give credit to a mod if I were to use it in my mod?
07:23 Flairieve or include it into my mod?
07:27 Hackerry joined #minetest
07:38 AntumDeluge joined #minetest
07:40 neinwhal Just provide a link or state the author somewhere in your post.
07:41 neinwhal Take note of the mod's license if you are including it as part of your mod and releasing as a whole under a different license, some have restrictions.
07:45 Telesight joined #minetest
08:08 Flairieve I just figured out how to make the game wait 5 seconds without pausing anything
08:19 ensonic joined #minetest
08:45 Taose joined #minetest
08:58 Krock joined #minetest
09:27 gorilla joined #minetest
09:27 Guest863 left #minetest
09:33 gorilla joined #minetest
09:34 gorilla hey. I am running a personal minetet server and have install the Hoppers mod, but getting a error: /hopper/config.lua:4: attempt to index field 'settings' (a nil value
09:34 gorilla this stops minetest from starting.
09:47 deltasquared joined #minetest
10:03 troller joined #minetest
10:05 sfan5 gorilla: the mod seems to require a newer minetest version than you have installed
10:06 gorilla sfan5:  Thanks. I was just thinking that.. was on 0.4.15... currently install 0.4.16
10:06 gorilla currently installing** 0.4.16
10:09 gorilla sfan5: Yep. that's got it. Glad I don't have to compile from source.
10:31 Fixer joined #minetest
10:44 Tux[Qyou] joined #minetest
11:16 proller__ joined #minetest
11:22 deltasquared joined #minetest
11:25 proller joined #minetest
11:43 habeangur joined #minetest
11:52 Fritigern joined #minetest
12:20 Tux[Qyou] joined #minetest
12:34 Jordach joined #minetest
12:50 jcalve joined #minetest
12:50 jcalve left #minetest
13:00 deltasquared joined #minetest
13:01 deltasquared right, stupid question time, is there a helper function I can use to determine if a given tool can break a given node without needing to actually dig with it
13:17 neinwhal joined #minetest
13:20 Alchemical joined #minetest
13:42 Krock joined #minetest
13:46 Telesight joined #minetest
13:49 bas080_ joined #minetest
13:56 est joined #minetest
13:56 est left #minetest
14:02 nowhere_man joined #minetest
14:09 w_laenger joined #minetest
14:11 w_laenger deltasquared, minetest.get_dig_params(groups, tool_capabilities)
14:14 w_laenger lua_api.txt lacks this function
14:27 deltasquared sfan5: if there is this function as w_laenger described that isn't in lua_api.txt, where might I go tracking down what it does
14:28 deltasquared I suspect I would have to stare at engine source code, but that's a rather large search space to wade through
14:32 Krock it's in the c++ source, somewhere in src/script/. The documentation wasn't added the last time this function was touched, so it's still undocumented.
14:33 deltasquared oh, fun.
14:33 deltasquared Krock: so actually implemented in native code, not lua. hmm, ok.
14:33 deltasquared guess I'd better check out 0.4.16 and have a poke around
14:34 deltasquared and then put a ton of comments where I use it in mod code
14:34 Krock it'll push a table with the keys "diggable", "time" and "wear"
14:35 deltasquared Krock: I'd still feel reassured to stare at the code that's doing it
14:35 deltasquared where the feck is that gone now...
14:36 Krock script/common/c_content.cpp push_dig_params function
14:36 Krock called by lua_api/l_util.cpp l_get_dig_params
14:36 deltasquared Krock: one moment, still fiddling with the necessary git checkout... though has it been changed since 0.4.16? if not I'll just use the 0.5.0-dev checkout
14:37 deltasquared no idea about it's stability if it's not even documented.
14:37 ThomasMonroe joined #minetest
14:37 Krock not changed for about 4 years
14:41 deltasquared hmm, so there's that read_tool_capabilities function... hmm. source code trail hunting yay
14:42 deltasquared Krock: if I'm reading this right, the two-arg prototype that w_laenger mentioned is not the only one, though just trying to find what that third arg does
14:43 bas080_ joined #minetest
14:43 mayk_ joined #minetest
14:44 deltasquared Krock: oh well, I think I get enough of it anyway. so diggable is an obv. yes or no as a boolean, dig time is also obvious, wear... I haven't looked much into how wear works but I assume that's the wear points to deduct from the item
14:44 Krock that's time_from_lat_ounch
14:44 Krock *last_punch
14:45 deltasquared well, I guess I can poke it in luacmd in-game to try it out.
14:45 deltasquared though, I guess I would have to copy the groups myself from the node def, and the toolcaps from the item def.
14:45 Krock optional arg. The one who could give you this information directly is w_laenger aka contributor of a PR in that area
14:46 deltasquared Krock: he did tell me, but he's left now :P
14:46 Krock ik
14:46 deltasquared that said, if it isn't documented, would anyone be willing to handle a patch to doc it? doesn't look like it'd take long
14:46 deltasquared I would have to consult w_laenger on it first of course
14:47 deltasquared my only question is where the hell in the lua_api.txt do I put it, it's a rather hard-to-follow structure in there
14:49 deltasquared It would probably be a case of describe it near the bits about the minetest global object, then reference it in the section about groups themselves to the effect of "this calculation can be done for you by minetest.get_dig_params()"
14:49 Krock deltasquared, candidate: https://github.com/minetest/minete​st/pull/5558#discussion_r112164860
15:00 lumberJ joined #minetest
15:21 H-H-H joined #minetest
15:48 AlexYst joined #minetest
16:00 orbea Sokomine: I encountered some issues with your mg_village mod, where would be the best place to report them? For example: https://i.imgur.com/3P3TBqP.jpg
16:01 orbea seems to not occur if the mods are disabled
16:02 proller__ joined #minetest
16:07 neinwhal orbea: the issue section of a mod's git repo is usually the best place to report bugs. https://github.com/Sokomine/mg_villages/issues
16:07 orbea that is what I would usually do, but I figured irc might work this time :)
16:10 neinwhal ah okay :)
16:10 orbea i'll probably have to make issues later when I narrow it down better :)
16:10 orbea make sure its not a mod conflict...
16:21 dzho joined #minetest
16:33 twoelk joined #minetest
16:52 Hawk777 joined #minetest
17:06 neinwhal joined #minetest
17:26 ThomasMonroe joined #minetest
17:29 AntumD joined #minetest
17:31 MinetestBot [git] rubenwardy -> minetest/minetest: Profiler: Fix var args not being passed to callback register function 9f3a585 https://git.io/vd1ni (2017-10-14T17:28:56Z)
17:36 deltasquared joined #minetest
17:58 tverrbjelke joined #minetest
18:00 BakerPrime joined #minetest
18:04 Skyrider joined #minetest
18:15 YuGiOhJCJ joined #minetest
18:15 exio4 joined #minetest
18:18 ShadowBot joined #minetest
18:25 mayk joined #minetest
18:28 LazyJ joined #minetest
18:31 CalebDavis joined #minetest
18:32 Fixer joined #minetest
18:33 Krock joined #minetest
18:34 sonicpp joined #minetest
18:45 d_deadlock joined #minetest
19:02 torgdor joined #minetest
19:04 molilo joined #minetest
19:05 swift110 joined #minetest
19:08 Jousway joined #minetest
19:10 Dargod hmm, why color support not working on 0.4-stable ?
19:12 red-001 Dargod, what?
19:12 red-001 it's not
19:12 Dargod I mean colors in chat
19:13 red-001 maybe you disabled them in settings
19:14 Dargod hmm
19:15 Krock joined #minetest
19:17 AntumDeluge joined #minetest
19:18 Dargod red-001, hmm, really, I somehow forgot about it. It is strange that in the same configuration this option had no effect on 0.14.16-dev
19:18 Dargod thanks
19:19 red-001 which one?
19:19 Dargod hmm, how i can check it?
19:20 Dargod I found
19:20 red-001 oh lol I forgot to remove the c++ side of disable_escape_sequences
19:20 Dargod Build info: VER=0.4.16-dev-e9d7005 BUILD_TYPE=Release
19:20 Dargod its was last version
19:27 twoelk joined #minetest
19:37 ensonic joined #minetest
19:54 Menche left #minetest
20:07 deltasquared joined #minetest
20:28 est joined #minetest
20:29 est left #minetest
20:33 ssieb joined #minetest
20:40 swift110_ joined #minetest
20:41 nac joined #minetest
20:43 thetaepsilon joined #minetest
20:55 nowhere_man joined #minetest
21:18 Sokomine orbea: looks a bit odd. i did experiment with highlandpools from paramat to some degree in some versions. could be such a pool. in general, the forum thread is fine for reporting bugs. or here on irc. i don't have much time right now due to rl. the mod is not forgotten and will be further maintained and developped. just right now i'm very short on time :-(
21:26 bas080_ joined #minetest
21:34 CalebDavis joined #minetest
21:34 stormchaser3000 joined #minetest
21:42 orbea Sokomine: alright, thanks for the info, no great rush, rl takes priority ofc :)
21:43 BakerPrime joined #minetest
21:46 Sokomine orbea: but thanks for your report. hope you'll write more. issues on github will also been taken care of...once i find the time :/
21:50 orbea its good to at least know the repo is not forgotten :)
22:22 Sokomine it's definitely not forgotten :-)
22:23 Sokomine current project is the circular saw in moreblocks and support for hardware coloring. that's something necessary as well. and maintenance of the other mods that got less time while mg_villages took most
22:25 GreenDimond joined #minetest
22:25 o11c personally, my biggest gripe is there is only one kind of stone
22:26 o11c thus, I'm writing a machine-readable list of every single possible mineral
22:26 o11c about 6000
22:28 o11c will need to implement/steal fractional water to make aquifers work
22:29 GreenDimond :o
22:29 GreenDimond wait
22:30 GreenDimond so like technic but x200
22:30 GreenDimond :P
22:32 o11c I'll probably skip radioactive decay though ... too complicated
22:33 o11c the only really interesting radioactives are cosmogenic or artificial
22:33 o11c plus, when I started writing that table I didn't realize how many isomers there were, or how many allow multiple decay paths
22:36 GreenDimond I would imagine that the amount of textures and oregen required would be too much for MT to run well :/
22:42 swift110_ hey GreenDimond
22:43 GreenDimond Hi swift110
22:44 o11c GreenDimond: nah, I did the math
22:45 GreenDimond ollc: 6000 minerals? Each with a unique texture?
22:47 o11c 32x32x4 * 6000 is only 24 megabytes
22:48 GreenDimond hm ok
22:48 GreenDimond thats not too bad
22:49 o11c people have no sense of scale for computers
22:49 GreenDimond |:c
22:56 MarioBranco joined #minetest
23:08 Fixer GreenDimond: hi, anything new on Hometown? have not been there for a while, need to finish my base too
23:09 GreenDimond Fixer: It's currently down (as of like a little bit ago) :P
23:09 Fixer oh
23:09 GreenDimond https://forum.minetest.net/vi​ewtopic.php?p=297110#p297110
23:09 Fixer i was focused (not really) too much on 0.5.0 and mc beta
23:14 GNU[BDC] what is special about 0.5 ?
23:17 jas_ they're removing the player cape
23:17 jas_ or want to.  https://github.com/minetest​/minetest_game/issues/1411
23:18 jas_ why remove the cape?  i don't know, it's very perplexing
23:18 jas_ so i won't question things here and move along on my merry way
23:19 GNU[BDC] why compare to mc?
23:20 jas_ i don't know, i never played it.
23:21 GNU[BDC] nor did i
23:21 jas_ i've used capes for years now, they're part of stujones11's clothing mod
23:24 jas_ i guess i don't know enough about models to understand
23:25 Megaf joined #minetest
23:29 AlexYst joined #minetest
23:33 Fixer we need support for minecraft skins and of course some ways to select your skin
23:33 Fixer also
23:33 Fixer 3d weild tools in hands
23:33 Fixer it is 2017
23:45 GreenDimond we have both in mods
23:53 Fixer sure, but not in default

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