Time Nick Message 03:18 elfang Hello? 03:27 LoneWolfHT Hi 03:29 elfang O.m.g. hi! 03:29 elfang I'm just waiting for the forums to do their thing. 04:08 truckermama hi 10:07 * nepugia thinks about whether to list their server on the list or not 10:25 BuckarooBanzai5 nepugia what type of server? 10:28 nepugia a minetest server :P 10:28 nepugia just minetest_game (with very little modificatio) and my mod ontop 13:09 nepugia gosh, why is there no documentation about what stuff the server list actually uses, as in which port to whitelist and such 13:17 rubenwardy The server list is port 80 13:21 nepugia 80? ok then 13:24 Calinou rubenwardy: does it use HTTPS for communication by default? 13:24 Calinou if so, it'd be 443 13:24 rubenwardy I don't think so 13:25 nepugia the log in normal settings doesn't say whether it announced the server or not :/ 13:28 Calinou it should print a message if I'm not mistaken 13:29 Calinou something along the lines of "Announcing to servers.minetest.net" 13:29 nepugia does it only do that if it suceeds perhaps? 13:30 nepugia neither 80 nor 443 (for tcp and udp allowed) seam to work for me hmm 14:49 Plane Hey. 14:50 nepugia Hello there 14:50 Plane Hi. 16:11 lllI1I is there a clientside analog to the "dedicated_server_step" setting 16:17 Calinou not that I know of 16:17 Calinou from what I've seen, if you run singleplayer, the step will run as often as possible 16:17 Calinou if you run a local server and connect to it, it will run at the usual server step 16:25 lllI1I wondering about clientside mod update time 16:26 lllI1I the docs are just mostly copypaste from what I can tell 16:26 lllI1I so it says "usually 0.1" for both 16:27 lllI1I want to make smooth fading HUD element transitions and 10 fps is not smooth 16:40 lllI1I just confirmed that it is tied to/appeared to be correlated with framerate, both singleplayer and online 17:15 lllI1I why is "local meta = itemstack:get_meta(); local desc = meta:get("description")" crashing on me with "attempt to index local 'meta' (a userdata value)" 17:16 lllI1I on the second part being run 17:18 Krock looking up sauce... 17:18 lllI1I this is in a client mod btw 17:18 lllI1I if that's contributing 17:20 Krock what kind of itemstack is it? I'd only expect something like this with empty stacks 17:21 lllI1I it's the currently wielded tool, gotten with core.get_wielded_item() 17:21 lllI1I itemstack:get_wear() works properly 17:22 Krock https://github.com/minetest/minetest/blob/a5197eaebc61ac6b555a640f36c0b427faef381d/src/script/lua_api/l_client.cpp#L219-L224 17:22 Krock there's always a valid itemstack, so meta can be called 17:22 Krock looking up what get() does 17:24 lllI1I I did print(type(meta)) and it said userdata 17:24 lllI1I is that what it's supposed to be? 17:25 Krock your itemstack is a table which inherits from another table 17:25 Krock does that happen server-side too? 17:25 lllI1I I don't think so but I haven't tested it 17:26 lllI1I I also had a problem doing core.get_meta(pos) as well, same issues 17:27 Krock are you sure it's not restricted by the server? 17:28 Krock print(dump(meta)) is possible too btw 17:31 lllI1I I got an error from print(dump(meta)) 17:31 lllI1I don't remember what it was though 17:31 lllI1I something about a nonexistent global "getmetatable" 17:32 lllI1I re: server restriction, I looked at the flags and it doesn't look like any of them would apply to item/node metadata 17:32 Krock aha, I see what's going wrong 17:33 Krock https://github.com/minetest/minetest/blob/master/src/script/cpp_api/s_security.cpp#L247 17:33 Krock getmetatable is missing, thus it cannot call metadata fields 17:33 Krock one line will fix your issues 17:33 lllI1I yay 17:34 Krock adding to #8627 as a separate commit 17:34 ShadowBot https://github.com/minetest/minetest/issues/8627 -- Load CSM environment after the restrictions are known by SmallJoker 17:36 LoneWolfHT `meta:get_string("description")`? 17:36 lllI1I either one produces the same error 17:38 Krock lllI1I: you may want to apply the PR's patch now for the CSM fix 17:38 Krock (if you have a build setup) 17:38 lllI1I yeah I do thanks 17:39 lllI1I will that fix be in a 5.0.2 or is it more likely to be seen in 5.1.0 17:39 lllI1I haven't been keeping up with development milestones or anything 17:40 Krock no release date set yet. 5.0.2 would be a backport of security fixes 17:40 Krock target is 5.1.0 17:40 lllI1I okay I getcha 17:41 Krock but the release will definitely happen after #8524 since that's a long-awaited feature 17:41 ShadowBot https://github.com/minetest/minetest/issues/8524 -- Add compatible, consistent coordinate system to FormSpecs. by v-rob 17:41 lllI1I btw how do you check to see what server restrictions there are in the clientmod 17:41 Krock good question. next question 17:41 lllI1I huhu 17:42 Krock I don't think you can. the functions will just return `nil`, like on failure 17:42 lllI1I not currently anyway 17:43 lllI1I I'd imagine there would be a way to tell the client that at some point down the road 17:43 lllI1I API isn't quite stable yet? 17:44 Krock 1) that's noted in the very beginning of client_lua_api.txt 17:45 Krock 2) it hasn't been touched since 0.5.0-dev (after 0.4.16) 17:45 Krock since red-001 and a few other devs lost interest, it's just waiting there to become usable 17:46 lllI1I I've been working on a few clientside mods that I'm hoping will be useful 17:46 lllI1I maybe that could jumpstart interest 17:47 Krock well, the only helpful thing aside searching&fixing possible server exploits was https://forum.minetest.net/viewtopic.php?t=19964 17:47 Krock but I'm somewhat proud about this simple mod. Makes chatting somewhat easier 17:49 lllI1I that's neat maybe I'll get that 17:49 lllI1I 2 mods I'm working on rn are the one that keeps you from accidentally breaking your tool (works now) and one that allows you to toggle pvp on/off 17:50 lllI1I in case you have a nasty habit of missing what mob you're fighting and hitting your friends 17:50 lllI1I with your big sword 17:51 lllI1I oh yes also smoothly fading/transitioning HUD elements 17:51 lllI1I but that one would take more effort and serverside-config 17:57 lllI1I Krock: how do I uhh merge this commit 17:59 lllI1I or should I just 17:59 lllI1I apply it manually 17:59 Krock cd /my/minetest/ 17:59 Krock curl -Ls https://github.com/minetest/minetest/pull/8627.patch | git am -3 - 18:00 Krock or add it to .bashrc to have a shorthand command for this 18:01 lllI1I thanks 18:06 lllI1I Krock: same error is happening after applying patch 18:07 Krock something about a nonexistent global "getmetatable" 18:07 Krock so any similar error now? 18:07 lllI1I yes 18:08 Krock yes..? 18:08 lllI1I print(dump(meta)) gives error: ModError: Runtime error from mod '' in callback on_dignode(): *builtin*:common/misc_helpers.lua:126: attempt to call global 'getmetatable' (a nil value) 18:08 Krock would you mind giving me the snipped for local testing? 18:08 lllI1I should I post my entire code 18:08 Krock ninjas everywhere 18:09 Krock *snippet 18:09 lllI1I sec lemme pastebin 18:09 lllI1I https://pastebin.com/kuVkq4ku 18:11 Krock compiling minetest. aagh, multi-branch incremental builds would be a glory 18:11 lllI1I without print(dump(meta)) I get the same error as before, about the usertables 18:12 lllI1I should also give yourself like a wooden shovel or something else with a low usecount 18:13 lllI1I because it triggers when attempting to use a severely damaged tool 18:17 Krock nil metatable 18:17 Krock great 18:17 lllI1I does that narrow it down 18:18 Krock next try. rebuilding 18:19 Krock fixed 18:19 Krock amending commit.... 18:20 Krock git reset --hard upstream/master 18:20 Krock 18:25 lllI1I will using the latest development version cause any issues with normal gameplay 18:26 Krock it'll cause less issues than the most recent stable version 18:26 lllI1I huhu 18:26 Krock well, maybe in the meanwhile there came some fresh bugs 18:26 Krock nobody knows 18:28 lllI1I we'd certainly hope not 18:28 lllI1I might be good to have a "stable" build lying around 18:28 lllI1I since that's probably what most people use 18:28 Krock rename the old minetest binary 18:29 Krock get the new. play with both as you like 18:29 lllI1I well there's more changes than in the binary I'd imagine? 18:29 Krock here I symlinked everything so that I can play 0.4.17.1 and 5.1.0-dev at the same time 18:29 Krock there is, but I doubt it would cause crashing on startup due to incompatiblities 18:29 lllI1I compiled latest + patch 18:30 lllI1I still broke 18:30 Krock sorry, what? 18:30 Krock it worked just fine here 18:30 Krock remove dump() btw 18:30 Krock I cannot fix that one due to security reasons 18:30 lllI1I yes I removed that and no more crash 18:31 Krock is it broke or broken? 18:31 lllI1I tested with dump(), crash; tested without, no crash but unexpected result 18:31 lllI1I "Your is about to break!" 18:31 Krock lol 18:32 lllI1I did it work proper on your end 18:33 Krock I heard the sound and was satisfied. this totally went past me 18:33 Krock get_string() returns "" if it's not found btw 18:33 Krock get() works 18:33 lllI1I shouldn't "description" be present always 18:34 lllI1I oh wait 18:34 Krock no, that's for custom item descriptions 18:34 lllI1I yeah that'd be in the itemdef 18:34 Krock you're referring to itemdef 18:34 lllI1I which might not be permitted by the server 18:34 Krock hah. I almost wondered what the heck now isn't working again 18:34 lllI1I well we'll check for metadata description, then itemdef (if allowed) then go with "tool" if all else fails 18:35 lllI1I at least that one is fixed 18:35 lllI1I big thanks btw 18:35 Krock hi nep 18:35 Krock !nextr 18:35 Krock !next 18:35 MinetestBot Another satisfied customer. Next! 18:39 lllI1I on the plus side it works when I give it a custom description 18:39 lllI1I Your BIG AXE OF DUMP is about to break! 18:45 lllI1I what is this quicktune 18:51 Krock quicktune is for debugging purposes, if it's ever used 18:51 Krock make it a multiline description 19:13 lllI1I stone hoe almost broke because it only checks on digging nodes 19:13 lllI1I I knew there was that limitation, not sure how to work around it 19:13 Krock calculate the average dig cycles and notify 1.5 cycles before crack 19:14 LoneWolfHT There was an on_punch() IIRC 19:14 LoneWolfHT `minetest.register_on_punchnode(function(pos, node))` * Called when the local player punches a node * Newest functions are called first * If any function returns true, the punch is ignored` 19:16 lllI1I yeah, there's a few more things I have to do before this is good to publish or anythting 19:16 lllI1I one thing I want to add is support for when the server allows us to look at itemdefs/nodedefs to see how much use would be used if we dig it 19:17 lllI1I so that it would be right up to the last dig