Time Nick Message 01:20 Sokomine minetest.decompress complains when i feed it the data from a compressed file; gunzip lists "defla" as method; so i'm a bit puzzled. why does decompression fail under mt, but not on the shell? any workaround? 01:22 Sokomine the error i get is "zerr: invalid or incomplete deflate data" 01:43 Sokomine no ideas? 01:43 Sokomine it does work fine on the compressed streams in the .mts schematic files 04:52 swift110-phone Hey 04:55 exio4 hi 04:55 exio4 kaeza: ping? 04:55 kaeza exio4, pong 04:56 exio4 kaeza: care to check why I am getting `attempt to call string value` when loading https://github.com/EXio4/devil/blob/master/common/api.lua ? 04:57 exio4 I know the problem is in function daemon.register(typ, options) ... end, because removing it doesn't give me that error, but the syntax seems ok 04:59 kaeza exio4, 'else if' should be 'elseif'; from what I see, that shouldn't even run 04:59 exio4 ... I don't get it 04:59 exio4 kaeza: thanks 04:59 exio4 I thought that kind of stuff would throw a syntax error or so 05:00 kaeza exio4, depends on how you're loading it 05:00 kaeza is it run in a "protected" context (via `pcall`)? if so, how are you reporting the error? 05:00 exio4 yes, pcall 05:01 exio4 kaeza: getting the last value in the stack 05:01 exio4 hm, lemme guess, there may be more than one value? 05:03 kaeza translate this for me: https://github.com/EXio4/devil/blob/master/src/Devil/Daemons.hs#L98 05:04 exio4 heh, pcall' is just a "wrapper" around pcall, (defined @ L182), it's just doing pcall, if the result is not zero, it'll pop the last value from the stack and throw an exception in that thread with the string there (+daemonName) 05:06 exio4 well, thanks, <_< 05:06 exio4 I feel stupid, I didn't realize it was a syntax mistake 05:07 kaeza hmm... I think you may be somehow calling the syntax error message 05:08 kaeza or I don't have any idea what I'm talking about 05:09 kaeza so you rawgeti `cond`, whatever that means 05:09 kaeza and immediately pcall this value 05:10 exio4 rawgeti is getting the value from a reference, AFAIK 05:10 exio4 (I get the "reference" when calling the register function) 05:10 exio4 ... actually, I am not sure 05:10 kaeza yes, but where do you store `cond`? 05:10 exio4 what do you mean? 05:10 kaeza or rather, where do you get it from 05:11 exio4 an `IORef` would be the equivalent of a mutable reference, btw 05:11 exio4 kaeza: the BusyWait datatype has three values, the first is the seconds between checks, the other two are the refs 05:11 kaeza sorry, I'm kinda new to these kinds of langs; trying to wrap my head around it 05:11 exio4 nah, it's ok :P 05:12 kaeza ah I see 05:12 exio4 busyWait l daemonName (BusyWait wakeupDelay cond action) = 05:12 exio4 (BusyWait wakeupDelay cond action) is basically "pattern matching" (aka de-structuring the thing I passed as parameter, giving me the three things inside it) 05:19 kaeza so where do you get the original `cond`s and `action`s? 05:19 exio4 registerDaemon 05:19 exio4 the code is wrong, though, I think 05:21 kaeza I notice you use `condition` in `register_daemon` in your test daemon, but I see no code to get this field from the table, unless again I'm reading this wrong 05:22 kaeza eh, register_daemon is in api.lua nvm 05:22 exio4 kaeza, the code gets it from the parameters (because I didn't want to do any kind of error checking from Haskell until I get comfortable with the lua c api), which if I read my code correctly, is reading from the parameters.. in the wrong order 05:23 kaeza yes, I see that now 05:24 kaeza you have `registerDaemon ref daemonName env l` (`registerDaemon` is called `_internal_register_daemon` in lua) 05:24 exio4 yeah 05:24 kaeza but you pass the condition and action instead of whatever `env` and `l` mean 05:25 exio4 env is the "config environment" (you can define config: abc: 42 in the config file and you'll have access to that from Lua) 05:25 exio4 kaeza: the first three variables (ref, daemonName, and env) are "constants" that stay in the closure 05:27 exio4 (you can think of them as local variables in an object, if you want to see some kind of analogy), LuaState -> IO CInt is "the final thing" 05:28 kaeza I get it now; and `l` gets the Lua parameters somehow? 05:28 exio4 l is the lua state 05:28 exio4 I am using bindings that are a really thin layer over the C API 05:36 kaeza as far as I can see, all is well there. where is luaError defined? 05:36 kaeza well, only thing I see is that you may cause a stack overflow with I'm looking at this: https://github.com/EXio4/devil/blob/master/src/Devil/Daemons.hs#L174 05:36 kaeza (Lua stack overflow) 05:37 kaeza s/I'm looking at this// 05:38 exio4 kaeza: luaError is defined right there, L185 05:39 exio4 kaeza: also, how would L174 "cause" a stack overflow? 05:47 exio4 kaeza: thanks, btw! 05:48 kaeza actually, not overflow, but slightly wrong 05:48 kaeza exio4, now this is personal 05:48 exio4 damn 07:09 crecca XK 07:13 Krock * Did you mean xkcd.com ?* 07:16 technomancy I can't find any docs for the forth computer that's included in technic_game 07:17 technomancy is it supposed to be able to execute forth? 07:19 technomancy it looks like the digiline_events table is never populated 07:21 TBC_x do you mean WORDS? 07:26 technomancy it looks like forth_computer may have been superseded by novatux/turtle 08:04 crecca Krock: I ment C-x C-k, actually 09:08 CWz [off] to me Nowdays it feels like a bad idea to host a server or be admin. servers used to be peacful back in 0.4.7 09:14 JamesTait Good morning all; happy Friday, and happy Don’t Step On A Bee Day! 😃 09:15 technomancy every day is Don't Step On A Bee Day in my book 09:18 JamesTait technomancy++ 15:14 xenkey hi 15:30 Jordach sfan5 trying to make me do something http://i.imgur.com/QNZQAbG.webm 15:31 sfan5 Jordach: meoww 15:32 Jordach reasons why i don't have cups of tea 15:32 Jordach http://i.imgur.com/kbWgOw3.jpg 16:33 luizrpgluiz hi all 17:05 MinetestBot 02[git] 04nerzhul -> 03minetest/minetest: Little coding style fix on porting.h 13e6f0178 http://git.io/vq5WZ (152015-07-10T19:04:05+02:00) 19:12 blaise 14:12:05: ERROR[main]: ERROR: An unhandled exception occurred: ServerEnvironment::loadMeta(): EnvArgsEnd not found! 19:12 blaise =( 19:17 Sokomine blaise: no problem. just copy an anv_meta.txt from another world into that world's folder. game time will have changed, but who cares about that... 19:18 blaise o.O 19:18 blaise what if I don't have another world? 19:18 blaise it's my dedicated linux server 19:18 Sokomine start a new world? 19:19 blaise env_meta.txt says nothing 19:19 Sokomine can be singleplayer. the env_meta.txt doesn't contain that much information 19:19 blaise empty file 19:19 Sokomine yes. that's the bug. just take the env_meta.txt from another world...can be a new singleplayer world or anything... 19:19 Amaz http://pastie.org/10285204 19:19 Amaz Random (working) env_meta.txt 19:20 blaise so like, gametime = 16 19:20 Sokomine that file really doesn't contain much information. you can create it by hand if you take a look at its structure. all it contains is how long the world has run and which ingame-time it currently has 19:20 blaise does that mean 16 hour days ? 19:20 Sokomine just use anything you want. if the game doesn't start with a time you like, type /time 6000 for day and /time 0 for night 19:21 Sokomine it's luckily one of the easiest problems a server might encounter :-) nothing lost if it's just that file 19:25 blaise I guess the setting that makes days 24 hours is in minetest.conf 19:25 blaise lmao 19:37 daswort what is the size of a block? (not node) 19:37 Krock 16x16x16 nodes 19:39 daswort thaks 19:39 daswort *thanks 19:56 Krock np 19:59 est31 if somebody has time, could they do the testing required for #2885 ? 20:08 TheWild oh, somebody touched the mapblock stuff. Krock, I've looked into the Minetest code and it seems that Mapblock always was 16x16x16. Someone even tried with 32x32x32 but left only comment claiming it was too slow. 20:08 est31 ? 20:08 TheWild However... can I be sure Minetest will stay with 16x16x16 20:09 Krock it always used 16^3, so why should it change? 20:09 est31 TheWild, depends on your usecase 20:10 est31 also I wonder on which level you want to deal with mapblocks 20:11 est31 for example we can serialize mapblocks into the mapfile as 32x32x32 in future but leave it as 16x16x16 for the network 20:11 est31 and leave it as such for other parts too 20:13 TheWild say, I want to create map editing library (like we have Substrate for MC). I'm not sure whether I could hardcode number 16 or do some more work to make it changeable (e.g. support for newer versions) 20:14 est31 if we change that, we will change other things too in future 20:15 TheWild ok, thanks 20:21 MinetestBot 02[git] 04kwolekr -> 03minetest/minetest: Fix damage flash when damage disabled 131a1774a http://git.io/vqdXw (152015-07-10T15:58:57-04:00) 20:21 MinetestBot 02[git] 04kwolekr -> 03minetest/minetest: Misc. minor fixes 138eb272c http://git.io/vqdXr (152015-07-10T15:58:57-04:00) 20:30 yaman Is there a way to slow down digging speed of player with a mod? 20:31 Krock increase the groups values 20:33 yaman I mean the digging speed for all blocks 20:41 Krock increase tool digging speed 20:54 MinetestBot 02[git] 04kilbith -> 03minetest/minetest: Fix remnant bugs on mainmenu 13c3dead7 http://git.io/vqdNc (152015-07-10T16:52:57-04:00) 21:03 yaman can you increase hand digging speed as well? 21:04 est31 yes! 21:04 est31 you can practically control this per-player 21:04 est31 every player has a custom inventory "hand" 21:04 est31 you can change either how it looks, or how it behaves 21:05 est31 at least if Im right 21:07 yaman thank you 21:37 red1 the reset password page still dosn't work 21:38 Sokomine does anyone know how why local data_string = minetest.decompress(compressed_data, "deflate" ); fails on a file that can be uncompressed perfectly well with gunzip? (compressed_data contains the data read from the file) 21:38 red1 https://forum.minetest.net/ucp.php?mode=sendpassword says it send an email an i get no email 21:39 yaman how is hud_set_hotbar_itemcount() used? I am getting "attempt to call global 'hud_set_hotbar_itemcount' (a nil value) 22:52 kaeza Greetings 23:24 MinetestBot 02[git] 04gravgun -> 03minetest/minetest_game: Improved stairs model, v2 138a7af21 http://git.io/vqF61 (152015-07-11T00:22:18+01:00) 23:28 Pilcrow182 hi guys. for the purpose of storing/recalling a position into/from a string, is it better to use minetest.serialize and minetest.deserialize, or minetest.hash_node_position and minetest.get_position_from_hash? 23:32 kaeza Pilcrow182, there's also minetest.pos_to_string() and string_to_pos() 23:32 kaeza it depends on how "readable" you want to make these (e.g. if the user will be able to edit the string at all) 23:33 Pilcrow182 ah, yes. forgot about pos_to_string, actually. but no, there will be no editing, just comparing a position to one stored in some metadata. 23:34 Pilcrow182 as in, checking if the stored position is the same as a given position. 23:34 kaeza if you don't need fractional positions, probably the hash_node_position family 23:35 Pilcrow182 that's what I was thinking, but wanted to ask first. basic math seems less complex than string concatenation/splitting... :P 23:35 Pilcrow182 anyways, thanks for the help, kaeza :) 23:36 kaeza sure :)