Minetest logo

IRC log for #minetest-hub, 2018-07-14

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

All times shown according to UTC.

Time Nick Message
00:02 IhrFussel If I set every data of a table to nil then I can just do "if table == {} then" to check if all entries were gone right?
00:03 rubenwardy no
00:03 rubenwardy that will check per reference
00:04 rubenwardy unless there's an edge case for empty table
00:04 rubenwardy <rubenwardy> % local a,b = {},{};   print((a == b) and "t" or "false")
00:04 rubenwardy <yalb> rubenwardy: false
00:05 IhrFussel Then how do I check if the table (which is only local) has no entries left?
00:05 rubenwardy write a function using pairs
00:05 rubenwardy https://stackoverflow.com/questions/1252539/most-efficient-way-to-determine-if-a-lua-table-is-empty-contains-no-entries
00:06 rubenwardy (pairs uses next, but using next directly is better)
00:06 rubenwardy literally just googled that ^
00:07 IhrFussel if #table == 0 then print("table is empty"); end
00:07 rubenwardy no
00:07 rubenwardy # only works on integer keys
00:07 rubenwardy and also      #{ 3 = true }     will be 0
00:07 IhrFussel It just worked in CLI
00:08 IhrFussel Ah I see
00:09 rubenwardy > print(#{[3]=true})
00:09 rubenwardy 0
00:11 IhrFussel next is builtin yes?
00:11 rubenwardy yes
00:15 IhrFussel I think that check will improve globalsteps execution time quite a bit... cause I have a few loops that only need to run if one of the online players currently uses it (entry in table)
01:02 Sokomine :-/ tried to write to paramat but he's not online it seems
01:02 Sokomine anyone else got an idea what "WARNING[Emerge-0]: Map::getNodeMetadata(): Block not found" might mean?
01:23 tumeninodes sigh..., https://imgur.com/a/ujDaUpi
01:23 tumeninodes !title
01:23 MinetestBot tumeninodes: World aligned textures kill fences - Album on Imgur
01:24 tumeninodes very hopeful there is some way to turn them off per node. : /
01:33 tumeninodes Sokomine: https://github.com/minetest/minetest/issues/5246
01:37 tumeninodes the [Emerge-0] is different but possibly related?
01:44 Sokomine tumeninodes: nothing to see on that image. probably hidden behind js...
01:46 Sokomine tumeninodes: ah, thanks. perhaps that's it
02:17 ANAND joined #minetest-hub
02:36 bigfoot547 joined #minetest-hub
03:42 ssieb joined #minetest-hub
05:37 jluc joined #minetest-hub
06:00 tumeninodes left #minetest-hub
06:26 Corvus_ joined #minetest-hub
06:55 CWz joined #minetest-hub
07:27 Corvus__ joined #minetest-hub
08:42 Krock joined #minetest-hub
08:42 Krock o/
08:43 ANAND Heya :)
08:53 Krock Probably one of the first 5.0.0-dev mods: https://github.com/SmallJoker/upgrade_packs - 0.4.x compat is not possible here
08:55 Krock the craft recipe could be a bit cheap.. *shrug*
08:58 AndroBuilder joined #minetest-hub
09:03 ANAND Nice :)
09:21 lhofhansl joined #minetest-hub
09:52 Darcidride joined #minetest-hub
10:28 DI3HARD139 joined #minetest-hub
10:45 Fixer joined #minetest-hub
10:56 Krock joined #minetest-hub
11:37 Krock joined #minetest-hub
11:38 ANAND_ joined #minetest-hub
11:57 Calinou can some people try to test https://github.com/minetest-mods/moreblocks/pull/121 please?
11:57 Calinou it's a huge PR, I wish they opened several ones :/
11:57 Calinou at least they split it into several commits
11:59 BakerPrime_ joined #minetest-hub
11:59 BakerPrime joined #minetest-hub
11:59 Krock they did the same in u_i
12:00 Krock the translations were ok there
12:01 Krock However, we'll definitely need a custom *.po parser so that client side translations get easier to use
12:35 entuland joined #minetest-hub
13:07 AndroBuilder joined #minetest-hub
13:08 Darcidride joined #minetest-hub
13:17 ANAND joined #minetest-hub
13:19 jluc joined #minetest-hub
13:45 entuland joined #minetest-hub
14:22 Gael-de-Sailly joined #minetest-hub
14:59 Krock oh shit
15:00 Krock sorry BillyS
15:00 BillyS ?
15:00 Krock your server freed some ram
15:00 BillyS Oh, crashed my server? :P
15:00 BillyS lol
15:00 ANAND lol
15:00 Krock awards needs a PR to fix this
15:01 Krock *busy*
15:16 Shara Hmmm....
15:16 Shara Found something interesting
15:16 Shara Look at how two stones types mix here: http://gingercat.tk/dg/hw_stone_types.png
15:17 Shara It's certainly a weird bug in biome registration, but I love how it looks
15:32 Fixer_ joined #minetest-hub
15:39 paramat joined #minetest-hub
15:40 lhofhansl joined #minetest-hub
15:52 paramat rubenwardy, too much phone talk .. naughty! :) please don't break channel rules, you're even a channel moderator
15:53 Krock the phone line has a much higher data throughput than what happened here
15:59 Topic for #minetest-hub is now Keep offtopic (≈50 lines) or use #minetest-chat | http://hub.minetest.net/ | Logs: http://irc.minetest.net/minetest-hub/
16:03 IcyDiamond +- 20 lines
16:03 IcyDiamond ;)
16:04 paramat doesn't read well without the word 'short'
16:05 Topic for #minetest-hub is now Keep offtopic short (<50 lines) or use #minetest-chat | http://hub.minetest.net/ | Logs: http://irc.minetest.net/minetest-hub/
16:05 paramat and offtopic doesn't have to be 50 lines each time
16:12 ANAND Agreed, "Keep offtopic" wasn't very meaningful :)
16:16 paramat opposite meaning in fact :)
16:19 Krock that was intended
16:19 Krock rubenwardy: awards has got a new PR
16:19 Shara -chat isn't an official channel
16:19 Shara So it's kind of weird to put that
16:21 rubenwardy Oh no
16:28 ANAND Whoa, this is maddening! http://www.xeroxirc.net:81/minetest-hub/
16:28 ANAND So much stats!
16:29 ANAND Bid adieu to your privacy, even your heart-beats are logged :P
16:31 Krock the bot does not ignore [off]. bad bot.
16:32 Fixer joined #minetest-hub
16:33 ANAND True, lol
16:36 IhrFussel joined #minetest-hub
16:36 Krock hi IhrFussel
16:36 IhrFussel Hi guys... how does get_object_inside_radius() work internally? Will it only check something once per mapblock?
16:37 Krock https://github.com/minetest/minetest/blob/master/src/script/lua_api/l_env.cpp#L663
16:38 paramat stats, nice
16:38 Krock IhrFussel: it iterates through each loaded object in the world and returns the closest ones
16:40 IhrFussel It loops through EVERY object that is visible by any player? Then I imagine there is not much difference between a radius of 10 or 50
16:40 Krock no, it's how I said it
16:41 Krock > it iterates through each loaded object in the world
16:41 IhrFussel Yeah but players heave to be nearby objects to load them
16:41 Krock the only thing which makes a difference is when there are overall many objects
16:41 Krock what are force loaded mapblocks?
16:41 Sokomine Shara: reminds me of the mixing of diffrent block types for paths often seen on mc screenshots but rarely on mt. i think it's due to the way the textures are
16:42 paramat stats are funny
16:42 Shara Sokomine: In the case of the screenshots I showed, it's nothign to do with textures. I've worked out how to use it now
16:43 Sokomine paramat: be glad you havn't got to pay his phone bill :)
16:44 Fixer_ joined #minetest-hub
16:45 Sokomine Shara: yes, that's right. still, mc builders seem to build paths out of diffrent materials deliberately in order to make them more intresting. that almost never happens in mt. my theory is that the textures are diffrent in that regard. the mc ones seem to fit together a lot better - but also offer less variety when needed
16:46 Shara Hmm, okay, but not really sure what that has to do with the screenshots I showed :D
16:46 Shara That is pure mapgen, not player-built
16:46 IhrFussel So is my assumption right? There is no big difference between a radius of 10 and a radius of 50 since the engine loops through all objects anyway?
16:46 Sokomine the effect reminded me of that
16:47 Shara It happens underground as well: http://gingercat.tk/dg/hw_stone_types2.png
16:47 Shara If that means you thinkt he textures match well then, I'm pretty happy :)
16:47 Fixer joined #minetest-hub
16:48 Sokomine shara: that effect seems to have been achieved, yes :-)
16:48 Shara :)
16:48 Shara Most of the stone textures are tumeni's work, not mine.
16:50 Shara And we're currently at six different kinds of stone, each of which will have a coup[le of different naturally occuring nodes with different textures.
16:54 IhrFussel Just tested...it really barely makes any difference... a radius of 10 takes ~ 30 µs and a radius of 150 takes ~ 250 µs ... even with a very high radius the execution time is less than 1ms
17:05 paramat 30 .. 250, barely a difference
17:05 paramat 1ms is a very long time in code
17:07 Sokomine depends on how often you do it. if it's caused by the player actively doing something - no problem. if a horde of mobs does it almost constantly...
17:08 IhrFussel paramat, 1ms is not long at all on a busy server... general lag is between 0.2 and 0.5 secs on mine
17:08 Sokomine IhrFussel: why do you advertise the topic? just click on the report button and let a forum admin get rid of it
17:09 IhrFussel I put it in off so it doesn't get logged and I know that several forum MODs are here
17:10 * Shara kills it
17:10 IhrFussel There's another ad thread right below it..lol
17:11 paramat without mentioning it's spam, linking it is useless
17:11 Shara Anyway, killing the other as well.
17:31 IhrFussel Can someone give me an example on how to spawn particles surrounding a player? For example show particles with a radius of 3 around the player
18:19 jluc joined #minetest-hub
18:26 garywhite joined #minetest-hub
18:43 paramat IhrFussel too much phone-talk last night, next time will kick you ;)
18:44 lhofhansl joined #minetest-hub
18:46 lhofhansl joined #minetest-hub
18:49 jluc joined #minetest-hub
19:01 Krock paramat: huh? where?
19:03 paramat =s
19:29 AndroBuilder joined #minetest-hub
19:44 tenplus1 joined #minetest-hub
19:44 tenplus1 hi folks
19:44 tenplus1 o/ Krock
19:47 Krock o/ tenplus1
19:47 Krock this came unexpected. like the spanish equisation
19:47 tenplus1 :P what's new ?
19:48 Krock * Spanish Inquisition
19:48 Krock oh well, published a new mod.. doing some PR reviews.. nothing special after all
19:48 tenplus1 new mod ?
19:50 Krock "mod". Noun. Abbreviation of "modification". Refers to a work consisting of Lua script files in Minetest. Without "client" context, "server-sided mods" is assumed commonly.
19:51 Krock new as in new, yes :P
19:51 tenplus1 lol... what's the mod ?
19:53 Krock https://forum.minetest.net/viewtopic.php?f=9&amp;t=20476 .. craft recipes might need better balancing. it's a bit cheap now
19:53 tenplus1 le click
19:53 shivajiva hi tenplus1
19:53 tenplus1 hi shiva :P
20:05 tenplus1 :P
20:08 xerox123 tenplus1: how's the weather?
20:08 tenplus1 still hot n humid... was melting today
20:09 tenplus1 you ?
20:14 xerox123 too hot with some clouds
20:14 tenplus1 we need a good storm...
20:14 tenplus1 thunder n all
20:14 * xerox123 does rain dance
20:14 tenplus1 ehehehe
20:14 xerox123 there was meant to be a thunderstorm yesterday, but no avail
20:15 tenplus1 soon
20:23 tenplus1 nite folks
20:23 tenplus1 left #minetest-hub
20:37 Gael-de-Sailly joined #minetest-hub
20:41 AndroBuilder joined #minetest-hub
20:57 xerox123 stairs cut from circular saws always seem to face the same direction when places?
20:57 xerox123 placed*
21:07 Krock déja vu
21:54 Sokomine xerox123: the usually face into the direction you look at. if you're building more with blocks from the saw, have a look at my replacer mod
21:59 xerox123 they always seem to turn to face North
22:03 AndroBuilder joined #minetest-hub
22:05 lhofhansl left #minetest-hub
22:19 AndroBuilder_ joined #minetest-hub

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