Luanti logo

IRC log for #minetest-hub, 2018-11-26

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

All times shown according to UTC.

Enable nick filtering
Time Nick Message
3 more elements. Show/hide.
00:51 BillyS I'm trying to figure out how to write a mod that does map generation (specifically cave networks).  Any documentation on this?
00:53 BillyS I understand most of it, except the ordeal with perlin noise
00:55 BillyS Hmm, the octaves seem to define how detailed the noise gets
00:55 BillyS scale is self-explanatory
00:56 BillyS Ah, and persist is how much influence each successive octave has ... I think
00:57 BillyS And I guess spread just kinda spreads it out ...
00:58 BillyS Hmm, I suppose I just need to mess with it
01:31 rubenwardy https://i.rubenwardy.com/BpJZQ.png
7 more elements. Show/hide.
05:28 jas__ it happens when i user set_player_armor too soon, before the player has fully joined for example.
16 more elements. Show/hide.
11:59 jas__ i dedicated my sneak_jump mod to shara.  i haven't done an on/off toggle, yet, but am still thinking about it.  i know you don't like it, but i appreciate the feedback again.
11:59 jas__ https://forum.minetest.net/viewtopic.php?p=336061#p336061
12:00 Shara Hi jas :)
12:00 jas__ hi :)
12:01 Shara Might not like playing with it as such, but I do like to see alternatives and so on :)
12:08 jas__ oh good
12:09 jas__ it started an an always-on mod just to re-enable the old movement, but it actually does the food and shows armor :O
12:09 jas__ should probably split out the hud stuff if i can lol.  oh well
12:12 jas__ i have a hunch that the less gravity a player (object) has, the faster is decelerates
12 more elements. Show/hide.
17:07 ANAND Does minetest.check_player_privs(name, {interact = false}) return true only if the player `name` does not have `interact`?
17:08 jas_ i think so yea
17:08 jas_ er, i think u do = true tho
17:08 jas_ or just check_player_privs(name, "interact")
17:09 ANAND That will return true if the player *has* `interact`
17:09 Fixer_ joined #minetest-hub
17:09 jas_ oh
17:09 ANAND I want to ensure that the player *does not* have `interact` :)
17:10 jas_ check_player_privs(name, "interact") isn't `false' if interact=false?  sorry, so confused... plus double negatives ha
17:10 jas_ (/me quietly steps away from the keyboard)
17:11 rubenwardy ANAND: it'll always return true
17:11 ANAND Oh
17:11 rubenwardy minetest.check_player_privs(name, {interact = false})    is the same as    minetest.check_player_privs(name, {})
17:11 rubenwardy you want       not minetest.check_player_privs(name, {interact = true})
17:12 ANAND Right... thanks
17:12 rubenwardy chat commands and privileges are 100% implemented in Lua, btw
17:12 rubenwardy https://github.com/minetest/minetest/blob/master/builtin/game/misc.lua#L7
17:12 rubenwardy well wait
17:12 rubenwardy hmm
17:12 ANAND I was planning on using one check_player_privs for evaluating whether one priv is true and the other priv is false...
17:12 rubenwardy the engine does know about privileges actually, but it asks Lua for them
2 more elements. Show/hide.
18:01 Krock hi tenplus1 who isn't here
12 more elements. Show/hide.

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