Minetest logo

IRC log for #minetest, 2016-10-02

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

All times shown according to UTC.

Time Nick Message
00:39 basxto joined #minetest
01:08 Freejack joined #minetest
01:35 Bukki joined #minetest
01:45 Yst joined #minetest
01:49 zorman2000 joined #minetest
02:13 I9hdkill joined #minetest
02:26 Yst joined #minetest
02:42 Not_a_Robot joined #minetest
02:50 zorman2000 left #minetest
03:17 LazyJ joined #minetest
04:01 DI3HARD139 joined #minetest
04:04 alt98356 joined #minetest
04:37 DMackey- joined #minetest
04:40 red joined #minetest
04:53 Lunatrius joined #minetest
05:07 DI3HARD139 Anyone around?
05:09 thePalindrome I am
05:10 thePalindrome What can I help you with?
05:11 DI3HARD139 Maybe you can help. I'm editing the server_helper mod that Tmanyo is working on. I noticed that the "language_control" portion doesn't address the issue with the spaces. I was wondering if it would be possible for the mod to read from a file that contains a list of words instead of listing them all in the init.lua
05:15 thePalindrome Short answer: yes
05:15 thePalindrome io.open() will let you read a file
05:15 thePalindrome http://www.lua.org/pil/21.2.html will give you more details
05:17 thePalindrome Does that help?
05:18 DI3HARD139 looks like it. Next question. Would it be feasable of doing string.match(message, "BadWord") throughout that wordlist or is there a more efficient way of doing that
05:19 Foghrye4_ joined #minetest
05:23 DI3HARD139 This is what I currently have to call the file | if io.open("./wordlist.txt", "r") string.match(message, "*")|
05:24 thePalindrome Er... you need to read wordlist.txt into a variable
05:24 thePalindrome Then match that instead of just "*"
05:25 thePalindrome local f = io.open(world_path.."/badwords.txt","r")
05:25 thePalindrome if f ~= nil
05:26 thePalindrome -- Search for a string here
05:26 thePalindrome end
05:27 thePalindrome Does that work for you?
05:27 DI3HARD139 testing now.
05:28 DI3HARD139 Got slapped with a "then expected near "local" gonna add that there and try again
05:30 DI3HARD139 nope crashed with unexpected symbol
05:31 DI3HARD139 adjusting the structure real quick
05:33 DI3HARD139 getting stuck at "=" expected near "f"
05:34 thePalindrome What's the line say?
05:34 DI3HARD139 Ill pastebin the section real quick
05:35 DI3HARD139 http://pastebin.com/h1vn1frN
05:37 thePalindrome Ah, you say If instead of if
05:37 thePalindrome Line 17 should really just be an else
05:37 thePalindrome I would also convert everything into uppercase
05:38 thePalindrome That way you can't swear by randomly capitalizing letters ;)
05:38 DI3HARD139 I was wondering how to trick the case sensitivity XD
05:39 thePalindrome Plus you get a speed boost by checking half of the possible 52 letters
05:40 thePalindrome That being said, it *has* been a while since I've done that kind of pattern matching
05:42 DI3HARD139 hmm. now to figure out how to add that into the string.match so it can register whats going on in chat.
05:43 thePalindrome Let me look that up
05:43 thePalindrome http://www.lua.org/pil/20.html Read that chapter
05:44 Yst joined #minetest
05:49 DI3HARD139 Would it be layed out like this |  If minetest.register_on_chat_me​ssage(string.match(..name.., f)) then|
05:49 DI3HARD139 ?
05:50 thePalindrome Nope, the pattern matching would be inside the function sent to minetest.register_on_chat_message
05:50 thePalindrome https://github.com/thePalindrome/MinetestA​mbience/blob/master/ambience/init.lua#L642
05:50 thePalindrome There's an example
05:54 thePalindrome Er... that's register_chatcommand, the minetest dev wiki would help you better than my mutant code :P
05:55 DI3HARD139 So it would be like this |     if minetest.register_on_chat_message(f(name, message)) then |
05:55 DI3HARD139 ?
05:56 thePalindrome That code would register the result of f
05:57 thePalindrome http://dev.minetest.net/minet​est.register_on_chat_message
05:57 thePalindrome the minetest.register* functions take anonymous functions
05:57 thePalindrome They have a great example there
05:58 DI3HARD139 Oh that looks promising
05:59 DMackey- joined #minetest
06:00 DI3HARD139 Dang. Keep getting hit with the unexpected symbol ")" at "end)"
06:03 Markow joined #minetest
06:08 DI3HARD139 Gotta figure that out. I managed to get the function working with | if string.match(message, f) then | but that "end)" is being a pain
06:09 thePalindrome If you're using a decent text editor, it should be able to do paren matching
06:09 thePalindrome You probably just forgot an opening paren :P
06:10 DI3HARD139 I'm using Atom atm
06:11 DI3HARD139 This is what I have right now http://pastebin.com/Yi0Sx5Lx
06:11 thePalindrome atom *should* have pointed it out...
06:12 DI3HARD139 It has a bunch of red "." under almost every other string.match
06:12 thePalindrome You need one more end
06:12 thePalindrome the if string.match isn't properly closed
06:13 DI3HARD139 ok thats fixed now. tyvm. Now I gotta figure out why its not reading the file
06:13 DI3HARD139 and matching it to the chat
06:13 thePalindrome Probably because you have to use f.read to actually read the file :P
06:14 thePalindrome Plus I believe string.match isn't quite what you want
06:16 DI3HARD139 fixed! now to figure out why its crashing at specific lines when it attempts to execute the warning/kick portion
06:17 thePalindrome Try sanitizing your input
06:17 thePalindrome Always a good idiea :P
06:17 DI3HARD139 ah the error is in the | if f = assert(io.open("/wordlist.txt","r"))
06:17 thePalindrome well yeah, you assert
06:18 thePalindrome and you are looking for a file at the root of the server
06:18 thePalindrome you want io.open(world_path.."/wordlist.txt","r")
06:18 DI3HARD139 Gonna assume that I probably shouldn't be using the "local f = assert(io.open(filename, "r"))" as a reference then XD
06:19 thePalindrome That's if you *need* to make sure the file is there
06:19 thePalindrome Usually you'll want to handle it more gracefully i.e. warn the user
06:19 DI3HARD139 ooooh
06:19 DI3HARD139 Sorry for the thousand and one questions btw. Still learning lua
06:20 DI3HARD139 noob status :P
06:21 DI3HARD139 What would the directory be if the file will be read from the mod folder?
06:21 thePalindrome The world directory
06:22 thePalindrome Don't worry, we all are in noob status at some point :P
06:22 thePalindrome Here, lemme declutter
06:23 DI3HARD139 The -- portions were for if I were to f up horribl
06:23 DI3HARD139 y
06:39 CWz joined #minetest
06:42 DMackey joined #minetest
06:50 PjotrOrial joined #minetest
06:50 PjotrOrial joined #minetest
07:12 LNJ2GO joined #minetest
07:19 PjotrOrial joined #minetest
07:19 PjotrOrial joined #minetest
07:51 shamoanjac joined #minetest
08:15 agaran _Megaf: thx
08:22 aix joined #minetest
08:22 aix joined #minetest
08:33 PjotrOrial joined #minetest
08:52 LNJ2GO joined #minetest
08:53 PseudoNoob joined #minetest
08:56 Getsuga joined #minetest
09:03 Not_a_Robot joined #minetest
09:18 PjotrOrial joined #minetest
09:18 PjotrOrial joined #minetest
09:20 Tux[Qyou] joined #minetest
09:23 Fixer joined #minetest
09:38 red-001 would it be possible to filter offtopic from unread posts?
09:41 PjotrOrial joined #minetest
09:41 PjotrOrial joined #minetest
09:41 Calinou red-001: not that I know of
09:58 SylvieLorxu joined #minetest
10:21 Fixer_ joined #minetest
10:27 Jordach joined #minetest
10:28 aix joined #minetest
10:34 _Megaf agaran: but anyone can build inside it, on request. And some people are even granted permission to build inside spawn area.
10:48 agaran _Megaf: Well, but I wanted just find some nodes.. and most of occurences were within it so I couldn't dig, and it was really just a desert..:)
10:49 agaran same applies for broken public farms this way :)
10:50 _Megaf Oh, I'm sorry about that, I have to rethink that area then
10:50 agaran just providing feedback :)
10:51 _Megaf I appreciate that. In one hour or so I will join and work on that. I'm having breakfast right now
10:51 agaran have good meal
10:52 _Megaf Thanks :)
10:56 Megal joined #minetest
10:59 Megaf Cool, we have a gigantic f and a gigantic l now
10:59 Megaf Brace yourselves the mega brothers are coming!
11:00 Megaf LoL
11:19 Megal_ joined #minetest
11:32 SylvieLorxu joined #minetest
11:48 SylvieLorxu joined #minetest
11:49 FirePowi joined #minetest
11:50 FirePowi Does anyone know how digiline and luacontroller works, please ? In fact, in only tried "print("Hello")" with luacontroller and try to execute, but I have nothing !V
11:51 agaran you need digiline_send('foobar','text')
11:51 agaran that sends message over digiline, using channel there named foobar
11:51 agaran then you can sed lcd display to use channel foobar and you see 'text' on it
11:52 FirePowi Oh…
11:52 FirePowi I didn't use quote on channel… xD
11:52 FirePowi Thanks !!
11:52 agaran heh so it was looking for variables named.. not string constnant
11:53 FirePowi I tried with nombers.
11:53 FirePowi So… x)
11:53 FirePowi Thanks :p
11:54 FirePowi I didn't understand "channel" as name, but as number. So I tried to input number on it. I guessed it was something like frequency.
11:54 FirePowi xD
11:54 agaran that would be miracle but probably too physics..
11:55 FirePowi lol. Well, thanks a lot. Now, I should be able to continue, using documentation :-)
11:56 agaran ask if you need, maybe somebody has idea
12:04 FirePowi Heh… I absolutely don't find documentation about real time clock… And I want to configure streets trafficlight…
12:04 agaran I saw somewhere clock example..
12:09 FirePowi Eh.
12:11 agaran this should help a bit
12:11 FirePowi Oh, thanks !
12:15 sfan5 why did you use off for that agaran
12:15 agaran wasn't sure if that should get to public log?
12:16 sfan5 why not
12:16 agaran dunno not my site?
12:16 sfan5 if for example somone searches and finds that
12:16 sfan5 then they won't get any further because there's no links
12:16 agaran yes I understand what you mean, but I did not feel for deciding about.. better be safe than sorry.. google never forgets
12:16 sfan5 asking for permission to link to something is bullshit
12:16 sfan5 http://uberi.mesecons.net/pr​ojects/TicTacToe/index.html | http://uberi.mesecons.net/​projects/Clock/index.html
12:16 sfan5 there is it for the log
12:17 sfan5 also if you want to keep your site of out of google use robots.txt not please-keep-this-link-secret technique
12:17 agaran of course
12:29 basxto joined #minetest
12:31 FirePowi Is there a GAFAM-free robot.txt ? :-)
12:42 red-001 GAFAM ?
12:43 red-001 FirePowi ^
13:02 Calinou Google/Apple/Facebook/Amazon/Microsoft, red-001
13:02 Calinou FirePowi: robots.txt was initiated by Google but all respected search engines follow it
13:02 Calinou including DuckDuckGo for example
13:03 FirePowi Thanks Calinou
13:03 FirePowi agaran, I'm starting having fun with luacontroller :-)
13:03 agaran FirePowi: it is fun :)
13:22 est31 joined #minetest
13:46 GunshipPenguin joined #minetest
13:49 Yst joined #minetest
13:53 diemartin joined #minetest
14:00 MinetestBot [git] sfan5 -> minetest/minetest: Allow nothing to be selected from formspec parameters eb0e9d5 https://git.io/vPqSt (2016-10-02T15:49:18+02:00)
14:04 Lord_Vlad joined #minetest
14:13 hmmmm joined #minetest
14:33 WolfgangB joined #minetest
14:47 Szkodnix joined #minetest
15:00 HonoredGlory joined #minetest
15:10 STHGOM joined #minetest
15:15 red-001 setting my inventory formspec to the pause menu is more confusing then expected
15:33 Trustable joined #minetest
15:40 GunshipPenguin joined #minetest
15:40 DMackey joined #minetest
15:52 Lord_Vlad joined #minetest
15:54 Bukki joined #minetest
15:56 Bukki Anyone know how to remove the first xy chars of a variable in lua?
16:02 Void7 joined #minetest
16:15 Jordach joined #minetest
16:16 LazyJ joined #minetest
16:32 KaadmY joined #minetest
16:35 Void7 joined #minetest
16:48 Out`Of`Control joined #minetest
16:53 Void7 joined #minetest
16:58 Markow joined #minetest
17:18 diemartin joined #minetest
17:20 STHGOM_ joined #minetest
17:23 STHGOM joined #minetest
17:25 jonasbits joined #minetest
17:27 Lord_Vlad joined #minetest
17:29 LNJ2GO joined #minetest
17:42 kaeza joined #minetest
17:45 diemartin joined #minetest
17:51 Lord_Vlad joined #minetest
17:55 LNJ2GO joined #minetest
17:55 _Megaf !server Megaf
17:55 MinetestBot _Megaf: Megaf Server v4.0 | mt.megaf.info:30003 | Clients: 4/10, 0/4 | Version: 0.4.14-Megaf / MegafXploreNext | Ping: 513ms
17:55 _Megaf hm
17:59 _Megaf !server Megaf
17:59 MinetestBot _Megaf: Megaf Server v4.0 | mt.megaf.info:30003 | Clients: 4/10, 0/4 | Version: 0.4.14-Megaf / MegafXploreNext | Ping: 17ms
18:00 _Megaf high ping
18:00 _Megaf wonder why
18:15 LNJ2GO joined #minetest
18:25 Krock joined #minetest
18:28 agaran hi Krock, how vacation went?
18:28 Krock oh it was warm and sunny :)
18:28 Krock hello and thanks for asking
18:29 Krock almost got a shock when I returned to my cold home :P
18:30 Krock I'm quite happy - also got a new computer, agaran. And how are you?
18:30 agaran I am good, though weekend could have 2 more days or so
18:31 Krock haha true ;)
18:33 Krock oh btw - Is it common that today's mainboards offer floppy power and data connectors? It's quite frustrating that they don't have these older 4-pin power supplies for HDDs anymore
18:34 Krock or even more - no ATA connectors
18:34 agaran hmm floppy connectors, that is idc34 for data, and smallish 0.1" spacing 4 pin for power aren't common anymore but they do happen, indeed some devices lack molex hdd connectors (4pin),
18:35 agaran but also power budget on psu shifted..
18:35 Krock ah right - they're called molex - didn't remember the name
18:35 agaran years ago most of power capacity was +5/+12V rail.. nowadays it changes
18:35 agaran quite fair amount is on 3.3V rail
18:35 Krock yeah but logic only doesn't take lots of power
18:35 agaran tell that to memory chips;)
18:36 Krock :/
18:36 agaran who got somehow heatsinks.. hence need to dissipate something
18:36 agaran memory chip, and really all logic is made out of cmos transistors..
18:36 agaran changing state => charging/discharging, thus taking power
18:37 agaran smaller thickness of process, means smaller gates thus less capacitance (and other things) but.. more problems on manufacturing
18:37 Krock charging? cmos doens't charge, they switch - and while they do, they let current flow for a short moment
18:37 agaran cmos do charge
18:37 agaran cmos does not conduct current through gate
18:37 Krock but they have a capactor effect there
18:37 Krock *capacitor
18:37 agaran yes
18:37 Krock that and the loss while switching
18:37 agaran gate is one field of capacitance other is source/gate depend of view
18:37 agaran yep
18:38 agaran also finite channel resistance is loss too
18:38 agaran though lot smaller due to small currents flowing
18:38 Krock yeah.. millions of microamps generate some heat
18:38 agaran in other hand even 0.1pF capacitance if you charge/discharge it at 1GHz square wave with 1V amplitude does eat current..
18:38 agaran and 0.1pF is really small capacitor
18:39 Krock the funny thing about it is that capacitors don't generate heat - only the wrires that charge and discharge them
18:39 Krock *wires
18:39 agaran well unless your dielectirc is lossy
18:39 Krock it's always a bit lossy, sadly
18:39 agaran hence return of porcelain capacitors (smt ones) at very high frequency..
18:40 agaran and they are bloody expensive in compare to NP0 ceraics..
18:40 agaran ceramic
18:40 ssieb joined #minetest
18:41 Krock lovely - interests (and/or knowledge) is overlapping :)
18:42 agaran :)
18:45 Krock I'm afraid of checking the github notifications page :<
18:46 agaran :) I am not, I have no page
18:46 Krock get one!
18:48 agaran well if my module ever gets close to state that can be shared.. maybe
18:49 red-001 !server just test
18:49 MinetestBot red-001: @test@     -|[JUST TEST 2]]|- | 23.28.87.79:30002 | Clients: 35/53, 22/35 | Version: 0.4.14-403dada / just_test_tribute | Ping: 188ms
18:49 red-001 !server just test ser
18:49 MinetestBot red-001: Just test server | 51.37.66.160 | Clients: 0/15, 1/2 | Version: 0.4.14-403dada / minetest | Ping: 41ms
18:49 Krock you can also contribute to other projects without uploading own ones ^^
18:49 agaran true, I know I found bug in bamboo you made
18:50 agaran or maybe not exactly bug
18:50 Krock roast and eat that insect
18:50 Krock what's the issue?
18:50 agaran it is not friendly to mg_valleys
18:51 agaran almost never finds condition to grow bamboo.. valleys use a lot of riverwater instead of normal and rarelly around required heights it has in code
18:51 Krock yeah, I think so because valleys was made two (I guess) years later
18:51 agaran Krock: yup, though I would use lm317 for 3.3V rail
18:52 Krock agaran, didn't have one back then, so I just soldered three diodes in series
18:52 Krock :3
18:52 Krock yolo, it must work
18:52 agaran yup, it works even if it is a bit unpredictable
18:52 agaran at very low load drop changes a lot.. then it gets more stable
18:53 Krock I just hope they added capacitors on that rail so it doesn't matter much when the consumption changes
18:53 agaran Krock: more esd/overvoltage diodes will have something to worry about..
18:53 Krock oh right
18:54 Krock indeed, should put an lm317 in there (or a 3.3V regulator directly)
18:54 rubenwardy joined #minetest
18:55 agaran well as long as you don't disconnect drive while powered it is rather safe..
18:55 agaran problem is when 5V rail is stable and you plug in.. you have zero load thus 3.3V rail sees nearly 5V on output..
18:55 agaran if you have it plugged while powering up.. then supply ramps up and devices stabilize easier
18:55 Krock or simply putting a resistor in, as basic load :3
18:56 Krock but that's even less efficient than a lm317
18:56 agaran yep, just make sure it is something that can dissipate enough..
18:56 agaran yupie..
18:56 FirePowi joined #minetest
19:01 Szkodnix joined #minetest
19:03 AcidNinjaFWHR joined #minetest
19:05 swift110 joined #minetest
19:05 swift110 joined #minetest
19:34 est31 joined #minetest
19:56 Hijiri Bukki: use string.sub
20:07 Darcidride joined #minetest
20:48 YvesLevier joined #minetest
20:58 KaadmY joined #minetest
21:07 sfan5 !server just test
21:07 MinetestBot sfan5: @test@     -|[JUST TEST 2]]|- | 23.28.87.79:30002 | Clients: 24/53, 28/41 | Version: 0.4.14-403dada / just_test_tribute | Ping: 113ms
21:07 sfan5 hm
21:07 sfan5 >0.4.14-403dada
21:08 sfan5 does that imply it's hosted on windows?
21:10 est31 idk but it is hosten on win afaik
21:10 est31 hosted*
21:10 Darcidride joined #minetest
21:23 Fixer windows
21:26 Fixer sfan5: it is on windows, why asking?
21:26 sfan5 just wondering
21:26 Fixer it works nice on his PC
21:27 Fixer if he is not streaming though
21:27 Fixer because he is streaming and playing on server -_-
21:37 everamzah joined #minetest
21:39 halt_ joined #minetest
21:39 Yst joined #minetest
22:05 Tmanyo joined #minetest
22:11 Samson1 joined #minetest
22:28 GrimKriegor joined #minetest
22:28 LNJ2GO left #minetest
22:50 LazyJ joined #minetest
23:36 Megaf joined #minetest
23:51 Megaf oh boy, Linode support is fast. 23 minutes to reply to my ticked on late Sunday

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