Time Nick Message 00:12 MinetestBot 02[git] 04rubenwardy -> 03minetest/minetest: Update to Android target SDK 30 (#11746) 1351cfb57 https://git.io/JM3t9 (152021-11-27T00:10:13Z) 03:48 cheapie New Luacontroller program for people to play with, a sort of outdoor lighting controller thing: https://gist.github.com/cheapie/2039ae3274e7d629adf377b7777520d1 03:50 cheapie Expects a digistuff advanced touchscreen on the channel "touchscreen", a blinky plant on any pin is recommended, and other channels for optional devices will be mentioned during the hardware setup wizard. Output to the lights is on the digilines channel "light" (for digilines dimmable lights and such) or via mesecons on any pin aside from the one used by the blinky plant. 03:52 cheapie Supports (in addition to turning the lights on/off manually) control based on light level, in-game time, real-life time, or remotely over the internet by fetching the desired state from a server. 05:40 cheapie Huh, minetest.net actually renders kinda okay on that web browser someone made in a Luacontroller a few years ago. 05:43 cheapie ...which then promptly broke when I asked it to render a larger page. 08:07 Chpy0 Im frightened 08:09 definitelya Chances are, what or who frightens you is scared more than you are. :D 08:09 definitelya lmao 08:09 Chpy0 are those croopers afraid of me 08:10 Chpy0 maybe they're actually defending their territory that you're stealing 08:10 definitelya big think 09:55 ebrasca How to start a server with a subgame with a terminal? 10:40 ROllerozxa ebrasca: --gameid argument 10:40 ROllerozxa see the manpage 10:41 ebrasca I get 'Game "mineclone2" not found' 10:42 ROllerozxa do you have mineclone2 installed to where the minetest server can find it? 10:45 MTDiscord do --gameid list if mineclone2 isnt there, it wouldnt be a valid value for --gameid 10:45 ebrasca I think yes 10:47 ebrasca there is MineClone2 10:48 ebrasca but when I join the game 10:48 ebrasca it is only void! 11:06 ebrasca MTDiscord: Thank you I figured the last problem , the world does generate correctly. 11:07 ebrasca ROllerozxa: thanks! 11:27 ebrasca Do you have some tips for setting the server settings? 11:39 ebrasca I am interested where are all the setings I can change documented! 11:59 calcul0n ebrasca, there's a minetest.conf example in the sources : https://github.com/minetest/minetest/blob/master/minetest.conf.example 12:50 MTDiscord lol im j45 not MTDiscord 12:50 ROllerozxa ok MTDiscord 12:50 MTDiscord xD 19:01 MinetestBot 02[git] 04Guarakami1807@protonmail.ch -> 03minetest/minetest: Translated using Weblate (Portuguese (Brazil)) 130eb829f https://git.io/JMnBF (152021-11-27T18:33:53Z) 19:01 MinetestBot 02[git] 04zhaolinlau -> 03minetest/minetest: Translated using Weblate (Chinese (Simplified)) 13cd3a8f9 https://git.io/JMnBb (152021-11-27T18:33:53Z) 19:02 MinetestBot 02[git] 04gunchleoc -> 03minetest/minetest: Translated using Weblate (Gaelic) 134866e06 https://git.io/JMnBN (152021-11-27T18:33:53Z) 19:02 MinetestBot 02[git] 04AugiAugi44 -> 03minetest/minetest: Translated using Weblate (Polish) 13dc73d44 https://git.io/JMnBA (152021-11-27T18:33:53Z) 19:02 MinetestBot 02[git] 04tirifto@posteo.cz -> 03minetest/minetest: Translated using Weblate (Esperanto) 137d2c99e https://git.io/JMnBx (152021-11-27T18:33:53Z) 19:02 MinetestBot 02[git] 04heitorBramigo -> 03minetest/minetest: Translated using Weblate (Portuguese (Brazil)) 1362c3c90 https://git.io/JMnBp (152021-11-27T18:33:53Z) 19:02 MinetestBot 02[git] (14 newer commits not shown) 20:41 definitelya rip github? 20:41 ROllerozxa rip github. 20:41 MTDiscord github is down D: 20:41 definitelya ae 20:43 MTDiscord Lol 20:44 definitelya son of a bee 20:50 MTDiscord Sfan5 probably pushed to many commits :p 20:51 definitelya erle what did you DO? 20:52 erlehmann definitelya when? 20:53 definitelya github is offline 20:57 celeron55 nice job m$ 20:58 definitelya microbesoft 20:58 celeron55 obviously, www.minetest.net doesn't work either, being hosted on github pages 20:59 ROllerozxa github pages still works, actually 20:59 ROllerozxa at least for me. idk, might be cached 20:59 MTDiscord Works for me 20:59 celeron55 now it works 20:59 MTDiscord GH pages is "experiencing degraded performance" 20:59 ROllerozxa downloads used to work, now it 500s as well 21:00 definitelya bruh 21:01 sfan5 at least they didn't break gh pages 21:01 ROllerozxa prob because github pages is basically just static pages being spread across CDNs 21:01 sfan5 well who knows maybe they're talented enough to also break it 21:02 MTDiscord at least they didnt break gh pages yet 21:02 ROllerozxa hmm for how decentralized git is, github sure is a centralized monolith 21:02 erlehmann git.minetest.land still works you clowns :D 21:03 ROllerozxa great let's migrate the entirety of github onto git.minetest.land :) 21:03 definitelya I reiterate: erle what did you DO??? /s 21:04 sfan5 uh oh github pages is actually broken too 21:04 MTDiscord Maybe its a intern again 21:05 ROllerozxa it's always the interns isn't it 21:05 erlehmann ROllerozxa, it's a risk spread strategy. if you all host stuff on a lot of small git hosts, then your risk is basically like a house fire. maybe one house burns down, but not all of them will burn at the same time. if you all use one huge centralized platform, the risk is more like an earthquake: either no one gets hit or, rarely, everyone has problems at once. 21:05 MTDiscord www.minetest.net is still working for me ? 21:06 sfan5 try https://www.minetest.net/downloads/ 21:06 MTDiscord spoke too soon i guess 21:16 MTDiscord yay gh pages is back 21:41 erlehmann meanwhile https://git.minetest.land/user/sign_up 21:43 MTDiscord meanwhile 21:43 MTDiscord https://cdn.discordapp.com/attachments/749727888659447960/914270130354139206/unknown.png 21:43 MTDiscord Yay local git repo 21:43 MTDiscord codespaces too now 21:43 MTDiscord https://cdn.discordapp.com/attachments/749727888659447960/914270328555986944/unknown.png 21:44 ROllerozxa what is codespaces anyways 21:44 erlehmann exe_virus TODOs in source >> github issues ;) 21:44 MTDiscord todos in sources >> prevent certain people spamming issues 21:45 erlehmann gosh who would ever do that 21:46 MTDiscord oh, idk, probably the same type of person that spams dev irc 21:46 cheapie BuckarooBanzai: Well, since GitHub is having... problems, this is the reply to your comment that I was in the process of typing at the time: https://cheapiesystems.com/media/lightcontroller-comment.txt 21:46 erlehmann i did actually want to make an issue about clearing up all the boundary issues and offering to do it 21:46 MTDiscord I like having TODO in sources :D 21:46 cheapie BuckarooBanzai: Also a copy of the code itself is here: https://cheapiesystems.com/media/lightcontroller2.lua 21:47 MTDiscord Minetest has a couple TODOs in it's sources too 21:47 cheapie Also I'm much easier to get a hold of here anyway, I don't pay attention all that much to GH stuff. 21:48 erlehmann the recent bitop thing with the two's complement ub error, what is the story behind that? 21:48 MTDiscord The neat thing about TODO comments in code is that they already have proper context. They are also independent of the repo hosting used. 21:48 MTDiscord Where is there an UB? 21:48 MTDiscord The Lua bitop lib is a fairly standard one, it should have no issues. 21:48 erlehmann there is a comment in the source, wait for it 21:49 erlehmann oh maybe it was implementation defined 21:49 MTDiscord In fact it is LuaJIT's: https://bitop.luajit.org/ 21:49 MTDiscord So if you were running LuaJIT - which you probably were, unless you didn't care about performance - you already had that module. 21:49 erlehmann uh i run builtin lua 21:50 erlehmann but also i do not do bitwise ops 21:50 erlehmann i can show you the shameful thing i did 21:50 erlehmann for the colors 21:51 MTDiscord show it 21:53 erlehmann so i want to have ARRRRRGGGGGBBBBB bits, converted from 24bit RGB 21:53 definitelya yes show it! xD 21:53 definitelya I'm out 21:54 MTDiscord only a single alpha bit? 21:54 MTDiscord RIP semitransparency 21:54 MTDiscord not that it every lived within MT 21:54 * cheapie looks over at the mess that is https://cheapiesystems.com/git/digistuff/tree/gpu.lua#n38 , speaking of colors 21:54 cheapie ...or, well, the whole file, really. 21:55 erlehmann + colorword = 32768 + 21:55 erlehmann + ((math.floor((previous_r * max_sample_out / max_sample_in) + 0.5)) * 1024) + 21:55 erlehmann + ((math.floor((previous_g * max_sample_out / max_sample_in) + 0.5)) * 32) + 21:55 erlehmann + ((math.floor((previous_b * max_sample_out / max_sample_in) + 0.5)) * 1) 21:55 erlehmann basically that luatic 21:55 MTDiscord 32768 -> should be 0x........... 21:55 erlehmann uh what 21:55 MTDiscord use hex notation 21:55 erlehmann did i botch it 21:55 MTDiscord more readable 21:55 MTDiscord did you? 21:56 erlehmann absolutely not 21:56 erlehmann it kinda works 21:56 MTDiscord I'd use 2^5, 2^10 etc instead of hardcoding the numbers; I'd also have a function do the depth rescaling 21:56 MTDiscord I mean, those numbers are "hard" either way xD 21:57 MTDiscord But 2^x shows the intention, shifting something by 5 bits 21:57 MTDiscord otherwise I have to calculate log2(num) to find out by what you're shifting 21:57 erlehmann well, then i'd have to use math.pow inline? 21:57 erlehmann which is a function call 21:57 MTDiscord No 21:57 erlehmann ok show how 21:57 MTDiscord Lua has a^b syntax 21:57 MTDiscord You can just use it that way 21:57 erlehmann oh i did not know 21:58 erlehmann ; lua 21:58 erlehmann Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio 21:58 erlehmann > 2^5 21:58 erlehmann stdin:1: unexpected symbol near '2' 21:58 erlehmann oh ok 21:58 erlehmann > print(2^5) 21:58 erlehmann 32 21:58 MTDiscord Did you know that you can use #("string") to get string length BTW? 21:59 erlehmann thank you 21:59 sfan5 !c 2^5 21:59 MinetestBot 7 21:59 sfan5 ? 21:59 erlehmann luatic in shell, obv 21:59 erlehmann !c 1^-1 21:59 MinetestBot -2 21:59 erlehmann !c sqrt(2) 21:59 MinetestBot NameError: name 'sqrt' is not defined 22:00 erlehmann sfan5, what kind of sorcery is this 22:00 MTDiscord sfan5: It's doing xor 22:00 MTDiscord this is Python 22:00 erlehmann oh lol 22:00 MTDiscord Command sent from Discord by Luatic: 22:00 MTDiscord !c 2**5 22:00 MinetestBot 32 22:00 sfan5 yes 22:00 erlehmann !c from random import random 22:00 MinetestBot SyntaxError: invalid syntax (, line 1) 22:00 erlehmann !c 1+exit(1) 22:00 MinetestBot NameError: name 'exit' is not defined 22:00 erlehmann !c 1+sys.exit(1) 22:00 MinetestBot NameError: name 'sys' is not defined 22:00 MTDiscord OFC erlehmann is trying to break it now 22:01 sfan5 I am positive it is not breakable 22:01 MTDiscord It has a timeout set? Memory limit? 22:01 erlehmann sfan5, show source 22:01 MTDiscord What about Python / library bugs? 22:01 MTDiscord You can never be sure that it isn't breakable 22:02 sfan5 I didn't say 100% sure 22:02 MTDiscord Command sent from Discord by Luatic: 22:02 MTDiscord !c [1 for i in range(1, 1000000000)] 22:02 MinetestBot MTDiscord: Took to long to calculate 22:02 MTDiscord The timeout is there 22:02 erlehmann python standard library is funny bc broken 22:03 MTDiscord Wonder whether it's possible to fill up the memory before the time limit is exceeded 22:03 erlehmann In [1]: from base64 import b64decode 22:03 erlehmann In [2]: b64decode('V=m=g=') 22:03 erlehmann Out[2]: b'Vh' 22:03 MTDiscord wow 22:03 sfan5 that only gets you anything if it has effects other than raising a memory error 22:03 erlehmann i think everyone here knows that “V=m=g=” is not valid base64 22:04 erlehmann (this is what you get if you do not validate your inputs) 22:04 MTDiscord MT's base64 is officially superior to Python's 22:04 MTDiscord The other day I was wondering whether parsing Lua might take quadratic time in the worst case 22:05 erlehmann make strings 22:05 erlehmann billion laughs 22:07 erlehmann !c __import__('sys').exit(1) 22:07 MinetestBot erlehmann: Sorry, double underscores are not allowed. 22:07 erlehmann well well well 22:08 MTDiscord What if you use exec? 22:08 MTDiscord Command sent from Discord by Luatic: 22:08 MTDiscord !c exec 22:08 MinetestBot NameError: name 'exec' is not defined 22:08 erlehmann !c eval 22:08 MinetestBot NameError: name 'eval' is not defined 22:08 erlehmann luatic those are statements 22:08 MTDiscord no? 22:09 sfan5 wasn't exec a function? but doesn't matter, it's not defined 22:09 MTDiscord exec is a function 22:09 MTDiscord I was a expecting as output 22:09 MTDiscord Command sent from Discord by Luatic: 22:09 MTDiscord !c globals() 22:09 MinetestBot NameError: name 'globals' is not defined 22:12 erlehmann !c < . 22:12 MinetestBot SyntaxError: invalid syntax (, line 1) 22:15 erlehmann !c [lambda x: x*x for x in range(10)] 22:15 MinetestBot [. at 0x7f1429507840>, . at 0x7f1429507950>, . at 0x7f14295079d8>, . at 0x7f1428210730>, . at 0x7f14282106a8>, . at 0x7f1428210048>, . at 0x7f14282101e0>, . at 0x7f14282100d0>, . at 0x7f14 22:16 erlehmann i think we are getting somewhere 22:17 erlehmann !c [lambda x: x*x for x in x(x)] 22:17 MinetestBot NameError: name 'x' is not defined 22:17 erlehmann !c [lambda x: x*x for x in x()] 22:17 MinetestBot NameError: name 'x' is not defined 22:17 erlehmann ah well 22:17 erlehmann luatic would you please figure out the resource exhaustion attack? 22:18 erlehmann !c [lambda x: x*x for x in range(1<<31)] 22:18 MinetestBot erlehmann: Took to long to calculate 22:18 erlehmann i see 22:18 erlehmann !c os 22:18 MinetestBot NameError: name 'os' is not defined 22:18 erlehmann !c time() 22:18 MinetestBot NameError: name 'time' is not defined 22:19 erlehmann i'll stop now 22:20 Krock erlehmann: MTB also works in /query 22:21 erlehmann Krock, thanks, but i lost motivation. i just wanted to figure out if it is *easily* breakable. 22:21 erlehmann i have some PR to do 22:21 Krock you're kinda late for that tho. MTB already exists for a long time and should be pretty robus 22:22 erlehmann Krock as robust as minetest itself? ;) 22:22 Krock I guess 22:23 definitelya robobust 22:27 erlehmann Krock, if it is “as robust as minetest”, it's probably easily crashable by someone putting 20 to 30 min of effort into it 22:27 erlehmann idc though, it's an irc bot 22:28 erlehmann you only win bragging rights 22:47 DivideByZero Hello folks. Rcently I started getting this error when trying to run minetest: 2021-11-27 17:44:55: ERROR[Main]: Game [] could not be found. 22:48 sfan5 no games at all installed? 22:48 DivideByZero Doesn't it come with a default game? What happened to that? I only tried updating and there used to be a game. 22:50 sfan5 depends on how you downloaded/installed it 22:50 DivideByZero using git 22:51 DivideByZero git pull https://github.com/minetest/minetest.git 22:51 DivideByZero I have been updating it with that line 22:52 DivideByZero Previously kept it working and using latest version. 22:52 erlehmann DivideByZero, do you have devtest game? 22:53 DivideByZero How do I check that? The GUI won't load. 22:53 sfan5 try minetest --version first and see what it says about RUN_IN_PLACE 22:53 DivideByZero ok.. one moment. 22:54 sfan5 you might have to grab https://github.com/minetest/minetest_game too 22:54 DivideByZero Shall I post the results here? 22:54 sfan5 sure 22:54 DivideByZero It's multiline, do you need it all or just the first line? 22:54 sfan5 pastebin all for good measure 22:54 DivideByZero ok 22:56 DivideByZero https://pastebin.com/uP5ntDDR 22:56 sfan5 ok, system-wide installation 22:57 sfan5 do you know if you had a system-wide install before? 22:57 sfan5 but anyway you can git clone https://github.com/minetest/minetest_game games/minetest_game and it should work 22:57 DivideByZero Yes, I've been running it this way for over a year now. 22:57 DivideByZero But recently it stopped working, and today is the first day I had time to deal with it. 22:58 DivideByZero Do I do that inside the minetest git folder? 22:58 sfan5 yes 22:59 DivideByZero ok, thank you for the support. I'll do that now, and report back if it worked. 23:03 DivideByZero The games error disapeared but I am getting a different error. 23:03 DivideByZero terminate called after throwing an instance of 'LuaError' 23:03 DivideByZero what(): Runtime error from mod '' in callback run(): /home/rick/minetest/bin/../builtin/async/init.lua:7: attempt to call local 'func' (a string value) 23:11 sfan5 the files on disk mismatch the version of Minetest you are running 23:13 DivideByZero Should I just delete everything and git clone it fresh? 23:22 erlehmann for the record, i hate the work that the faulty minetest.find_nodes_in_area() bug fix creates so much. it is, again, way too close to the actual map boundaries. 23:23 erlehmann as said before, i'll make a proposal to fix the map boundary mess in the next few days, with the goal of not introducing any more bugs this time. 23:27 DivideByZero I deleted both minetest and irrlicht and got them both again. Irrlicht was success, but this following command gives an error about irrlicht, though it should be pointing to it.. 23:28 DivideByZero cmake . -DRUN_IN_PLACE=FALSE -DIRRLICHT_LIBRARY=$PWD/../irrlicht/lib/Linux/libIrrlichtMt.a -DIRRLICHT_INCLUDE_DIR=$PWD/../irrlicht/include 23:29 DivideByZero IrrlichtMt is required to build the client, but it was not found. 23:31 DivideByZero I confirm both those do exist. 23:31 sfan5 sounds like you haven't built in a while because that way of pointing to irrlicht doesn't work anymore 23:31 DivideByZero That's true. 23:32 DivideByZero What new way should I be using instead? 23:32 sfan5 http://sprunge.us/TDh8lq this'd work 23:33 DivideByZero Ok, I'll try that. 23:33 DivideByZero I'll remove everything and start over with this. 23:50 DivideByZero It's working now. :D Thank you very much sfan5 23:50 sfan5 np