Time Nick Message 05:58 MinetestBot 02[git] 04rubenwardy -> 03minetest/minetest: Fix mistake when calling on_priv_grant/revoke, and document them (#6341) 1372c09f5 https://git.io/v5ZPM (152017-08-29T05:57:56Z) 07:31 hisforever https://pastebin.com/U9z3b59W I put a debug page up. I've had great luck with advanced trains but now everythings comes up but the Engioms.what do i have to do? 07:48 wrcwpk[m] I'm trying to have a node drop default:dirt, but instead the node drops itself. Here is the relevant code. Any ideas on what is wrong? https://paste.ubuntu.com/25423356/ 10:19 jas_ Wrcwpk https://github.com/minetest/minetest/blob/72c09f524b1616dd75bb6e35008196b5ca6351a2/doc/lua_api.txt#L4403 10:19 jas_ U added an s. Its drop not drops heh i had to look it up ;) 10:52 spoky99 is there a bug crafting titanium? 10:56 spoky99 is there another way to get titanium? 12:11 habeangur ??? 12:53 spoky99_ Ifollow one video tutorial for crafting titanium and don't work, I don't know how to mine it (I found it in a mine but No picker can dig her) 14:08 Wuzzy !seen kilbith 14:08 MinetestBot Wuzzy: kilbith was last seen at 2017-08-13 00:09:55 UTC on #minetest-fr 14:13 Wuzzy Hey, does anyone know how to contact kilbith / jp? 14:15 sfan5 by mail? 15:56 Errante Hello guys. I got a strange problem. Im trying to run jsonrpc4lua within a minetest mod. So, I installed it inside mod's folder. Now, when I try to require"json.rpc" it doesnt give me any error, but when I try to call json.rpc.proxy() it says json is nil 15:57 Errante if I rename rpc.lua to init.lua the whole code works fine 15:58 Errante should I dofile instead of require ? 16:00 sfan5 https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L3170 16:02 Errante thx for the answer 16:02 Errante I didnt mention, but I did use irc mod's init.lua to setup insecure enviroment 16:06 Errante its strange because, while hacking rpc.lua into init.lua makes the code work, json.lua doenst need to be hacked into init.lua. but if I dettach rpc.lua's' code from init.lua, the code breaks saying json is nil 16:06 sfan5 that should definitely work if you did it correctly 16:06 Errante should I use insecure enviroment on every file using require or just init.lua? I didnt require=old_require 16:08 sfan5 every file that uses privileges functions need to make use of the insecure environment 16:08 sfan5 privileged* 16:09 Errante hmm 16:11 Errante but then, why doenst json.lua need to ie (json.lua requires luasocket) when using rpc.lua inside mod's init.lua with ie? 16:12 Errante wait 16:12 Errante sorry 16:12 Errante it doesnt require socket 16:12 Errante rpc requires it 16:24 Errante rpc.lua's ie is complaing its not a trusted mod, but the mod itself is set as trusted. should I add rpc as trusted mod? 16:28 Errante also, it seens that irc mod's luairc doesnt make use of ie 16:40 Errante this is the code Im running https://github.com/craigmj/json4lua/ 16:47 sofar Errante: minetest can already serialize and deserialize json? 16:47 sofar https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L3072 16:48 sofar oh IC, you probably need it as a dependency 16:55 Errante json4lua isnt for json, its for rpc. isnt dependency required for dependency between mods? json4lua isnt a mod, but a lua library 17:14 Errante lua is starting to annoy me 17:21 Krock if coder:get_player_name():lower() == "errante" then annoy() end 17:27 MinetestBot 02[git] 04SmallJoker -> 03minetest/minetest: Bump minimal protocol version to 36 (#6319) 13b7ee608 https://git.io/v5nxV (152017-08-29T17:26:55Z) 17:27 MinetestBot 02[git] 04nerzhul -> 03minetest/minetest: Formspec: Add options to set background color and opacity (fullscreen… 131b3e4e1 https://git.io/v5nxw (152017-08-29T17:25:16Z) 18:02 jas_ b7ee608 18:11 jas_ https://youtu.be/gX-JTfRh0m4 <- some jumps to try. 18:15 sfan5 !title 18:15 MinetestBot sfan5: minetest dcbl server sub-game - YouTube 18:15 jas_ it's always the same title 18:15 jas_ i shoulda said so, sorry 18:16 jas_ gonna be quiet on there this week heh 18:16 jas_ once the server restarts for whatever reason. see how long it goes before crash 18:17 jas_ actually that's the 2nd time i failed to build. first at 37% now at 83% 18:17 jas_ oh same spot, after a make clean 18:22 MinetestBot 02[git] 04nerzhul -> 03minetest/minetest: Pushing typo fix introduced in b7ee608e70f8e031e3e01c9672bedb16efa648b8 1335a4082 https://git.io/v5cfj (152017-08-29T18:21:14Z) 18:26 jas_ 35a4082 18:26 Errante Finally got jsonrpc4lua to work 18:40 MinetestBot 02[git] 04nerzhul -> 03minetest/minetest: Network proto handlers/container fixes (#6334) 131d4a2a6 https://git.io/v5cTe (152017-08-29T18:37:54Z) 18:42 modernk hello 19:26 rubenwardy Errante, I'd suggest looking in to the http API and deserialize_json if you'd like your mod to work without luarocks 19:27 rubenwardy I guess with RPC it'll be quite specific to a server though, in which case luarocks is fine 19:47 Errante rubenwardy: thx for your answer. I saw that http_request areonly executed at init time. if thats true, it doesnt help me 19:47 rubenwardy no, it should be anytime? 19:47 rubenwardy if it's not then there's a bug 19:48 rubenwardy you need to get a http API object at init time 19:48 rubenwardy but once you have it, you can make http requests anytime 19:48 rubenwardy local http_api = minetest.request_http_api() 19:49 rubenwardy you also need to give your mod the permission to get a http API object, in the minetest.conf 19:49 Errante at reference it says " Only works at init time and must be called from the mod's main scope (not from a function)." 19:49 MinetestBot 02[git] 04bendeutsch -> 03minetest/minetest: Documentation for 'slippery' node group (#6345) 1343f9e94 https://git.io/v5cO0 (152017-08-29T19:48:43Z) 19:49 rubenwardy Errante, that's the API getter 19:49 rubenwardy not the request maker 19:49 Errante oh 19:49 rubenwardy you need to use the API getter to get an object which you then use to make requesrt 19:50 rubenwardy However, if you have jsonrpc4lua working then it may be worth just using that and rewriting relevant code to use our APIs later if needed 19:50 rubenwardy if you design your mod well, you should be able to separate the RPC code from everything else, to make that easier 19:51 Errante the biggest problem would be to implement rpc with http_api and json_parse 19:51 Errante indeed, Im separating the rpc part from my mod 19:51 Errante thats what I was thinking 19:51 Errante thx ruben 19:52 rubenwardy well, it depends what the mod is. If you're not going to release it, doesn't matter if you use LuaRocks. If it's a hardcore server mod, then any ops should be able to install and use luarocks 19:52 rubenwardy a weigh up of development time VS installation time / portability 19:53 Errante actually, I couldnt get luasockets installed through luarocks 19:53 Errante ive made it through fedora own repo which has lua-socket-compat or something like this 19:53 Errante I hope to make it easy for ops to run the mod 19:54 rubenwardy with lua rocks I found I needed to modify some package path to get it to find modules 19:54 rubenwardy however I can't remember if this was a mod or Lua standalone 19:55 rubenwardy I mainly intended "external possible with C libraries" by "LuaRocks", anyway 20:33 Errante json.lua is gone 20:35 Errante it seens I cant simply replace http.request() with HTTPApiTable.fetch() 21:08 Errante how should I make it so rpc.lua could use HTTPApiTable instead of luasocket's http.request()? 21:09 Errante I do not understand HTTPApiTable.fetch's function HTTPRequest argument 21:13 Errante and how callbacks would fit into the code? 21:16 sfan5 Errante: the first arg is a table as defined like this https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L4849 21:17 sfan5 the callback is a function which will be called on completion/error with a single arg, a table like this: https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L4869 21:18 Errante need to remember lua_api.txt xD 21:18 Errante thx sfan 21:43 ivanhercaz Hi everyone! 21:43 ivanhercaz I am interested in the creation and translation of pages in the official wikis of Minetest 21:44 ivanhercaz I read in the forum that I can request the account here. 21:45 H4mlet out of curiosity, which languages are you going to translate? 21:45 ivanhercaz To Spanish and my couple is going to translate to Portuguese :) 21:46 H4mlet cool, good luck then: it's a royal pain translating 21:48 ivanhercaz It always depends of the source text to translate. Sometimes I have read very clear English texts. 21:48 ivanhercaz But another there is many expressions that sounds fine in English, but in Spanish... 21:48 H4mlet hehe "lost in translation" 21:48 ivanhercaz hahaha 21:49 sfan5 you probably want to talk to Calinou 21:49 sfan5 but he's not here atm 21:49 ivanhercaz hi sfan5! 21:50 Calinou hi 21:50 ivanhercaz Thank you sfan5! 21:50 ivanhercaz Hi Calinou ! Nice to know that you are here. 21:50 Calinou ivanhercaz: send me a private message with your email address, and desired username (note that the first character will be uppercase, due to MediaWiki limitations) 21:50 Calinou (/msg Calinou ) 21:50 ivanhercaz Perfect Calinou! 21:51 rubenwardy How are you involved with Wikipedia? 21:51 rubenwardy ie: moderator, developer, contributor, etc 21:52 Santamarcanda Hello! 21:52 H4mlet rubenwardy I was wondering: is it better to use a nodebox cube or a mesh cube? I mean lagwise 21:52 ivanhercaz Welcome Santamarcanda! Calinou is who can make us the account 21:53 rubenwardy H4mlet, it depends 21:53 ivanhercaz You can send him a message with /msg Calinou your email your username 21:53 rubenwardy H4mlet, node boxes afaik don't optimize internal faces 21:53 Santamarcanda Oh, perfect! I will do my best to translate to my native lenguage, pt. 21:53 rubenwardy which is why stairs use mesh nodes, as they have hidden faces 21:53 ivanhercaz Hi rubenwardy, I am contributor and member of Wikimedia España. I usually collaborate in es-wiki, Commons and Wikidata 21:54 rubenwardy nice 21:54 ivanhercaz I collaborate in another languages, like English, Portuguese and Catalá, but less 21:54 rubenwardy would you happen to know why the ban BNCs? EliteBNC in particular 21:55 H4mlet I see, then in every case where there are hidden faces a mesh would be better i.e. saving the render time of non-visible faces 21:55 sfan5 huh he *is* here 21:55 rubenwardy from #wikipedia that is 21:55 sfan5 my mistake 21:55 rubenwardy H4mlet, only if you make the model do that 21:56 rubenwardy I'm not very familiar with the MapBlock mesh generation code (although I should become so at some point) so I'm not sure how it works 21:56 Calinou H4mlet: nodeboxes are rendered efficiently nowadays (they are internally converted to meshes by the engine) 21:56 Calinou however, since you can only place cuboids with nodeboes, you can't optimize meshes as much 21:56 Calinou and you can't have sloped surfaces :) 21:57 rubenwardy Are they optimised, Calinou? 21:57 rubenwardy or just a naive nodebox to mesh conversion 21:57 H4mlet got it. I was wondering 'cause I'd like to create some medieval style windows 21:57 Calinou rubenwardy: it's a naive nodebox-to-mesh conversion indeed; inner faces won't be removed 21:57 Calinou (this is probably possible, but hard) 21:58 ivanhercaz I don't know about rubenwardy :/ Maybe you can ask in #wikimedia 21:58 H4mlet I've tried doing nodebox to .obj using node box editor, but I think I'm missing something: they seem reversed like a glow 21:59 Calinou H4mlet: for meshes, Minetest accepts four formats: .b3d (binary), .x (text), .obj (text), .md2 (binary, obsolete) 21:59 Calinou .obj should be a good choice, but .b3d is smaller, IIRC 21:59 Calinou H4mlet: that might be because the normals are flipped 21:59 Calinou the normals define which faces are "inside" and which ones are "outside" 21:59 rubenwardy H4mlet, the obj exporter should only be used if you want to import it in blender 22:00 rubenwardy just export as a node box if you want MT to use it 22:00 H4mlet oh! that's it! 22:00 rubenwardy also, my obj convertor may have bugs 22:00 H4mlet thus -> obj -> blender -> b3d (using an exporter plugin) 22:01 rubenwardy yeah, but you should edit it in blender as well 22:01 rubenwardy otherwise it is pointless 22:02 H4mlet I'll look into it, might be useful for some basic shape (e.g. my smaller steps mod) 22:03 H4mlet thanks to both for the hints, they've shed some light 22:03 ivanhercaz Perfect Calinou! Account confirmed. Now I am going to try what I can. I have a good knowledge of wikimarkup and templates if I have any doubt I will ask here :) 22:03 Calinou it's ok :) 22:03 Calinou I know a bit about wiki markup, not much but I worked a lot on some wikis 22:04 Calinou (including the Minetest wiki, but also the Minecraft wiki, for example) 22:04 rubenwardy I know (and prefer) mark down 22:04 Calinou yeah, but wiki markup can do more 22:04 rubenwardy so using mediawiki is a little confusing at times 22:04 rubenwardy true, it's more specialised 22:05 rubenwardy loooll 22:06 rubenwardy "`nodebox` -- See below. (**Experimental!**)" 22:06 rubenwardy https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L888 22:06 rubenwardy > Experimental 22:08 H4mlet experimental? 22:08 rubenwardy it may have been experimental to start off with 22:08 rubenwardy but it's definitely not by now 22:08 H4mlet afaik they've been around since years 22:09 rubenwardy eyah 22:09 H4mlet oh well, documentation archaeology 22:15 ivanhercaz Thank you to H4mlet, sfan5, rubenwardy and Calinou for the help! See you here (or in the wiki)! 22:15 H4mlet :) see you! 22:15 Calinou you're welcome :) 22:16 rubenwardy :D ivanhercaz 23:00 Errante Im with difficulty on figuring out how to translate rpc.call function to HTTPApiTable 23:01 Errante it doesnt seens to be straightforward 23:02 bigfoot547 ... 23:02 Errante it uses this ltn12 thing 23:02 bigfoot547 Anything that has to do with the internet protocol isn't straightforward lol 23:02 Errante true 23:03 bigfoot547 At least in minetest :P 23:03 Errante https://pastebin.com/5iP0ZUCJ 23:09 Errante rpc.call uses luasocket's socket.http 23:10 bigfoot547 I have no idea :P 23:10 bigfoot547 The closest thing I do to sockets is IRC 23:12 Errante ircmod uses luasocket 23:12 Errante but not for http 23:45 Errante think I got it