Time Nick Message 00:33 swift110 sup rubenwardy 01:03 sur3 kanns sein dass die userlimit funtion in mintest 0.4.17 noch nicht existiert? o.O 01:04 sur3 sry 01:04 sur3 I mean 01:04 sur3 is it possible the userlimit function does not exist in 0.4.17? 01:06 sur3 ah yes minetest.register_can_bypass_userlimit is a 5.0.0 feature it seem.. :-/ 09:33 sur3 I want to detect if a player hurts an other player, is minetest.register_on_punchnode(function(pos, node, puncher, pointed_thing) the right function for that? 09:33 rubenwardy no 09:33 rubenwardy lol 09:34 rubenwardy does it like like the right one? ;) 09:34 rubenwardy you want minetest.register_on_punchplayer 09:34 rubenwardy https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L2821 09:35 rubenwardy *look like 09:35 sur3 ah ok tried diffferent combinations of node.name:is_player() but they all threw error, but that explains then ^^ 09:36 rubenwardy lol 09:36 rubenwardy node.name is a string 09:36 rubenwardy a node is never a player, they're completely different things 09:37 sur3 ah ok didnt understand the difference between nodes and objects 09:37 sur3 thought they were some subset 09:38 sur3 isn't everything an object in lua? 09:39 rubenwardy no 09:39 rubenwardy a node is a node 09:39 rubenwardy a player is an object 09:39 sur3 ok 09:39 rubenwardy an entity is also an object 09:39 sur3 so nodes are only blocks? 09:40 rubenwardy no 09:40 rubenwardy nodes are nodes 09:40 rubenwardy XD 09:40 rubenwardy !dev terminology 09:40 MinetestBot "Minetest and its components" - http://dev.minetest.net/terminology 09:40 rubenwardy "blocks" is ambiguous as Minetest uses stupid naming 09:40 rubenwardy there's no such thing as a block in Minetest 09:41 rubenwardy there's a mapblock, which is 16x16 nodes 09:41 rubenwardy and there are nodes, which players usually call nodes 09:41 rubenwardy *blocks 09:41 rubenwardy and there are nodes, which players usually call blocks 09:41 sur3 ah ok 09:42 sur3 an entity is an object written in lua, isnt every object defined in lua? 09:42 rubenwardy no 09:42 rubenwardy an entity has an associated Lua table 09:42 rubenwardy but the object is in C++ 09:42 sur3 ah ok 09:42 rubenwardy which is why you do get_luaentity() -> returns the lua table 09:42 rubenwardy and .object -> returns the object which is C++ 09:43 sur3 is that the difference why I see sometimes :is_player and sometimes .is_player ? 09:43 rubenwardy no, that's because Minetest is a bit stupid 09:43 rubenwardy those are both calls to the C++ object 09:44 sur3 oh ok, so : and . are the same? 09:44 rubenwardy I believe the latter is usually done as if object.is_player then 09:44 rubenwardy no, : in syntactic sugar for passing in the table. So player:foo() is exactly the same as player.foo(player) 09:44 sur3 ahh ok 10:04 AlexYst Since when is the term "blocks" ambiguous? Those are always map blocks, never nodes, though some nodes are named " Block", such as steel blocks. 10:05 AlexYst The page you linked to also agrees: "Blocks or Mapblocks are 16??16??16 groups of nodes.". 10:05 rubenwardy it's ambiguous as people use it to refer to nodes 10:06 AlexYst Peopel using the term incorrectly means they don't know what they're talking about, not that the term itself is ambiguous. 10:07 AlexYst "Sectors" is an unfamiliar term to me. A stack of map blocks from the top of the world to the bottom ... Any idea what context it's useful in? 10:08 rubenwardy worth noting I wrote that page 10:09 AlexYst Ha ha, duly noted. Still, even before reading it, I've always been under the impression that the term "block" never refers to nodes when used correctly. 10:10 AlexYst The "subgame" term being outdated is news to me too. I think Minetest still uses it, but I could be wrong. 10:10 * AlexYst opens Minetest and tries to make it spit out that word 10:11 rodskagg if i was to set up a minetest server what version should i use? 10:12 rubenwardy if you're being correct, then block == MapBlock 10:12 rubenwardy rodskagg: 0.4.16 or 0.4.17.1 10:12 AlexYst rubenwardy: Right, that's what I was saying. 10:12 rodskagg thanks. :) 10:12 AlexYst rodskagg: I'd go with the latest stable version, 0.4.17 ... .1? 10:13 * AlexYst was unaware of this fourth version number segment 10:13 AlexYst It ... doesn't show up in the application. 10:13 * AlexYst is confused as to where this number is coming from 10:14 rubenwardy it was added just for that 10:14 rubenwardy a bit stupid 10:14 rubenwardy the next version is 5.0.0 10:14 rubenwardy so technically we'll have that 4th segment coming in future too 10:14 rubenwardy and the first is removed 10:15 AlexYst Wait. 5.0.0, not 0.5.0? That's not a typo? 10:15 sur3 is there no += or ++ in lua? 10:15 AlexYst sur3: Nope, sadly. 10:15 sur3 ah ok 10:16 AlexYst You can do "x = x + 1" though. 10:16 sur3 ok like old qbasic era :D 10:17 AlexYst Okay, I couldn't make the game spit out the word "subgame" like I thought I could, but the word appears in the source code several times, including but not limited to in file names. 10:17 sur3 yeah it's alive :D 10:23 rubenwardy sur3: because -- are comments 10:23 rubenwardy AlexYst: game 10:24 rubenwardy the minetest engine runs games ;) 10:24 rubenwardy !title https://forum.minetest.net/viewtopic.php?f=18&t=19808 10:24 MinetestBot rubenwardy: Subgames have been renamed to Games - Minetest Forums 10:24 sur3 ah ok yes -- being comments i weird anyway :F 10:25 rubenwardy agreed 10:25 * rubenwardy prefers # or plain old // 10:25 rubenwardy does Lua even use # or // as operators? 10:26 AlexYst rubenwardy: Your page says not to call it the engine though. 10:26 rubenwardy the page is probably wrong 10:26 rubenwardy !dev terminology 10:26 MinetestBot "Minetest and its components" - http://dev.minetest.net/terminology 10:26 AlexYst Lua doesn't use pound signs or slashes. I've tried. 10:26 rubenwardy ah right 10:27 rubenwardy well, Minetest == the Minetest engine 10:27 rubenwardy I was being specific and pointing out that Minetest was a [game] engine 10:27 rubenwardy the (Minetest) engine 10:27 rubenwardy not the (Minetest Engine) 10:29 sur3 whats the command to write in the log file? print seems not to work.. 10:29 rubenwardy minetest.log(level, message) 10:29 sur3 ok 10:29 rubenwardy where level is info, verbose, warning, or error 10:29 sur3 I've seen print used somewhere, does that do anything? 10:29 rubenwardy it goes to the console 10:29 rubenwardy but not to debug.txt 10:30 rubenwardy good for debugging 10:30 sur3 ok 10:34 rodskagg that was easy. 10:34 rodskagg yum install minetest minetest-server 10:35 rodskagg running 1.4.16 on my centos server. 10:39 rodskagg https://github.com/minetest/minetest/blob/master/minetest.conf.example < does that include all the server settings? 10:43 rubenwardy yes, rodskagg 10:43 rodskagg thanks. 11:30 sur3 itemstring for whie wool? 11:31 sur3 twhite 11:32 sur3 never mind ^^ 14:05 Andrey01 Is next version 0.5.0 or 5.0.0? Some users said something 0.5.0 will. 14:06 rubenwardy 5.0.0 14:07 Andrey01 Oh, it means will next version be very very big? 14:08 rubenwardy well, it will be as it's been worked on for over a year 14:08 rubenwardy however we've just gotten rid of the 0. 14:08 rubenwardy so it might as well be 0.5.0 compared to 0.4.17 14:08 rubenwardy but with the new scheme it's 5.0.0 compared to 4.17.1 14:18 rodskagg minetestserver seems to be ignoring minetest.conf. i've added this line... 14:18 rodskagg default_privs = interact, shout, give, teleport, bring, fast, fly, noclip, settime 14:18 rodskagg ...but when i run /privs in the game nothing has changed. 14:19 rubenwardy default_privs only applies to new players 14:19 rubenwardy you probably don't want bring in there 14:19 rubenwardy or settime 14:19 rubenwardy and with give you probably want creative as well 14:20 rodskagg creative is a priv? 14:20 rubenwardy yes 14:20 rubenwardy not sure if it's in 0.4.16 14:21 rodskagg my server is 0.4.16, my client is 0.4.15. is that a problem? 14:21 rubenwardy probabyl not 14:21 rodskagg cool. thanks. 14:26 Krock 0.4.16 is a problem if you don't want to host a creative server 14:27 Krock use minetest_game 0.4.17 if you cannot update the server yet 14:27 Krock the reason for that is a security issue in creative itself which allows anyone to use it using the right client mods 14:28 Krock s/anyone/everyone/ 14:35 rodskagg ah 14:36 rodskagg is there a file in a mod that tells you all the materials it adds to the game? 14:36 rubenwardy materials? 14:36 rubenwardy if you mean node types, then no 14:36 rodskagg like bricks, wood etc. 14:36 rodskagg are they called nodes? 14:36 Krock grep -r minetest.register_node 14:36 rubenwardy you'll have to go through and look for minetest.register_node and minetest.register_craftitem 14:37 rubenwardy or use a craft guide 14:37 rubenwardy !mod [craftguide] 14:37 MinetestBot rubenwardy: Crafting Guide [craftguide] by jp - https://forum.minetest.net/viewtopic.php?t=14088 14:37 rodskagg thanks. :) 14:45 Krock !next 14:45 MinetestBot Another satisfied customer. Next! 14:57 Andrey01 What does an error mean when i am trying to call minetest.debug(): invalid value (table) at index 1 in tablefor 'concat'? 14:57 rubenwardy that's not a function 14:58 rubenwardy use print() for debug prints 14:58 rubenwardy and minetest.log("info", message) 14:58 rubenwardy also, the error means what is says 14:58 rubenwardy my bad, it is a function 14:59 rubenwardy you shouldn't pass in a table 14:59 rubenwardy it's for minetest.debug("this is a thing: ", 123) 15:06 rubenwardy !mod [c_doors] 15:06 MinetestBot rubenwardy: c_doors[c_doors] by TumeniNodes - https://forum.minetest.net/viewtopic.php?t=16423 15:08 Andrey01 The value that i`ve put in minetest.debug() arguements list is a table. Really can i not pass it? 15:09 rubenwardy use minetest.log("info", dumpy(t)) instead 15:09 rubenwardy *dump 15:09 Andrey01 ok 15:10 rubenwardy also consider using print for debug output 15:10 rubenwardy print(dump(t)) 15:10 rubenwardy doesn't go to debug.txt 15:10 rubenwardy which is badly named really 15:22 Andrey01 But i want to print the value in debug.txt. How to do it? minetest.log() doesn`t seem to print it there. 15:22 rubenwardy minetest.log does 15:22 rubenwardy make sure you have the right level 15:24 Andrey01 Loglevel? I used "info". And it doesn`t work. 15:25 rubenwardy what's your loglevel setting? 15:25 rubenwardy search in adv settings 15:26 Andrey01 I don`t know where "adv settings" is. 15:27 rubenwardy Settings -> Advanced 15:27 rubenwardy :P 15:33 Andrey01 I`ve called minetest.debug(dump()) and it has worked. 15:35 rubenwardy ew 15:35 rubenwardy that's inefficient 15:36 Andrey01 Why? I have everything works well. 15:37 rubenwardy it has an unnecessary concat 15:38 rubenwardy minetest.debug is literally equivilent to minetest.log("info", table.concat({ ... })) 15:38 rubenwardy oh wait 15:38 rubenwardy it's none 15:38 rubenwardy that's odd 15:38 rubenwardy try minetest.log(dump(var)) 16:33 Andrey01 Does get_properties() exist? 16:33 Andrey01 function 16:36 rubenwardy try reading lua_api 16:36 ANAND !api Andrey01 16:36 MinetestBot Andrey01, someone thinks you should read the API docs, please go to: https://github.com/minetest/minetest/blob/master/doc/lua_api.txt 16:36 ANAND :D 16:36 Andrey01 I read dev.minetest.net, there is no such function there 16:37 ANAND The dev wiki is not the complete reference and neither is it official 16:37 Andrey01 there is set_properties() on that dev wiki 16:38 ANAND Andrey01: https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L4058 16:39 Andrey01 ok, i`ve found that function 16:45 Andrey01 lua_api.txt is so messy, it is sometimes hard to find something what necessary, could the repo`s owners split up the lua_api.txt file into several parts please? 16:54 paramat we're considering it 16:55 paramat the dev wiki is often out of date or incomplete, always check lua_api.txt as well. but yes it is messy 17:45 entuland even just providing a straight copy of it as lua_api.md would be great to read it on github 17:46 ANAND The obvious issue is that two places need to be updated 17:47 entuland symlink it :P 17:47 ANAND lol 17:47 entuland I'm looking at it in Atom with the github formatting 17:47 entuland looks way better 17:48 entuland oh well, the file could simply be renamed from .txt to .md, for that matter 17:48 Krock not that again please 17:48 entuland ehehehe 18:12 Astrobe Provide it as a Lua table. So people can make lua programs to format it the way they like :D 18:12 serp you must learn lua to read the api docs 18:13 Astrobe Code = Data = Doc. I've achieved the Great Unification of Programming forces. 18:14 Astrobe yw. 21:08 MinetestBot 02[git] 04bell07 -> 03minetest/minetest_game: Disallow digging a bed if in use 135692c15 https://git.io/fY19x (152018-06-19T21:07:01Z) 21:11 MinetestBot 02[git] 04paramat -> 03minetest/minetest: Biome dust: Revert fix that added dust to mod structures (#7464) 138638932 https://git.io/fY1HL (152018-06-19T21:09:42Z) 21:29 Lupercus hello IcyDiamond you around? 21:38 IcyDiamond Hi 22:19 Lupercus hi IcyDiamond was going to ask you how much area the prot blocks protected but i figured it out 22:19 Lupercus 11x11 noded 22:19 Lupercus nodes* 22:19 Lupercus i was hoping to use areas, but it wont let me 22:20 lumberJ too bad 22:20 lumberJ :P 22:21 Lupercus it has areas on it, but players cant use it 22:22 lumberJ i think by default they can't 22:22 lumberJ you have to configure it to allow players to protect their areas 22:22 Lupercus yeah i know 22:23 lumberJ should have used that areas priv while you had it 22:40 Ruslan1 ANAND: are you here 22:41 Ruslan1 sfan5: hi 23:02 entuland RFC, sort of: https://github.com/entuland/rhotator 23:03 entuland that's my shot at a saner screwdriver 23:05 lumberJ what makes it saner, entuland? 23:05 entuland the fact that you can always predict with certainty the outcome of your actions ignoring the detail about the orientation of each node 23:06 lumberJ nice 23:06 entuland I hope it will be "saner" for others as well, comments and suggestions are always welcome 23:07 lumberJ well, hopefully its easier to use than it sounds like it would be to code :P 23:08 entuland oh it is a pretty simple mod in the end 23:08 lumberJ i'm not going to mess with this minute but i'll definitely do some testing in the future 23:08 entuland good 23:08 entuland matrices really make a difference there, for the coding part 23:09 lumberJ mathemagic 23:10 entuland :) 23:10 lumberJ that almost makes me look forward to taking some calculus courses 23:13 entuland eheheh 23:14 entuland I must admit that I'm still very ignorant about the various mods available in the game 23:14 lumberJ you might consider having the mod replace the default when installed 23:14 entuland but the ones I have tested out fall short on properly handling arbitrary rotations, using facedir tables and whatnot 23:15 entuland matrices really saved my brain when making bot the wesh mod and this one 23:15 entuland oh no I am not going to replace it, in particular cause my screwdriver lacks any check about permission areas and only rotates "facedir" nodes 23:15 lumberJ i see 23:16 entuland still a lot of work to do before considering it as a proper mod 23:16 entuland I wanted to share it as a WIP to have feedback 23:16 entuland [rhotator] 23:16 entuland wrong paste 23:16 entuland https://forum.minetest.net/viewtopic.php?f=9&t=20321 23:17 lumberJ nice 23:18 lumberJ will give it a test sometime soon 23:18 entuland take your time, no rush :) 23:18 entuland I appreciate the interest