Minetest logo

IRC log for #minetest, 2015-07-10

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

All times shown according to UTC.

Time Nick Message
00:07 orb joined #minetest
00:08 swift110-phone joined #minetest
00:36 OldCoder joined #minetest
00:57 RealBadAngel joined #minetest
01:00 roboman2444 joined #minetest
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:30 numZero joined #minetest
01:31 Jordach joined #minetest
01:31 Viper168 joined #minetest
01:38 roboman2444 joined #minetest
01:39 asl97 joined #minetest
01:42 Pilcrow182 joined #minetest
01:43 Sokomine no ideas?
01:43 Sokomine it does work fine on the compressed streams in the .mts schematic files
02:04 Player_2 joined #minetest
02:08 haiku joined #minetest
02:17 Valley_Cat joined #minetest
02:18 arsdragonfly joined #minetest
02:56 les_ joined #minetest
03:39 book` joined #minetest
03:47 kaeza joined #minetest
03:53 ecutruin joined #minetest
04:00 OldCoder joined #minetest
04:06 LazyJ joined #minetest
04:11 spectregris joined #minetest
04:11 spectregris left #minetest
04:31 Wayward_One joined #minetest
04:36 RealBadAngel joined #minetest
04:38 greenman_ joined #minetest
04:40 Darcidride joined #minetest
04:49 Valley_Cat joined #minetest
04:51 swift110-phone joined #minetest
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:28 jin_xi joined #minetest
05:34 greenman_ joined #minetest
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:43 barrydk joined #minetest
05:46 CWz joined #minetest
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
05:49 kaeza joined #minetest
05:54 arsdragonfly1 joined #minetest
06:15 crecca joined #minetest
06:20 zak1975 joined #minetest
06:35 err404 joined #minetest
06:42 mazal joined #minetest
06:47 Cryterion joined #minetest
06:48 Krock joined #minetest
07:09 crecca XK
07:09 crecca left #minetest
07:10 crecca joined #minetest
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:17 CWz joined #minetest
07:19 technomancy it looks like the digiline_events table is never populated
07:21 TBC_x do you mean WORDS?
07:25 yang2003 joined #minetest
07:26 technomancy it looks like forth_computer may have been superseded by novatux/turtle
08:00 Yepoleb_ joined #minetest
08:03 Trustable joined #minetest
08:04 crecca Krock: I ment C-x C-k, actually
08:06 aheinecke joined #minetest
08:08 OldCoder joined #minetest
08:16 AnotherBrick joined #minetest
08:16 MyTeke_ChrisWMas joined #minetest
08:18 Haudegen joined #minetest
08:25 Jousway joined #minetest
08:38 Tux[Qyou] joined #minetest
08:39 Viper168 joined #minetest
08:39 Telesight joined #minetest
08:40 werwerwer joined #minetest
09:08 ac_minetest joined #minetest
09:14 JamesTait joined #minetest
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:17 LedInfrared joined #minetest
09:18 crecca left #minetest
09:18 JamesTait technomancy++
09:20 diemartin joined #minetest
09:21 Tux[Qyou] joined #minetest
09:23 Sokomine joined #minetest
09:29 Calinou joined #minetest
09:33 phantombeta joined #minetest
09:40 Jordach joined #minetest
09:41 Escaron joined #minetest
09:51 RealBadAngel joined #minetest
09:52 Halamix2 joined #minetest
09:52 crazyR joined #minetest
09:52 crazyR joined #minetest
10:09 kimfy joined #minetest
10:21 crecca joined #minetest
10:22 zetok joined #minetest
10:25 kahrl joined #minetest
10:26 ac_minetest joined #minetest
10:37 turtleman_ joined #minetest
11:01 behalebabo joined #minetest
11:08 The_Loko joined #minetest
11:18 Cryterion joined #minetest
11:29 Halamix2_ joined #minetest
11:32 Telesight joined #minetest
11:37 proller joined #minetest
11:47 Haudegen joined #minetest
11:57 proller joined #minetest
12:18 Amaz joined #minetest
12:28 proller joined #minetest
12:29 Telesight joined #minetest
12:44 swift110-phone joined #minetest
13:03 LittleJoe joined #minetest
13:09 TheBonsai joined #minetest
13:09 TheBonsai joined #minetest
13:28 proller joined #minetest
13:29 Haudegen joined #minetest
13:31 Haudegen joined #minetest
13:35 Viper168 joined #minetest
13:42 jogag joined #minetest
13:43 Telesight joined #minetest
13:43 Haudegen joined #minetest
13:55 Haudegen joined #minetest
13:55 numZero joined #minetest
14:05 Taoki joined #minetest
14:18 RealBadAngel joined #minetest
14:29 theTroy joined #minetest
14:30 hmmmm joined #minetest
14:33 alket joined #minetest
14:45 CraigyDavi joined #minetest
14:47 kahrl_ joined #minetest
15:14 xenkey hi
15:14 swift110-phone joined #minetest
15:14 proller joined #minetest
15:17 CraigyDavi joined #minetest
15:18 fusion44 joined #minetest
15:30 Jordach sfan5 trying to make me do something http://i.imgur.com/QNZQAbG.webm
15:31 sfan5 Jordach: meoww
15:31 TheBonsai joined #minetest
15:31 TheBonsai joined #minetest
15:32 Jordach reasons why i don't have cups of tea
15:32 Jordach http://i.imgur.com/kbWgOw3.jpg
15:47 TheWild joined #minetest
16:09 AnotherBrick joined #minetest
16:18 Cryterion joined #minetest
16:21 Krock joined #minetest
16:24 rubenwardy joined #minetest
16:27 kimfy_ joined #minetest
16:33 luizrpgluiz joined #minetest
16:33 luizrpgluiz hi all
16:37 proller joined #minetest
16:47 nrzkt joined #minetest
16:47 Cryterion joined #minetest
16:57 hexafluoride joined #minetest
16:57 Cryterion joined #minetest
16:57 Telesight joined #minetest
16:58 Cryterion joined #minetest
17:00 Cryterion joined #minetest
17:05 MinetestBot [git] nerzhul -> minetest/minetest: Little coding style fix on porting.h e6f0178 http://git.io/vq5WZ (2015-07-10T19:04:05+02:00)
17:18 sloantothebone joined #minetest
17:21 proller joined #minetest
17:26 numZero joined #minetest
17:40 Haudegen joined #minetest
17:46 est31 joined #minetest
17:46 mazal joined #minetest
17:54 grimelle joined #minetest
18:04 blaise joined #minetest
18:27 twoelk joined #minetest
18:36 numZero joined #minetest
18:40 Amaz joined #minetest
18:42 tpe joined #minetest
18:45 sythe joined #minetest
18:53 blaise joined #minetest
18:59 proller joined #minetest
19:08 Shackra joined #minetest
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:36 LedInfrared joined #minetest
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:44 Haudegen joined #minetest
19:56 Krock np
19:58 VargaD_ joined #minetest
19:59 est31 if somebody has time, could they do the testing required for #2885 ?
20:04 luizrpgluiz left #minetest
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:09 H-H-H joined #minetest
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:14 Halamix2 joined #minetest
20:15 TheWild ok, thanks
20:21 MinetestBot [git] kwolekr -> minetest/minetest: Fix damage flash when damage disabled 1a1774a http://git.io/vqdXw (2015-07-10T15:58:57-04:00)
20:21 MinetestBot [git] kwolekr -> minetest/minetest: Misc. minor fixes 8eb272c http://git.io/vqdXr (2015-07-10T15:58:57-04:00)
20:24 Cryterion joined #minetest
20:30 yaman joined #minetest
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 Cryterion_ joined #minetest
20:33 yaman I mean the digging speed for all blocks
20:38 Enke joined #minetest
20:39 Lunatrius joined #minetest
20:41 Krock increase tool digging speed
20:42 Haudegen joined #minetest
20:50 Viper168 joined #minetest
20:54 MinetestBot [git] kilbith -> minetest/minetest: Fix remnant bugs on mainmenu c3dead7 http://git.io/vqdNc (2015-07-10T16:52:57-04:00)
20:56 greenman_ joined #minetest
20:57 Telesight joined #minetest
21:03 yaman can you increase hand digging speed as well?
21:04 est31 joined #minetest
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:07 blaise joined #minetest
21:23 blaise joined #minetest
21:37 red1 joined #minetest
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:06 LDshadowlady10 joined #minetest
22:07 LDshadowlady10 left #minetest
22:26 Xenoth joined #minetest
22:43 kaeza joined #minetest
22:52 kaeza Greetings
22:53 alket joined #minetest
22:54 Kray joined #minetest
23:15 asl97 joined #minetest
23:21 Enke joined #minetest
23:24 MinetestBot [git] gravgun -> minetest/minetest_game: Improved stairs model, v2 8a7af21 http://git.io/vqF61 (2015-07-11T00:22:18+01:00)
23:26 Pilcrow182 joined #minetest
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 :)
23:51 est31 joined #minetest

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