Minetest logo

IRC log for #minetest-hub, 2018-06-28

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

All times shown according to UTC.

Time Nick Message
00:14 Ruslan1 joined #minetest-hub
00:48 tumeninodes left #minetest-hub
01:15 redneonglow joined #minetest-hub
01:17 ANAND joined #minetest-hub
01:57 ssieb joined #minetest-hub
02:09 benrob0329 joined #minetest-hub
05:41 tumeninodes joined #minetest-hub
05:42 tumeninodes travis is an asshole... just sayin'
05:47 ANAND hahaha
05:47 ANAND I hate Travis too... :P
05:47 VanessaE hey now, my landlord's a great guy.
05:47 VanessaE wait, what? :P
05:48 ANAND XD
05:48 tumeninodes hahaha
05:48 tumeninodes he's a poopie head
05:49 ANAND Why on earth does your landlord validate random commits to random repos on Github tho?
05:49 VanessaE heh
05:50 tumeninodes omg Vanessa... why is my indexing so off all the time?! GR
05:50 VanessaE nfi :)
05:51 tumeninodes I use text editor, that's why
05:51 VanessaE hey, at least I added your obsolete-ass mod to dreambuilder ;)
05:51 VanessaE (facade)
05:51 tumeninodes my PR looks like shit
05:51 tumeninodes 0_0 holy shit.... you did?
05:51 VanessaE yep.
05:51 tumeninodes Thank you ")
05:51 VanessaE :)
05:52 VanessaE now Andrey01 can't complain anymore :)
05:52 tumeninodes oh I see....
05:52 tumeninodes added it just to get him off your back eh?
05:52 tumeninodes AWESOME!
05:52 VanessaE no :)
05:52 tumeninodes haha
05:53 tumeninodes ugh... I have to go in and fix all my fucking indents
05:54 tumeninodes you would think I would learn to take a few to look over my code in a real editor or something
05:54 VanessaE geany is good for that.
05:54 VanessaE give it a try sometime
05:55 tumeninodes I forgot about Geany
05:55 tumeninodes Ive been using zerobrane :P
05:55 tumeninodes cuz you know, it and I have much in common
05:56 tumeninodes geany is actually easier to use if I remember
05:59 tumeninodes yeh, this is annoying. If I zoom out so I can actually see more then 10 lines, the moment I save, the text zooms back to default
06:12 tumeninodes What should indentation be set for in geany going by MT/MTG standards?
06:12 VanessaE tabe are tabs and are 4 spaces wide.
06:12 VanessaE use tabs to indent, add spaces to align things like tables et. al
06:13 tumeninodes ah good, that is by default, all set then
06:13 tumeninodes goodbye zerobrane
06:13 VanessaE sounds like zerobrane has zero brains :P
06:13 tumeninodes it's clunky
06:14 VanessaE could be worse.
06:14 VanessaE you could be doing your coding in Speedscript :)
06:14 tumeninodes I should have known better than to install oustide the repo
06:14 tumeninodes never used it... sounds scary
06:15 VanessaE it's an old, somewhat obscure app from the Commodore 64, kinda half text editor, half word processor.
06:15 VanessaE published by Compute! magazine, if memory serves
06:15 tumeninodes So "speed" is now more of a funny
06:16 ssieb joined #minetest-hub
06:16 tumeninodes actually saw an old typewriter at the local thrift shop the other day..., everything works. I asked to have it set aside I have to see where I can get ink ribbon for it
06:17 VanessaE heh, good luck with that
06:17 tumeninodes I'm sure
06:17 VanessaE turn it into a steampunk-ish keyboard :)
06:17 tumeninodes haha
06:17 tumeninodes that's a thought
06:17 tumeninodes or i can heat the keys and type on thin wood
06:18 VanessaE heh
06:18 tumeninodes it's in amazing shape though
06:18 tumeninodes I'll use it to type all my friends letters and annoy them
06:19 VanessaE if you were *really* ambitious, you'd rig up the letter-printing part to act as an old-style letter quality printer, while using the keyboard half as a simple (but stylized) PC keyboard :)
06:19 tumeninodes and use my wax/seal kit to be even mmore obnoxious
06:19 VanessaE or better yet:
06:19 VanessaE let it interpret postscript into ASCII art ;)
06:20 tumeninodes 0_0
06:20 VanessaE I think you'll need a bit more oomph than an arduino for that though ;)
06:20 tumeninodes gosh Vanessa... I don;t think I have that much wiring around
06:20 VanessaE Galco electronics can help with that :P
06:21 VanessaE (and you get a free insulated coffee mug)
06:21 tumeninodes oh... that settles then... I'm ordering something... just to get the mug
06:22 tumeninodes wait.... It's not one of those stupid coffee mittens is it??? :|
06:22 VanessaE years ago I bought several spools of wire in assorted colors, less than 100 m of wire in total.
06:23 VanessaE along with said wire they sent a coffee mug, holds about 1.1L (close to 5 US cups)
06:23 tumeninodes that's a fucking thermos
06:23 tumeninodes haha
06:23 * VanessaE looks at her cat and meows at her
06:24 VanessaE not quite, it's just a big insulated mug :)
06:24 tumeninodes I have to step out to have a lil cigar.... cuz Ima thug
06:24 tumeninodes :D
06:25 VanessaE ick.
06:25 VanessaE at least chaw on a real cigar, or light a pipe.
06:25 tumeninodes they are cognac dipped
06:25 tumeninodes I need a new pipe
06:26 tumeninodes started making my own some time ago and never finished it.... have no idea where it went
06:26 VanessaE I don't smoke, and I dislike tobacco in general, but sometimes a good cigar or pipe with good tobacco at least smells nice, compared to cigarettes anyway
06:26 tumeninodes I always get compliments from people haha
06:27 tumeninodes one woman at a fair once asked if she could just stand next to me cuz the smell reminded her of her grandfather
06:28 VanessaE heh
06:28 tumeninodes cigars are tougher, have to be careful to get them dipped or to have something to dip them into and the right tobacco
06:28 tumeninodes otherwise they can smell like burning crotch :P
06:28 VanessaE oh G*d
06:28 VanessaE TMI :P
06:29 tumeninodes haha.... Ima let you think on that whilst I go smoke :D
07:17 tumeninodes left #minetest-hub
07:35 ClobberXD joined #minetest-hub
07:51 CWz joined #minetest-hub
09:02 red-001 having 777 issues open seems neat
09:26 ANAND heh
10:12 Fixer joined #minetest-hub
10:13 rubenwardy !mod
10:13 MinetestBot rubenwardy: Prevent new accounts from joining [nonew] by taikedz - https://forum.minetest.net/viewtopic.php?t=19720
10:15 sfan5 rubenwardy: your sitemap could use some more descriptions
10:16 sfan5 e.g. !book abm will not yield results
10:16 rubenwardy ah, will do
10:16 sfan5 or keywords or whatever
10:16 rubenwardy description was added as a generic version of keywords
10:17 rubenwardy `query in keywords` would feel wrong, plus description is more useful
10:22 shivajiva tumeninodes: https://www.amazon.co.uk/slp/typewriter-ribbons/rny68maum46k6ou
10:24 rubenwardy Done, will be cached though
10:24 rubenwardy so may take a few minutes
10:24 rubenwardy oh no, already works
10:57 entuland joined #minetest-hub
11:02 Krock joined #minetest-hub
11:22 xerox123_ Happy Thursday
11:23 rubenwardy Just realised that the guy that always says "happy *something* day" in #minetest no longer does jt
11:24 rubenwardy Happy national tapioca dah
11:25 Krock rubenwardy, yes, it stopped already many months ago
11:25 VanessaE yeah I miss that
11:25 rubenwardy :'(
11:25 VanessaE something "tate" was his name?
11:25 Amaz JamesTate?
11:25 VanessaE yeah
11:25 VanessaE sounds right
11:25 shivajiva yea that was it
11:25 VanessaE whatever happened to him?
11:26 xerox123_ :(
11:26 shivajiva faded away I guess
11:27 VanessaE :(
11:27 shivajiva never realised it made everyone smile, thought it was just me
11:29 VanessaE yeah.
11:32 rubenwardy :'(
11:33 rubenwardy jamestait was last seen at 2017-05-11 09:07:23 UTC on #minetest
11:44 ANAND joined #minetest-hub
11:45 DI3HARD139 joined #minetest-hub
11:58 Fixer 20008
11:58 Fixer 30008*
11:59 Krock huh?
11:59 red-001 ?
12:00 jluc joined #minetest-hub
12:04 VanessaE he's ribbing me about my building server :P
12:04 VanessaE for some reason, its server list announce doesn't work most of the time
12:05 sfan5 VanessaE: do you have a custom curl_timeout set?
12:05 VanessaE (even though it's configured like the other servers and runs from the same build)
12:05 sfan5 if yes, remove that; if not, raise to to e.g. 30
12:05 VanessaE I don't think so..
12:06 VanessaE lemme look
12:06 sfan5 i'm seeing lots of announce requests timing out (client closes connection before receiving response) from your server
12:06 VanessaE ok, I'll up them all.
12:07 VanessaE (or rather, set them, to 30)
12:08 VanessaE there, applied.
12:09 VanessaE (now's a good time, they're all idle)
12:12 VanessaE well four of 'em are showing up (30001, 30002, 30005, and 30009)
12:12 ANAND joined #minetest-hub
12:12 VanessaE and...two of them disappeared.
12:13 Fixer lol
12:14 VanessaE what's odd is that the three of mine (the fourth was bananaland, CWz's) that were showing up for a minute there aren't even the first ones that started -- or the last.
12:14 VanessaE it's totally random
12:15 sfan5 hmm still seeing timeouts
12:16 VanessaE I wonder if it's an artifact of where they're hosted? (france)
12:16 sfan5 shouldn't be
12:16 sfan5 disabled ratelimiting on my side now, maybe that helps
12:16 VanessaE ok
12:16 sfan5 though nginx should have logged when those limits are hit
12:17 VanessaE should I reboot them again?
12:17 sfan5 no need
12:17 VanessaE ok.
12:22 VanessaE there they are!
12:22 VanessaE including 30008
12:22 VanessaE fuck off, Fixer  ;)
12:23 sfan5 hmm guess i should fix the ratelimits then
12:23 sfan5 and find out why nginx isn't logging that
12:23 Fixer yeah, thanks for the fgix
12:23 Fixer fix
12:23 VanessaE thanks indeed :)
12:28 VanessaE I guess since all my servers shut down and start up in one batch, that must be tripping up the rate limiter then
12:32 sfan5 i'd configured for 10 requests per minute, you only have 6 servers
12:32 sfan5 no idea what happened there
12:32 sfan5 s/10/12 (burst 16)/ actually
12:33 VanessaE hm
12:35 red-001 how does minetest leak memory so fast?
12:36 red-001 main menu seems to leak 2-5 MiBs per second
12:36 IhrFussel joined #minetest-hub
12:37 red-001 levels out at 500 MiB but still
12:39 IhrFussel Does MT support 500 different values with custom hudbars? Players can have up to 500 HP on my server and I want to visualize their HP via a real bar not text
12:42 ANAND joined #minetest-hub
12:54 sfan5 hm looks like nginx does not support ratelimitng in the way i need it
12:57 benrob0329 joined #minetest-hub
13:13 Krock tried my best; failed. https://forum.minetest.net/viewtopic.php?f=6&t=20373&p=323347#p323347
13:17 ANAND Nice storytelling skills lol
13:20 Krock just looked up whether someone can "prove" whether 1+1 equals 3 .. found one: https://www.quora.com/How-can-you-prove-that-1+1-3?share=1
13:21 xerox123 reply with that
13:21 ANAND Wow.... XD
13:22 Krock xerox123, I'd love to but I guess he would be just more upset afterwards for not taking him serious (him or her..)
13:24 ANAND But did such a conversation really happen?
13:32 Krock in their imagination, yes.
13:34 sfan5 the best part is that he "doesn't care much", but is still replying
13:36 ANAND lol
13:36 Krock clearly a rant so you can't rely on that :3
13:54 AndroBuilder joined #minetest-hub
14:00 twoelk joined #minetest-hub
14:00 benrob0329 joined #minetest-hub
14:01 xerox123 777 issues open in minetest/minetest
14:08 red-001 "My Lord of the Rings subgame:https://https://wiki.minetest.net/LOTH"
14:08 red-001 twice the https, twice the security
14:10 xerox123 hehe
14:14 IhrFussel Regarding HUD bars: The position is more reliable than the offset right?
14:15 IhrFussel I mean the position applies to every screen size
14:20 IhrFussel The offset can look VERY differently on various resolutions
14:23 shacharr joined #minetest-hub
14:25 ClobberXD joined #minetest-hub
14:41 IhrFussel Can someone explain to me how 2 different statbars that use the SAME Y position and SAME Y offset appear at different positions for some players???
14:42 ircSparky different alignment?
14:42 IhrFussel Looks like the "size" parameter is *very* important when defining a HUD
14:42 rubenwardy It depends on the alignment
14:43 ircSparky rubenwardy, would you know why the maps become completely dark in capturetheflag, apart from the edges of the map?
14:43 rubenwardy The master branch is broken currently
14:43 IhrFussel rubenwardy, alignment is the exact same too (-1)
14:44 rubenwardy That'll be why
14:44 ANAND rubenwardy: Wasn't the PR merged into the dev branch?
14:44 rubenwardy No, master
14:44 ircSparky ok :P
14:44 ANAND Ah
14:44 IhrFussel What? Why does the same alignment not work for different stat bars?
14:47 paramat joined #minetest-hub
14:47 sfan5_ joined #minetest-hub
14:55 ircSparky I needed singlenode mapgen
14:55 ircSparky i think
14:55 ircSparky nvm
14:55 ircSparky :P
15:12 srifqi joined #minetest-hub
15:30 IhrFussel Math geniuses: What's the math I need to always get the same % value from a number? For example if a player has 50 HP then the bar should be 100% at 50 HP, but if the player now got 100 HP then it should only be 100% at 100 HP etc
15:32 ANAND IhrFussel, you can have a multiplier of sorts
15:32 Krock math.min(1, current / max) * 100
15:32 ANAND multiplier = player level
15:57 Grandolf joined #minetest-hub
15:57 Grandolf joined #minetest-hub
15:57 Grandolf hi
15:57 Grandolf im getting an error with mesecons whenever i activate them:
15:57 Grandolf ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'mesecons' in callback environment_Step(): ...in/../games/minetest_game/mods/default/functions.lua:563: core.check_player_privs expects a player or playername as argument.
15:58 Grandolf im not sure why its giving me this error, any ideas?
15:59 Grandolf i just backported it from 0.5.0, and copied the world folder and mods
16:11 shivajiva Grandolf: can you just clarify what version of MT ur running and what version of mesecons
16:12 Grandolf im running a minetest server 0.4.16? and im not sure what version of mesecons
16:12 Krock then update mesecons now
16:12 Krock same for Minetest. get 0.4.17.1
16:14 Grandolf how do i see the server version?
16:14 Krock minetestserver --version
16:14 Krock or minetest --version
16:15 shivajiva the error states mesecons tried to use core.check_player_privs without an argument which is pretty strange as it's always required a name so something else is falling over in mesecons, we wait to see what latest mesecons produces for you error wise
16:16 nerzhul Minetest 0.4.17.2-beta for android is available: https://play.google.com/apps/testing/net.minetest.minetest please test it
16:16 nerzhul it's an open beta
16:17 nerzhul i didn't promoted it to production mode
16:18 shivajiva okay nrz thank you :)
16:18 Ruslan1 joined #minetest-hub
16:18 nerzhul but we got 1.7k crash report for 1k users said google
16:19 Grandolf ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'mesecons' in callback environment_Step(): ...in/../games/minetest_game/mods/default/functions.lua:563: core.check_player_privs expects a player or playername as argument.
16:19 Grandolf same error
16:19 nerzhul in singleplayer ?
16:19 nerzhul in the apk ?
16:19 Grandolf no its a server
16:19 Grandolf PC
16:20 nerzhul oh, just tell me with: "[ANDROID]" if it's related to the open beta
16:20 nerzhul :)
16:20 Grandolf 2018-06-28 16:18:24: ERROR[Main]: stack traceback:
16:20 Grandolf 2018-06-28 16:18:24: ERROR[Main]:       [C]: in function 'error'
16:20 Grandolf 2018-06-28 16:18:24: ERROR[Main]:       /home/notroot/minetest/bin/../builtin/game/misc.lua:11: in function 'check_player_privs'
16:20 Grandolf 2018-06-28 16:18:24: ERROR[Main]:       ...in/../games/minetest_game/mods/default/functions.lua:563: in function 'can_interact_with_node'
16:21 ANAND Grandolf, multi-line logs can be pasted to a paste-bin. Just posting the link here is enough :)
16:23 Grandolf https://pastebin.com/4LSsJjPc
16:23 Gael-de-Sailly joined #minetest-hub
16:25 Krock outdated minetest_game
16:25 shivajiva well we know mesecons doesn't have the issue so check minetest_game
16:25 ANAND lol, greeter is having the exact same error, and is asking for help on #minetest
16:26 ANAND Also, why is mesecons installed in minetest_game/mods?
16:26 Grandolf i put all the mods in there...
16:27 Krock why do we have a mods/ directory then?
16:27 Krock don't clutter games with other mods
16:27 shivajiva I use a worldmods folder to allow diff mods for diff worlds to keep it all separate
16:28 greeter i can try updating minetest_game again to see if that helps. weird thing is that i'm running two servers and only one of them crashes with this
16:28 Grandolf i just downloaded my minetest_game a few hours ago
16:29 ANAND That's not recommended, Grandolf. Don't mess with a game's mod folder. Use minetest/mods or world/<world_name>/worldmods
16:29 shivajiva do you specify the mod folder on the command line when you start it Grandolf?
16:29 Grandolf no
16:29 rubenwardy I'd recommend it on a server as you can then use git to manage it and test it locally
16:31 shivajiva mtg has a backport did you use that?
16:32 Krock Grandolf, did you download stable-0.4 or just MTG directly from the main page?
16:32 Krock for the latter it would be the 5.0-dev version
16:32 Grandolf stable 0.4
16:33 Grandolf i followed this: https://forum.minetest.net/viewtopic.php?f=10&amp;t=17927
16:40 rubenwardy !book abm
16:40 MinetestBot rubenwardy: Active Block Modifiers - https://rubenwardy.com/minetest_modding_book/en/chapters/abms.html
16:40 rubenwardy yay
16:40 rubenwardy oh no, I'm now gonna get pinged loads :'(
16:41 ANAND XD
16:41 Darcidride joined #minetest-hub
16:41 Krock !book '; DROP TABLE data
16:41 MinetestBot Krock: Nothing found.
16:42 srifqi !book abm
16:42 shivajiva Grandolf: make a worldmods folder within your world and put the mods you want to use in there and specify it on start, let us know what happens
16:42 MinetestBot srifqi: Active Block Modifiers - https://rubenwardy.com/minetest_modding_book/en/chapters/abms.html
16:43 srifqi Krock: failed? :)
16:43 Krock srifqi, didn't expect success
16:43 rubenwardy plot twist: it always returns that
16:43 garywhite joined #minetest-hub
16:44 srifqi :O
16:45 shivajiva hmm no need to specify, if you run minetestserver I think it looks in that folder first?
16:46 greeter hmm updated minetest_game but i still get the same error. only way to keep the server from crashing is to disable technic_chests. wonder if there's an update for it that might fix things
16:46 Grandolf ok
16:48 Krock if you get the same error on the same code line, then you didn't update it correctly
16:48 shivajiva greeter: do you have a line it fails on in tecnic_chests?
16:49 greeter it seems to fail on line 31
16:50 greeter sorry line 31 of common.lua
16:52 IhrFussel https://github.com/minetest-mods/technic/blob/master/technic_chests/common.lua#L31
16:52 greeter thank you IhrFussel
16:54 Krock well, that doesn't help further because the caller function is now known. An entire backtrace is needed to know where this invalid argument is coming from
16:55 greeter https://pastebin.com/akckn5U9 like this one?
16:55 IhrFussel My guess is either player or pos is nil
16:55 greeter that's what i figure too. i can't tell where those get initialized though :-S course i've never been good at that sort of thing
16:56 IhrFussel https://github.com/minetest-mods/technic/search?q=inv_change&amp;unscoped_q=inv_change
16:57 Grandolf im getting the same error still
16:57 IhrFussel Possibly machines mod
16:57 Grandolf and my traceback is identical to greeters
16:58 IhrFussel Try to disable machines for testing
16:58 Krock the glorious code in mesecons makes it hard to find the actual source
16:58 shivajiva ^
16:58 greeter alright
16:59 Krock oh
16:59 Krock pipeworks actually implements a fake player object
16:59 greeter i don't seem to have a machines mod :-S
16:59 Krock but it's not a player
17:00 greeter disabling pipeworks causes it not to crash too
17:01 greeter brb, got laundry to look after
17:01 Grandolf so is it pipeworks thats causeing the crash?
17:02 shivajiva disable and confirm
17:05 Grandolf i diabled technic and its working now
17:05 greeter i disabled pipeworks and it's now working
17:05 Grandolf technic depends on pipeworks
17:05 Grandolf iirc
17:05 greeter hmm let me see
17:06 greeter i can't tell actually. going to log into the server and see if technic is broken or not
17:07 * greeter smacks head
17:07 greeter couldn't figure out why my server wasn't working. forgot i messed with the dns records today
17:07 shivajiva :O
17:08 greeter lol that makes a difference if you're not getting a DNS lookup failure :-P
17:09 greeter hmm i get a ton of unknown nodes without pipeworks
17:09 greeter though technic still seems to work
17:10 shivajiva the fake player would be a bit of an issue
17:10 greeter indeed
17:12 Grandolf hm
17:12 benrob0329 joined #minetest-hub
17:12 Grandolf crash only seems to happen when useing pipeworks and technic chests
17:12 greeter indeed. if technic_chests is disabled things seem to work
17:13 shivajiva so we have a culprit
17:13 greeter i'm running another server that uses both though and there's no issues. so i suspect there's more to it than that. something is happening in game which is triggering the crash
17:13 Grandolf hm
17:14 shivajiva yea why is the fake player now detected for the check
17:15 Grandolf crash only seems to affect a few machines
17:15 Grandolf greeter do you use currency mod?
17:15 greeter yes
17:15 Grandolf testing if its currency mod
17:15 shivajiva could you specify which ones you're having crashes with pls
17:16 greeter the server that has the problems runs currency, but the server that has no problems does not
17:17 greeter interestingly enough, right clicking a technic_chest when it's an unknown node after the mod has been removed still allows it to behave like a chest. i'm wondering if it might be easiest just to disable the mod entirely
17:17 Krock still the same problem? pipeworks is the issue in this case
17:18 greeter hmm. how to fix it is the question lol
17:18 Krock https://github.com/minetest-mods/pipeworks/blob/master/filter-injector.lua#L170-L174
17:19 Krock looking for a solution rn
17:19 Grandolf so its the filters....
17:19 greeter thanks Krock :-) this is way over my head. any solution i can think of could very well break something else
17:21 Krock https://github.com/minetest-mods/technic/blob/master/technic_chests/common.lua#L31
17:22 Krock change that to  if minetest.is_player(palyer) and not default.can_interact_with_node(player, pos) then
17:22 Krock *is_player(player)
17:22 greeter alright let's try it
17:23 greeter it'll take a few moments to see if it worked. the crash doesn't happen right away
17:23 greeter 2018-06-28 13:23:08: ACTION[Server]: Chem takes technic:uranium35_dust from chest at (541,14,-651) <----- pretty sure this was the action that was crashing the server before. seems ok now :-D thank you Krock
17:24 Krock that's not the crash
17:24 Krock wait for pipeworks to take something out of the chest
17:24 Krock i.e. fake player named ":pipeworks"
17:25 greeter hmm. this could be a long wait
17:26 Krock not sure if it's logged at all
17:26 greeter ah that could be
17:27 greeter it seems ok now. onto the next issue, getting irc bots for both servers onto the irc network lol
17:28 garywhite hello greeter
17:28 greeter greetings garywhite
17:30 srifqi left #minetest-hub
17:32 Grandolf fix works for me too :D
17:35 Krock will push a quick fix to technic, if that's okay -- VanessaE
17:36 Krock meanwhile @functions.lua: -- NOTICE: This method is not an official part of the API yet!
17:37 greeter cool :-D thanks Krock
17:52 ssieb joined #minetest-hub
17:52 Krock technic is updated now. you can discard the manual change and get back to the clean state again if you like to
17:53 Krock i.e. git checkout filename.lua && git pull
18:02 paramat joined #minetest-hub
18:10 Fixer *,,,,,,*
18:15 red-001 Krock, is the guide to building for android on the wiki up to date?
18:16 Krock see #-dev
18:16 Krock one of the most outdated wiki pages
18:16 red-001 well I ignored it and my build broke, good to know nothing of value was lost
18:26 red-001 777 issue, 111 pull requests
18:34 Krock red-001, StorageRef does not have the control of the pointer
18:34 Krock destroy it in server.cpp
18:35 red-001 it does
18:35 red-001 line 35 creates it
18:36 red-001 ModApiStorage::l_get_mod_storage
18:37 Krock I see, but the server and client also have pointers of it
18:37 Krock due to registerModStorage
18:38 Krock gamedef->unregisterModStorage must be called in order to save the data and remove it properly
18:38 red-001 the garbage collector does that
18:39 red-001 before deleting StorageRef
18:41 Krock which requires Lua to garbage collect it before the server shuts down
18:42 red-001 the lua state is closed so it should do it
18:42 red-001 worked fine so far
18:44 red-001 or maybe it didn't, it's also saved every so often
18:45 Krock best would be to increase the interval to check whether it does
18:45 Krock or some  std::cout bois
18:46 IhrFussel What is wrong with my function? It says another "end" expected?? function getbarval(hp1,hp2)
18:46 IhrFussel return math.floor(math.min(1,hp1/hp2) * 180))
18:46 IhrFussel end
18:46 red-001 well to put it another way it stopped getting a message about the memory leaks so it seems very likely the garbage collecter is called
18:47 red-001 and if it got called after the server exited we would already have segfaults
18:47 Krock IhrFussel, theres a ) too much
18:47 IhrFussel Ah thanks...
18:48 Krock lisp would be the best language ever to learn this
18:48 Krock * li(((s((p)))))
18:48 red-001 7500
18:48 red-001 today seems to be a lucky day for neat numbers
18:49 Krock 0001 1101 0100 1100 is not a nice looking number
18:51 Krock next: 0001 1101 1011 1000 (7608)
18:55 IhrFussel Is math.floor + math.min fast? Since it could get called lots of times in hp change callback
18:56 sfan5 premature optimization
18:58 IhrFussel sfan5, I recall tenplus1 making math.floor a local function in Mobs Redo that's why I wondered if the real math.floor could be heavy
18:59 sfan5 well you could just also do that
18:59 sfan5 alternatively don't do such things until you notice a performance problem
18:59 IhrFussel Does it make a difference? Or are we talking a few µs at best?
19:00 Krock the performance gain of localizing those functions is negligible compared to using LuaJIT instead of Lua
19:00 IhrFussel I think the heaviest call is the updating of the HUD(s) so not much I can do there
19:00 Krock yes, it's in the µs range
19:05 xerox123 /list_areas only shows a certain number it seems, how do I override this?
19:06 rubenwardy get the areas priv
19:06 rubenwardy I believe
19:07 Krock it lists all areas where you're the owner
19:07 Krock https://github.com/ShadowNinja/areas/blob/master/chatcommands.lua#L182
19:07 Krock areas priv will list all areas (flood)
19:07 xerox123 at the end it suffixes "CLEAR AREA INFRONT"
19:08 xerox123 there's areas above 1000 but it ends around 300-ish
19:08 * rubenwardy is writing his own area protection mod
19:08 Krock rubenwardy, no why?
19:08 Krock please make simple_protection great
19:08 rubenwardy specific requirements with how areas are
19:10 Krock AreaMetaDataRef
19:14 rubenwardy vector.multiply(vector.floor(vector.divide(area.one, PLOT_SIZE)), PLOT_SIZE)
19:14 xerox123 I see, CLEAR AREA INFRONT.... is the name of an area
19:14 xerox123 so the list is being cut short
19:15 rubenwardy is this over IRC?
19:15 Krock for admins /list_areas might need a "dump to file" function
19:15 xerox123 no, in-game
19:15 Krock rubenwardy, but.. my plots can be configured too :'(
19:16 Krock maybe the length exceeded some message length limit
19:16 rubenwardy lol
19:16 rubenwardy :'(
19:17 xerox123 I wonder is chat3 imposes a limit
19:17 xerox123 if*
19:17 tenplus1 joined #minetest-hub
19:17 tenplus1 hi folks :)
19:17 Krock hi tenplus1
19:18 Krock uuh
19:18 xerox123 hey tenplus
19:18 rubenwardy I need plots to be able to span more than one cell, but also be aligned to a cell grid so I can have a nice minimap GUI
19:18 rubenwardy I also need a strict  city/town -> plot   structure
19:18 tenplus1 ehehehe,,, hi krock, hey xerox, ruben :D
19:18 rubenwardy and support for company or player ownership
19:18 Krock ah yes.. extended plots would be nice, but they didn't fit into the simple find-area-by-index scheme
19:18 rubenwardy yeah
19:19 Krock will need spatial to iterate through the areas to see whether they collide or not
19:19 tenplus1 new mod ???
19:19 Krock yes. rubenwardy is going to program advanced_protection
19:20 xerox123 yet another protection mod
19:20 tenplus1 oooh, sounds interesting, is it like current areas only more advanced :P
19:20 xerox123 YAPM
19:20 tenplus1 catchy
19:20 rubenwardy this simplifies other things - only one factory or shop is allowed per area
19:20 Krock I'm sure it also will be incompatible with protector and areas
19:20 rubenwardy oh yes, ofc
19:20 rubenwardy I don't need them to be compatible
19:21 rubenwardy well
19:21 rubenwardy I may add support for areas as a whitelist
19:21 rubenwardy naahh
19:21 Krock wasn't the intention of SN either but people use the areas + protector combination for years on their servers
19:21 AndroBuilder joined #minetest-hub
19:21 tenplus1 hi andro
19:21 tenplus1 so how's it gonna protect ruben, using blocks or area coords ?
19:21 rubenwardy they're blacklist based, so works fine
19:21 lisac joined #minetest-hub
19:21 tenplus1 hi lisac
19:21 rubenwardy mine will be whitelist based
19:22 lisac hey tenplus1
19:22 Krock fixed grid, maybe bound to mapblocks
19:22 tenplus1 so you add a name and location to the list so a player owns it
19:22 tenplus1 all other areas are off limits
19:22 rubenwardy no, players won't tend to own areas
19:22 rubenwardy they'll mostly be owned by companies
19:22 rubenwardy it's still possible to own an area as a player, but less useful
19:22 tenplus1 companies ? does this tie in with your currency thing
19:24 Krock yes, YACM
19:25 xerox123 does minetest have a chat length limit?
19:25 xerox123 can't find one in chat3
19:26 xerox123 or is there a way to dump a command output to file server side?
19:27 Krock IDE_STRING_MAX_LEN
19:27 Krock max is U16_MAX
19:27 Krock so 65535 characters
19:28 Krock the dump does not exist yet. It needs your PR to become real
19:30 tenplus1 rubenwardy: I take it the idea for new protecion mod came because searching a whitelist may be quicker than searching areas proteciton list ?
19:31 rubenwardy but, does <protection_mod_name> have tests?
19:31 tenplus1 tests ?
19:31 rubenwardy yes, tests
19:31 rubenwardy unit tests
19:31 tenplus1 explain
19:31 rubenwardy ~g unit test
19:31 rubenwardy ;)
19:31 tenplus1 o.O whassat?
19:32 rubenwardy it's an automated way of testing code
19:32 rubenwardy so you write code to make sure code works
19:32 tenplus1 ohh
19:32 rubenwardy you can do this in minetest using busted and by minimising the API functions you call
19:32 rubenwardy and also mocking any you need to call
19:32 rubenwardy like
19:33 rubenwardy hahaha, minetest.get_node, that was a totally good thing to do and you're so clever
19:33 rubenwardy such a stupid function
19:33 tenplus1 o.O
19:33 rubenwardy I'll be writing a modding book chapter on this at some point
19:34 tenplus1 good, it'll clear things up... am confuzzled
19:35 rubenwardy If you mock something, you replace it with another implementation which makes testing posible
19:35 rubenwardy so you could mock get_node to always return default:stone
19:35 rubenwardy just for the tests, oc
19:35 tenplus1 test functions, gotcha... I use those
19:38 * tenplus1 is especially dopey today, 31c @ 80% humidity...   no good
19:39 rubenwardy ew
19:39 rubenwardy in scotland????
19:39 tenplus1 yup, it's damn hot... we're all melting
19:39 rubenwardy sure you're not missing a -
19:39 tenplus1 wish I was... am actually hoping for a storm
19:40 xerox123 my hay fever has been torturing me all week
19:40 xerox123 some rain would be nice
19:40 tenplus1 +100
19:41 xerox123 then again, I was camping in the middle of a huge field
19:41 tenplus1 seems to be the season for camping...  someone has to make a camping mod :D
19:42 tenplus1 GrizzlyAdam might take on this one since he did the Dad's BBQ mod
19:44 tenplus1 would be fun if RobbieF's BaldNerd character did minetest mod reviews :)))
19:50 Darcidride joined #minetest-hub
19:50 tenplus1 ho Darcidride
19:50 tenplus1 *hi
19:51 rubenwardy ho ho ho
19:51 rubenwardy mofo
19:51 tenplus1 lolz
20:09 tenplus1 nite folks o//
20:09 tenplus1 left #minetest-hub
20:14 IhrFussel Is he now trying to find stuff to blame MT devs for? Maybe as "revenge" https://github.com/minetest/minetest/issues/7499
20:15 IhrFussel Writing your own parser is always a bad idea if you aren't well educated enough to understand every bit
20:18 tumeninodes joined #minetest-hub
20:18 tumeninodes Shaaaazaaaaam!
20:19 tumeninodes :/ dang...., so disappointing when no one is around to witness my greatness
20:21 tumeninodes I think trying to use git stash was a mistake for me
20:28 tumeninodes does anyone know how to dump a stash on git, yet not have it impact commits made before it was done? Or do I need to close a PR and just redo it? (which sounds like it may be the simpler route)
20:29 greeter sorry about all the nick change spam folks, setting up minetest if you couldn't tell :-P
20:33 paramat joined #minetest-hub
20:47 tumeninodes left #minetest-hub
21:04 paramat i've never used stash, i try to keep things simple
21:05 paramat new PR is fine
21:06 Krock !tell tumeninodes hey vista baby. stash is local. Only commits, branches and tags are sent to the remote server
21:06 MinetestBot Krock: I'll pass that on when tumeninodes is around
21:14 Gael-de-Sailly joined #minetest-hub
21:14 IhrFussel HUD position affects the screen size while offset doesn't?
21:16 IhrFussel Other way around...screen size affects HUD position and not offset it seems
21:17 paramat huh 'app guru' yeah >_>
21:18 IhrFussel Am I right in thinking that it's NOT a good idea to only use position for HUD elements? It looks completely different depending on resolution/window size
21:19 Ruslan1 joined #minetest-hub
21:19 Krock oh well I see the issue
21:19 Krock check out what the builtin statbars use
21:20 IhrFussel Krock, yes...the event HUD on the right uses offset and doesn't move with screen size
21:20 nerzhul joined #minetest-hub
21:20 IhrFussel Or at least not much...will check builtin values
21:22 IhrFussel Why is it so complex? offset = { x=(-10*24)-25, y=-(48+24+16)},
21:37 paramat i found KGM's repo of cheat-bots. funny how he specifically mentions rubenwardy 's CTF server as the place to use one of them =)
21:48 IhrFussel HELP! This HUD crap is too much... I don't understand why several players see the bar a lot more to the left than me and others local hud_o = { x=(-10*24)-15, y=-(48+24+16)}
21:49 IhrFussel AFAIK those are the exact values from the builtin hearts bar
21:50 IhrFussel Oh it's -25 not -15 ... but would that make a huge difference of 1+ slots?
21:57 xerox123 <+xerox123> this is why you should contact tech support, because you'll figure it out just after you call
22:02 red-001 paramat, link?
22:02 red-001 I need a laugh
22:02 paramat https://github.com/paramat/driftcar have fun
22:03 paramat modelled using the laws of physics
22:03 paramat however, MTG may make it laggy
22:04 paramat i use a custom game with no ABMs
22:05 paramat which seems to make a big difference
22:05 paramat it may be laggy while generating terrain too
22:10 paramat best use 3rd person view
22:13 paramat hm the lag spikes that really effect vehicles seem to coincide with my harddrive doing something
22:13 paramat mapsaving i guess
22:19 paramat every 5s so seems so
22:53 paramat seems an excessive effect though, this happens even when no new terrain is being generated
22:59 Fixer paramat: clone it
23:34 paramat joined #minetest-hub
23:35 aerozoic joined #minetest-hub
23:47 BakerPrime_ joined #minetest-hub

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