Minetest logo

IRC log for #minetest, 2017-11-11

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

All times shown according to UTC.

Time Nick Message
00:05 AntumDeluge joined #minetest
00:10 AntumDeluge joined #minetest
00:15 Jordach joined #minetest
00:15 GreenDimond joined #minetest
00:16 DMackey joined #minetest
00:16 GreenDimond I have only done a little with mod storage, but I would like to make a function that can add/remove playernames to a modstorage table, and a function that can check that table.
00:17 jas_ local store = minetest.get_mod_storage()
00:17 GreenDimond I have that part
00:18 jas_ minetest.register_on_playerjoin(function(player) store:set_string(player:get_player_name(), "cool" end)
00:18 jas_ checking the table is just a store:get_string() call, i think.  i use minetest.serialize() and deserialize() to convert to/from tables.  but there likely is a better way.
00:19 GreenDimond well there is a from_table() and to_table() too...
00:19 jas_ that sounds reasonable!  lol
00:19 GreenDimond But I dont know how to use them, but the set_string sounds a lot easier..
00:20 jas_ what are you trying to do? i'm not sure.
00:20 jas_ local table = store:to_table()
00:21 jas_ or is it from_table()? lol
00:21 jas_ https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L3348 OK
00:22 GreenDimond I want to make 2 commands to set players to lets just say "cool" and "not cool" (not using these, just examples). In order to do that, I need to use mod storage because you cant set attributes if the player is not on.
00:22 jas_ i guess it depends what you want to do.  here's mine: https://github.com/jastevenson303/dcbl_default/blob/master/init.lua#L72
00:22 jas_ ok.
00:22 jas_ store:set_string(player_name, "cool")
00:23 jas_ that should be it, right?
00:23 GreenDimond and then use get_string to check?
00:23 jas_ correct
00:23 jas_ worth a try.  i believe that's correct.
00:23 GreenDimond how do I remove the string?
00:23 jas_ set_string(player_name, nil)
00:24 GreenDimond alright, thankyou :D
00:24 jas_ you're welcome, good luck!
00:26 swift110 joined #minetest
00:28 lumberJ joined #minetest
00:33 YuGiOhJCJ joined #minetest
00:42 jas_ https://www.youtube.com/watch?v=rjmmjXGwarU
00:46 Extex joined #minetest
00:50 temp joined #minetest
00:51 Extex "Calinou, Im trying to make a forum account but it says im a known spammer. can you help me?"
01:09 Extex Calinou?
01:15 Calinou Extex: I don't remember how I can whitelist certain IPs :/
01:15 Calinou or even know if I can do that
01:15 Calinou your IP is probably in a known spammer range
01:22 Extex Why?
01:27 GreenDimond How do I check if a player exists even if they are offline?
01:27 GreenDimond minetest.get_player_by_name only works if they are online
01:28 EvergreenTree joined #minetest
01:30 soloojos joined #minetest
01:32 GreenDimond nevermind, found how to do it.
01:39 GreenDimond jas_, set_string(param, nil) doesnt set param to nil for some reason?
01:40 GreenDimond because if I check the string, it wasnt unset.
01:49 Out`Of`Control GreenDimond: what if you look for privs
01:49 GreenDimond I thought about that
01:50 GreenDimond but I dont want the player to know they have the priv or that they have been granted it
01:51 rdococ GreenDimond!
01:56 turtleman joined #minetest
01:57 torgdor joined #minetest
02:08 nullawk joined #minetest
02:15 swift110 joined #minetest
02:19 jas_ GreenDimond: it doesn't set param to nil, it sets that string to nil.   is that what you mean?  i might be confused, not sure about another way to clear an entry.  try regenerating the table?  gbfn
02:24 sovetskiy joined #minetest
02:30 sovetskiy Please help me to change player's inventory size correcly. Documentation says changing inventory formspec shoould be done in 'on_joinplayer' (https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L3525). I did so (https://pastebin.com/GpsrdqaG), but it is not working.
02:30 redblade7 joined #minetest
02:35 YuGiOhJCJ joined #minetest
02:36 Freejack joined #minetest
02:41 EvergreenTree joined #minetest
03:11 neinwhal joined #minetest
03:13 swift110 rubenwardy, what is the link to the event you was at recently
03:13 rubenwardy jesus christ
03:13 rubenwardy please bookmark it
03:14 rubenwardy you've literally asked me this at least 5 or so times already
03:18 LazyJ joined #minetest
03:19 swift110 sorry
03:24 ThomasMonroe joined #minetest
03:30 nullawk joined #minetest
03:43 riff-IRC joined #minetest
03:44 riff-IRC joined #minetest
03:47 jcjordyn120 joined #minetest
03:50 YuGiOhJCJ joined #minetest
04:52 YuGiOhJCJ joined #minetest
04:58 nullawk joined #minetest
06:12 soloojos joined #minetest
06:49 fwhcat joined #minetest
06:50 Hackberry joined #minetest
07:11 CWz joined #minetest
07:20 sovetskiy joined #minetest
07:55 xerox123 joined #minetest
08:10 Telesight joined #minetest
08:38 Hackberry joined #minetest
09:48 Taose joined #minetest
10:18 deltasquared joined #minetest
11:09 Jordach joined #minetest
11:40 nac joined #minetest
12:01 EvergreenTree joined #minetest
12:11 Fixer joined #minetest
12:22 deltasquared joined #minetest
12:25 Tux[Qyou] joined #minetest
12:26 ensonic joined #minetest
12:57 riff-IRC joined #minetest
13:01 jcjordyn120 joined #minetest
13:06 riff-IRC joined #minetest
13:07 jcjordyn120 joined #minetest
13:15 riff-IRC joined #minetest
13:15 jcjordyn120 joined #minetest
13:24 deltasquared hrm, I guess VanessaE was right about moving light sources, they do seem to cause a slight increase in server load just with one of them
13:24 wnereiz joined #minetest
13:25 wnereiz I'm trying to migrate to postgresql on minetest 0.4.16, but got following errors:
13:25 wnereiz ERROR[Main]: An unhandled exception occurred: Database backend postgresql not supported.
13:25 wnereiz Can you help me?
13:26 wnereiz minetestserver --migrate postgresql --world "/path/to/myworld"
13:28 rubenwardy you need to compile with postgresql
13:30 wnereiz which cmake configures should I use?
13:31 deltasquared I'm not sure if postgresql is picked up automatically if present.
13:31 deltasquared wnereiz: don't forget the postgresql-dev package or whatever the equivalent for your distribution is
13:32 wnereiz deltasquared: okay, will try
13:35 wnereiz deltasquared: not working
13:35 wnereiz Looks like it was not compiled with postgresql support
13:36 wnereiz I'm not sure if it is "off" by default
13:36 wnereiz which means I have to enable it
13:36 deltasquared wnereiz: the -dev package was if you were recompiling it, it won't affect built binaries
13:37 deltasquared sorry, I didn't emphasise that a rebuild was likely still needed
13:37 wnereiz deltasquared: I checked spec file, -devel is not included
13:39 deltasquared wnereiz: I don't really know the procedure myself, so you'll have to look it up.
13:39 wnereiz deltasquared: Fine. Thanks a lot
13:40 Darcidride joined #minetest
13:46 deltasquared argh, github doesn't let you have HTML READMEs any more!?
13:46 deltasquared I mean I guess there *is* pages, but that's not quite what I had in mind, it's not tied into the same repository
13:46 Taose Readmes should be Txt at any rate >.>
13:47 Taose Maybe even a pdf?
13:48 deltasquared Taose: the minimal subset of HTML that I use (it's hand written, I swear!) feels more natural for the things I use it for - like sane list handling and paragraph/newline tags
13:48 deltasquared https://github.com/thetaepsilon-gamedev/minetest-mod-lightentity/blob/master/doc.xhtml
13:50 deltasquared I'm not really bothered to re-write it now I've written it anyway >.<
14:03 Wuzzy joined #minetest
14:05 Raven262 joined #minetest
14:12 rubenwardy Taose, nah MD
14:12 Taose You say handwritten... I'm thinking Quill and Ink?
14:13 Taose I feel like my first year at University when I had to hand write a HTML web page -_-
14:13 Taose (not a joke, actually did that, they got slightly annoyed when I referenced a CSS page that they had to go find in the library)
14:16 Enricoo joined #minetest
14:18 deltasquared Taose: heh, did you put library://xxx... as the source url? ;)
14:18 deltasquared perhaps more accurate would have been hand typed, then
14:19 deltasquared also, slightly strange question, does MT have any position on epilepsy?
14:20 deltasquared I was just adding a thing to my moving light source entity just now to slow down the update interval (hopefully to reduce lag...), but noticed that if the player moved too fast (perhaps they fell) it would cause flashing both on the wielded image and on nearby walls
14:20 deltasquared nothing strobe-like mind, but it did occur to consider it (it made *my* head hurt just a tad to watch)
14:21 deltasquared AFAIK there isn't a "warning: this game may contain flashing images" thing on the site, or maybe a disclaimer saying that mods *may* cause that and it is the user's discretion
14:22 soloojos joined #minetest
14:24 orbea deltasquared: isn't there already a no warranty disclaimer in the license?
14:24 deltasquared orbea: that is true, but ethically it bears worth repeating as it were
14:25 orbea i guess so :shrug:
14:25 deltasquared all it means is they can't sue the devs for it, though it probably won't stop them being admittedly salty
14:25 deltasquared I think I would be if I wasn't expecting it and I woke up on my floor
14:25 orbea heh...
14:26 Taose I didn't use library but pretty much.
14:27 Taose I think there are things we can and should do to reduce the effects of triggering epilepsy
14:27 Taose But I don't think we're in a position where it's a problem as yet
14:28 Taose Might be worth reaching out to an Epilepsy charity to see what we could do?
14:30 deltasquared Taose: well I was just looking at some guidelines here https://abilitynet.org.uk/download/2715/Epilepsy%20and%20Computing%20March%202016.pdf?redirect=node/196
14:30 deltasquared hah, 100hz or above to not cause seizures due to refresh rate flicker, rip
14:31 Taose Nothing we can do about that
14:31 deltasquared Taose: my thoughts on that would be adding a "lighting disable" mode, though it may not help with rapidly switching textures for instance
14:31 Taose most monitors only have a refresh rate of 60...
14:31 deltasquared off the top of my head, the only 100% bulletproof ways to prevent seizures would make the game *very* visually boring
14:32 Taose Pretty much
14:32 deltasquared there are some really stupid edge cases I can think of, so I agree that seeking advice on the matter would be more appropriate
14:32 deltasquared even if it were just to advise that it not be played by those with the condition.
14:34 ensonic joined #minetest
14:40 Hackberry joined #minetest
14:55 deltasquared ... wait what
14:55 deltasquared I dunno if it's just to do with the method I'm using but apparently a light source moving at 5-6 times a second does not add measurable overhead to a server
14:55 deltasquared or rather, it's within margin of error
15:00 lumberJ joined #minetest
15:00 Taose It depends on what it's doing
15:05 deltasquared Taose: like I said earlier, it's an entity which moves a light source as it moves around (but only if it rounds to a different node)
15:06 deltasquared setting the interval (of accumulated dtime) to ~0.3 adds seemingly adds neglible load, faster than that still evens out to ~1-2% extra but has spikes every now and again (not sure if caused by other operations)
15:06 deltasquared I think then it might be worth looking at the profiler data.
15:10 deltasquared does the profiler include time spent in code like minetest.set_node() and re-light calculations in particular?
15:16 lumberJ joined #minetest
15:49 deltasquared joined #minetest
15:53 soloojos joined #minetest
16:23 Beton joined #minetest
16:29 Jordach Taoki, https://youtu.be/OZHcY4xFeRQ
16:55 nowhere_man joined #minetest
17:05 Fixer_ joined #minetest
17:19 Fusl joined #minetest
17:20 Krock joined #minetest
17:24 Darcidride joined #minetest
17:49 Telesight joined #minetest
17:51 bigfoot548 joined #minetest
17:52 jcjordyn120 joined #minetest
17:52 riff-IRC joined #minetest
17:54 jluc joined #minetest
18:00 riff-IRC joined #minetest
18:17 Beton_ joined #minetest
18:40 deltasquared joined #minetest
18:51 Taoki Jordach: Very cool. I hope it will be built into minetest_game
18:51 rubenwardy Jordach is very hostile towards it
18:51 rubenwardy *MTG
18:51 Jordach MTG is a flaming tyre fire
18:51 rubenwardy I would approve it though, depending on the perfance
18:51 Jordach it does use a modified lightning from sofar
18:52 rubenwardy adding weather is on MTG's roadmap
19:00 Tux[Qyou] joined #minetest
19:00 deltasquared what did I miss?
19:01 deltasquared also "flaming tyre fire" that... is not the impression I got, what can I say
19:02 deltasquared weather is an interesting one to do with cubic chunks, I can only assume it would have the same caveats as with sky lighting right now - namely, build something too tall and it will crap out and rain indoors
19:18 Jordach not entirely
19:18 Jordach just make it rain from cloud level
19:18 Jordach problem solved
19:19 deltasquared hmm, I guess. though it might not help if you're in a deep hole and there are unloaded areas between you and cloud level, but there happens to be a roof in those areas
19:20 deltasquared without force loading all chunks up to the sky (which has problems at great depths), there will always be caveats
19:20 deltasquared s/sky/clouds/
19:20 Krock joined #minetest
19:23 Jordach deltasquared, you don't need to
19:30 Hackberry joined #minetest
19:30 loganrun joined #minetest
19:30 loganrun I tried /giveme tnt:tnt, but it says unknown item
19:30 EvergreenTree joined #minetest
19:32 sovetskiy joined #minetest
19:33 loganrun is there anyway to do this?
19:36 neinwhal left #minetest
19:38 ThomasMonroe joined #minetest
19:44 deltasquared joined #minetest
19:47 loganrun nevermind got it
19:49 sovetskiy to do what? answer question? it's so hard even to say "I don't know" here. Instead you will wait for silence.
19:50 deltasquared loganrun: did you make a typo? "/giveme tnt:tnt" should work fine (with appropriate privileges)
19:50 Krock no, it doesn't work when hosting a server
19:51 Krock TNT must be enabled manually AFAIK
19:51 deltasquared figures, a bit like with servers in general - anti-griefing measure I guess
19:52 * deltasquared has a couple of large holes in his test world from playing with power-64 explosions from luacmd
19:56 orbea yea, TNT is off by default on servers, fire too
19:58 loganrun yeah got it, trying to figure out if there is a list of items. so that i can give stuff
19:59 deltasquared "list of items"? "give stuff"?
19:59 deltasquared I detect an !xyproblem, except it's the wrong channel for that command... -_-
20:00 deltasquared to quote the #archlinux bot: “Tell us what you're REALLY trying to do. http://mywiki.wooledge.org/XyProblem ”
20:00 Krock arch linux? https://i.imgbox.com/VjDs5vh0.png
20:00 rubenwardy the best way to find item names is the wiki, unfortunately
20:00 rubenwardy and F5
20:00 rubenwardy oh'
20:00 Krock aww man. that image was removed
20:00 rubenwardy there is a setting to show item names in tooltips
20:00 rubenwardy 0.5-dev
20:00 deltasquared Krock: was it meme-related
20:01 rubenwardy Krock: :(
20:01 rubenwardy I'm surprised you're an archlinux user, you've been in the channel for quite a while and that's the first time you mentioned it
20:02 loganrun is there a way to change ownership of a bone box
20:02 deltasquared loganrun: ... in the spirit of the above, why would you want to do that
20:02 rubenwardy loganrun, either wait until the protection expires, use protection_bypass, or write a mod
20:03 rubenwardy meta:set_string("owner", "newusername")
20:03 deltasquared rubenwardy: I could have sworn I mentioned it at somepoint ;)
20:03 deltasquared I didn't think it would be suprisingly
20:03 Krock deltasquared, comic. a guy riding the bike and putting a stick into the wheels "pacman -Syu". crashes with the bike. cries on the grass.
20:03 deltasquared Krock: oh, that. yeah I think I know that one
20:03 deltasquared I can't remember who he curses though
20:04 * rubenwardy uses an Ubuntu derivative
20:04 * rubenwardy hides
20:04 Krock was posted on linuxmasterrace last week IIRC
20:04 Krock rubenwardy, same
20:04 deltasquared rubenwardy: it's fine.
20:04 rubenwardy It's a common repost
20:04 loganrun how does protection bypass work
20:04 loganrun is that a grant option
20:04 deltasquared loganrun: seriously what are you trying to do
20:04 Krock yes.
20:04 rubenwardy loganrun, it's a privilege that allows the player to access any chests or protected nodes
20:04 rubenwardy but what deltasquared said
20:04 deltasquared inb4 he's trying to get into someone else's bones on a server
20:04 rubenwardy you don't want to give it to untrusted players
20:05 rubenwardy just hide the bones somehow and wait for expiration
20:05 jimvideo joined #minetest
20:05 rubenwardy if you're doing that
20:05 deltasquared loganrun: ok, let's try this another way, and please do not be offended: are you trying to claim the contents of another's bones on a server you don't own?
20:06 deltasquared ...
20:06 deltasquared dude hurry up, my eyebrows are going to stick like this :P
20:07 deltasquared (╯°□°)╯︵ ┻━┻
20:07 loganrun I think I got it thanks
20:08 deltasquared rubenwardy, Krock: https://ptpb.pw/Ethw.png
20:08 deltasquared in regard to ^^
20:33 Hackberry joined #minetest
20:46 nowhere_man joined #minetest
20:51 Hackberry joined #minetest
20:54 nowhere_man joined #minetest
20:55 FreeFull joined #minetest
21:03 Calinou rubenwardy: https://i.redd.it/kzbvz8m6hxwz.jpg
21:03 rubenwardy :D
21:09 deltasquared I... I'm not familiar with what that is supposed to be parodying
21:10 rubenwardy Monty Python?
21:13 Calinou I guess, yeah
21:14 Calinou would Monty PyPy be a faster version? ;)
21:14 garywhite joined #minetest
21:14 deltasquared much faster, but somehow you still understand it
21:41 MinetestBot [git] paramat -> minetest/minetest_game: River water renewability: Add comments to nodes.lua and bucket mod 3ae382c https://git.io/vFwcc (2017-11-11T21:37:27Z)
21:41 MinetestBot [git] bertrandda -> minetest/minetest_game: README: Update minetest.net downloads link to avoid redirection 91997d9 https://git.io/vFwcC (2017-11-11T21:35:56Z)
21:41 MinetestBot [git] raymoo -> minetest/minetest_game: Creative: Make the placenode registration check for non-player placers 8b5ad0f https://git.io/vFwcW (2017-11-11T21:34:30Z)
21:41 MinetestBot [git] raymoo -> minetest/minetest_game: Creative: Make handle_node_drops override work for non-player diggers 319b9ee https://git.io/vFwcl (2017-11-11T21:34:05Z)
21:46 desttinghim[m] joined #minetest
22:07 Fixer joined #minetest
22:18 Hackberry joined #minetest
22:21 slemonide joined #minetest
22:30 Lone-Star joined #minetest
22:31 Jordach joined #minetest
22:35 tpe joined #minetest
22:50 Wuzzy does anyone know a weather mod which does NOT suck?
22:54 Taose I'm almost satisfied with the one on the main page but nope...
22:54 Taose To be fair, my biggest gripe at the moment is NPCs... can't find a decent mod at all.
22:58 Calinou it's not really possible to make fast mob AI in pure Lua
23:04 Fixer Wuzzy: until faster particles PR is merged, everything will suck
23:06 sovetskiy formspecs suck
23:11 Taose I didn't say they had to be quick
23:12 Taose I just wanted it to be stable and preferably programmable (of sorts)
23:24 fwhcat joined #minetest
23:28 Tux[Qyou] joined #minetest
23:29 Extex joined #minetest
23:30 Extex Calinou can you fix my IP address, So I Can Make An Account On The Forum, Thanks
23:31 Calinou Extex: I cannot change your IP address :)
23:31 Calinou really, I don't know what to do about this, since the forum doesn't let you register
23:31 Calinou (so I can't force-activate your account, since it doesn't exist)
23:32 rubenwardy could find out the service we use for spam IP detection?
23:32 rubenwardy and somehow get them to whitelist
23:34 Calinou I think it's stopforumspam
23:35 Extex If You Could Add Me To The White-list That Would Be Great Thanks
23:36 Taose If you have a Dynamic IP address, you could just turn off your router for 24hours and hope it re-allocates
23:36 soloojos joined #minetest
23:36 Taose (some services reallocate after as little as 30 minutes)
23:37 rubenwardy Extex: http://www.stopforumspam.com/removal
23:37 lumberJ joined #minetest
23:38 Fixer my country is banned from anandtech forums entirely for like 10+ years for spam reasons
23:38 Fixer iirc
23:38 CalebDavis joined #minetest
23:42 Calinou Taose: the IP range is banned, not the single IP
23:42 Calinou sometimes as wide as an entire ISP or even country
23:42 Taose yeowch
23:42 Taose Welp there's only one option left

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