Minetest logo

IRC log for #minetest-hub, 2020-09-12

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

All times shown according to UTC.

Time Nick Message
08:00 ShadowNinja joined #minetest-hub
08:22 twoelk joined #minetest-hub
08:26 calcul0n joined #minetest-hub
08:32 twoelk \o
08:32 twoelk o/
08:33 MTDiscord <B​uckarooBanzai> o/
08:45 shivajiva \o
08:56 twoelk \o/
08:56 Krock |
08:56 Krock / \
08:56 shivajiva ur a letter short of alignment Krock
08:57 Krock no I'm not
08:57 shivajiva clearly you are =)
08:58 Krock https://i.postimg.cc/sXgvC9P2/grafik.png gonna blame Freenode for this one
08:58 Krock the logs don't contain the space either
09:00 shivajiva Konversation doesn't left align the nicks so you never line up with twoelk over here
09:01 Krock too bad
09:01 shivajiva but yea formatted like that everything aligns
09:01 twoelk we can't stand in in line on freenode?
09:01 Krock you can - with hexchat
09:01 twoelk no inline online
09:03 twoelk notinline while beeing online with KVIrc
09:04 shivajiva I don't mind the alignment I have, makes the messages easier to read, not as bland as left aligned coloured nicks
09:05 shivajiva *right
09:34 Fixer joined #minetest-hub
09:39 shivajiva Okay potentially fixed sban failing to kick on ban occasionally, please update if you use it and report any issues
10:51 Fixer_ joined #minetest-hub
12:39 NathanS21 joined #minetest-hub
13:08 shivajiva rubenwardy: I'd appreciate you testing the latest sban, see if it removes the problem
13:09 rubenwardy I've updated, will see if it's reported again
13:09 shivajiva everything points to it sorting it out, ah thanks
13:10 shivajiva it's logged so it would be interesting to know how much the log entry appears
13:11 shivajiva wait, you don't log at that level so you won't be able to say
13:12 shivajiva I'm sure something will filter back from other users
13:13 rubenwardy the log appears in stdout / journalctl
13:13 rubenwardy but it won't be logged to disk
13:13 rubenwardy so I'd have to check close to when it's logged
13:13 rubenwardy like, within 6 hours
13:13 rubenwardy it should be a warning, those are logged to disk
13:14 shivajiva so there is potential then, what token string is that?
13:14 rubenwardy token string?
13:14 shivajiva like 'action' or 'info'
13:15 rubenwardy my  debug_log_level = warning
13:15 rubenwardy that .log should probably be a warning though
13:15 rubenwardy if it shouldn't happen - ie time out
13:16 shivajiva it's currently using 'action' for minetest.log event
13:17 shivajiva what's weird if you look at the query function I use is that's it should pick up a timeout and log it anyway
13:17 calcul0n_ joined #minetest-hub
13:17 shivajiva clearly it doesn't though
13:22 Fixer joined #minetest-hub
13:26 shivajiva hmm actually no, that doesn't pipe through any trap when I back trace unless dev = true
13:51 mransom joined #minetest-hub
13:53 MTDiscord <f​reshreplicant> Can you use string.find() to check whether one or both words are found?
13:54 rubenwardy what do you mean by one or both?
13:55 Krock match
13:55 MTDiscord <f​reshreplicant> Let's say, have this also work if the weapon wielded is called 'axe' if string.find(player:get_wielded_item():get_name(), "sword") then
13:55 MTDiscord <f​reshreplicant> Or more accurately, contains either "axe" or "sword"
13:56 rubenwardy Patterns don't support alternatives
13:56 MTDiscord <W​arr1024> just do 2 string.find calls...
13:56 Krock don't match like that
13:56 rubenwardy patterns are much lighter weight than regex
13:56 rubenwardy you should also probably use groups, if available
13:56 Krock if you look for "axe" you'll also find an axe in "climaaxextreme"
13:57 rubenwardy also, why do you care about whether it's a sword or axe? If it's about damage, then use damage groups
13:57 MTDiscord <f​reshreplicant> It's just about adding sounds. The code in that line isn't mine.
13:57 MTDiscord <W​arr1024> I will sometimes use heuristic matches, but I wouldn't do it based on the technical name.
13:57 rubenwardy choppy for axe, fleshy for swords, cracky for pick axes, ...
13:57 MTDiscord <f​reshreplicant> I was trying to start from 100% scratch for a while, but I don't know enough about programming.
13:57 MTDiscord <W​arr1024> damage groups or toolcaps sound good
13:57 Krock you can also copy&paste bad code and it'll work too in most cases
13:58 MTDiscord <f​reshreplicant> This was the only base I found that would not interfere with the damage calculations or other weapon on_use.
13:58 MTDiscord <W​arr1024> what I usually do for this kind of thing is (1) check group registrations for specific overrides, and then (2) fall back on a heuristic.
13:58 Krock try this:  dump(player:get_wielded_item():get_tool_capabilities())
13:58 Krock and check what you can use there
13:59 MTDiscord <f​reshreplicant> I have to admit I'm struggling to adapt the code because of how many nested if statements it contains.
13:59 MTDiscord <f​reshreplicant> I've only done a tiny bit of progamming in python and it looks pretty different.
13:59 Krock looks different but isn't that different
14:00 shivajiva Warr1024: nothing stopping you asking for voice in -hub ya know
14:00 lisac joined #minetest-hub
14:01 MTDiscord <f​reshreplicant> Oh shoot, didn't realise I was posting in the irc.
14:01 MTDiscord <f​reshreplicant> Apologies.
14:01 Krock your message is forwarded/bridged to IRC
14:01 Krock doesn't really matter
14:02 shivajiva ^
14:03 MTDiscord <f​reshreplicant> I just meant it's probably more appropriate for the discord modding channel.
14:04 shivajiva guess that depends who's around, there's a lot of knowledge in here
14:04 Krock or #minetest on IRC
14:36 shivajiva okey that should satisfy https://github.com/shivajiva101/sban/blob/master/init.lua#L860
14:36 Warr1024 shivajiva: I think I already have voice in hub...?  But I don't see much difference between posting in discord vs IRC when I'm on both the same people will see it either way, so mostly I just answer in whatever I have open.
14:38 shivajiva Oh okay, noticed you without voice at the bottom
14:51 aerozoic joined #minetest-hub
14:54 Jordach Krock, niiiiiiice
15:48 Jordach i did say that the fix for first person entities was alarmingly simple
17:08 twoelk left #minetest-hub
17:27 pyrollo joined #minetest-hub
17:30 homthack joined #minetest-hub
17:38 fluxflux joined #minetest-hub
17:48 Krock can ContentDB be grep-ed? https://github.com/minetest-mods/mesecons/pull/533#issuecomment-691523465
17:49 Krock the archives would need to be unzipped, though.
17:55 fluxflux joined #minetest-hub
18:29 fluxflux joined #minetest-hub
19:52 BillyS joined #minetest-hub
20:07 BillyS joined #minetest-hub
20:14 rubenwardy Krock: just found zipgrep
20:16 rubenwardy heh, it just unzips
20:21 * rubenwardy wonders how big he made /tmp
20:24 rubenwardy ok, this is taking a whil
20:25 rubenwardy I also have only 3GB remaining
20:33 rubenwardy argh, I used the wrong search string
21:03 pyrollo joined #minetest-hub
21:25 Conradish006 joined #minetest-hub
21:38 T4im joined #minetest-hub
21:40 T4im joined #minetest-hub
21:48 numzero joined #minetest-hub
22:50 fluxflux joined #minetest-hub
22:54 homthack joined #minetest-hub
23:35 homthack joined #minetest-hub

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