Time Nick Message 08:54 AspireMint Hello, is there any fn which is called when mapchunk/mapblock is sent to player? There is fn when chunk is generated, but can not find any when chunk/block is loaded again. 10:22 BuckarooBanzai AspireMint: no such thing yet, what yre you trying to accomplish? 10:24 AspireMint im trying to do some statistics, which mapblocks are most used etc. 10:25 BuckarooBanzai used as in loaded or in placed/digged? 10:25 AspireMint loaded 10:26 BuckarooBanzai alternatively to check if they (could be) loaded you could just add some globalstep logic and flag the mapblocks around the player every second or so 10:28 AspireMint Yes, but thats not accurate :-( DB trigger can do it, i guess, but... better if there is lua fn. 10:29 BuckarooBanzai to further complicate things: a mapblock can be cached for a while outside the database, or could even be loaded by a machine (mesecons, etc) 10:30 BuckarooBanzai are you trying to do a kind of "hotspot" map or is it about unused parts of the map? 10:32 AspireMint unused parts 10:34 BuckarooBanzai is your map too big? 10:34 AspireMint minetest.on_load_area would be helpful grrr 10:34 AspireMint it doesnt even exist yet x) 10:34 AspireMint but will be huge 10:35 BuckarooBanzai this function will be called quite a lot, i'm not sure thats good for performance (c++ to lua call) 10:36 AspireMint but not as often as globalstep or other abms, and server isnt always full of people walking at speed of light through map x) 10:38 BuckarooBanzai if you have a view-range of 10 mapblocks (the default i think) it would result in 1000+ calls just for one player 10:38 BuckarooBanzai i'm not saying it is a bad idea but it has some performance issues if done improperly... 10:40 AspireMint ooops, i think we are talking about different thing. I meant mapblock as bulk of nosed that is sent by server to player. Mapblock is not node. 10:41 AspireMint from allmighty api.lua: "A 'mapblock' (often abbreviated to 'block') is 16x16x16 nodes and is the 10:41 AspireMint fundamental region of a world that is stored in the world database, sent to 10:41 AspireMint clients and handled by many parts of the engine. 10:41 AspireMint 'mapblock' is preferred terminology to 'block' to help avoid confusion with 10:41 AspireMint 'node', however 'block' often appears in the API." 10:42 BuckarooBanzai well, i'm talking about the 16x16x16 node "blocks" 10:42 BuckarooBanzai node < mapblock < chunk 10:42 AspireMint uhh but why 1000+ calls? 10:43 BuckarooBanzai view-range of 10 mapblocks has (at least) 10^3 mapblocks in it, if not more 10:43 BuckarooBanzai there are some view-cone calulcations/culling but the amount sounds right... 10:46 AspireMint oh okay, because i was fast-flying through map in singleplayer and on_generated callback wasnt called so often, thats why i think it should not be problem. You are right, but also there is catch, it is not sent at one moment :-) 10:46 BuckarooBanzai on_generated is called for a chunk of 125 mapblocks ;) 10:47 AspireMint ooooh right x) 10:47 AspireMint haha, okay thanks for info and help, ill do some more testing 11:13 MTDiscord <11I​hrFussel> Here's an idea but I have no clue how heavy it will be on the server: Add a custom group to every node or at least every node that's used for mapgen and then use a LBM 11:14 MTDiscord <11I​hrFussel> In theory this should trigger whenever a player enters a new mapblock then 11:15 MTDiscord <11I​hrFussel> New as in either newly generated or not-loaded 11:17 AspireMint thanks, im going to use invisible entity for each mapblock, and create own minetest.on_load_mapblock when entity is loaded. Am i right that entity will despawn when mapblock is unloaded? Or is it still alive in own universe (global variable)? 12:31 AspireMint nvm, it despawns... anyone knows what can be reason entity is not visible (not activated) but is placed to world? minetest.add_entity returns obj (so it is created) but on_activate is not called. Here is screenshot https://i.imgur.com/Oqy5nBw.png (spacing - 4 nodes in this case, but also same problem with 16, so its not in amount of entities, it shouldnt be..) 12:33 BuckarooBanzai AspireMint: source? 12:41 AspireMint BuckarooBanzai: https://www.paste.org/114202 12:42 AspireMint lol, ignore that line - chat_send_all, theres bug but still, it is never nil so.. 13:03 BuckarooBanzai where is your `on_activate`? it should be called if it is in the entity definition... 13:04 BuckarooBanzai oh, and just a heads-up: if there are too many entities in the mapblock (there is a setting) all of them get removed ;) 13:07 MTDiscord <04R​AB> Does anyone know why a client side mod using register_on_connect is throwing an error? Has this command been changed or deprecated? I'll be glad to read a document if anyone can point to something helpful. I was unable to find it using multiple search engines. 13:09 ryzenda https://wiki.minetest.net/Tool#Wear typo: "Wheather" should be "Whether" -- I can't find a way to edit or register an account 13:10 ryzenda only 1 typo: https://wiki.minetest.net/index.php?search=wheather&button=&title=Special%3ASearch 13:11 sfan5 fixed 13:13 AspireMint BuckarooBanzai: sorry, can not edit that file... so here it is: on_activate = function(self, staticdata, dtime_s) if vector.distance(self.object:get_pos(), vector.new(64,-16,0)) < 1 then minetest.after(5, function() minetest.chat_send_all("---> is visible") end) end end 13:14 AspireMint BuckarooBanzai: that xyz i know from debug file, there should be entity. But somehow its missing, also tons of other entities are missing. 13:15 BuckarooBanzai well, they only spawn on mapgen, are you sure it is freshly generated? 13:15 AspireMint static_save = true , so it is loaded when i restart server 13:16 BuckarooBanzai did you try to move the `chat_send_all` a bit further up? the condition might not be true there 13:16 BuckarooBanzai static_save is true by default iirc 13:17 MTDiscord <04R​AB> Does anyone know why a client side mod using register_on_connect is throwing an error? Has this command been changed or deprecated? I'll be glad to read a document if anyone can point to something helpful. I was unable to find it using multiple search engines. 13:19 AspireMint BuckarooBanzai: it is inside of .after fn, so when i log in it will wait and print it on my screen 13:23 AspireMint RAB: what MT version? i can not find any "register_on_connect" function 13:24 sfan5 yeah that was probably removed https://github.com/minetest/minetest/blob/master/doc/client_lua_api.txt 15:27 hisforever Mabee someone can help I just installed Debin os on my laptop. the software center only has Mt 0.4.19 How can I get the latist MT 15:28 MTDiscord <04K​not Abbot> https://github.com/minetest/minetest 15:28 MTDiscord <04K​not Abbot> read the compiling section 15:29 MTDiscord <11J​onathon> sudo add-apt-repository ppa:minetestdevs/stable sudo apt update sudo apt install minetest 15:30 sfan5 I thought PPA don't work on debian? 15:31 MTDiscord <11J​onathon> not sure, at least the bot here claims it does 15:31 MTDiscord <11J​onathon> if it doesn't that needs to be fixed 15:31 sfan5 you could also download a deb package of a development build here https://gitlab.com/minetest/minetest/-/pipelines?scope=finished&page=1 15:32 sfan5 (download button on the right, you can pick debian-9 or debian-10) 15:38 MTDiscord <04K​not Abbot> Oh didn't know there was this option as well, nice. 15:44 hisforever Thanks sfan5 16:54 Wuzzy hey, lets play on A.E.S. server, there are many minigames 17:05 specing 128 or 256? 17:05 MTDiscord <13r​ealtechnerd> test 18:34 Bombo hi 18:35 Bombo i installed minetest from the play store on my android (10) tablet, but every time i start it i just get 3/4 or so of the screen 18:35 big_caballito[m] ? 18:36 Bombo the touch input is full screen the actual grafics are 3/4, so i can't hit connect or stuff 18:37 big_caballito[m] on amdroid? 18:37 Bombo yes 18:37 big_caballito[m] s/amdroid/android 18:37 Bombo android 10 18:38 Bombo i deleted cache, then data, no change, uninstalled, installed no change 18:38 big_caballito[m] what do you mean by "touch... is full screen"? the buttons? 18:39 Bombo touch input is not in sync with the gfx 18:40 Bombo so the coordinates where i see e.g. the connect button nothing happens, but if i add like 50 to x and 50 to y axis 18:41 big_caballito[m] ok... now i understand your problem 18:41 big_caballito[m] so 18:41 big_caballito[m] idk, have you looked around in the settings? 18:42 Bombo just the gfx is like 3/4 of the full screen 18:42 Bombo it's hard to hit the settings 18:42 big_caballito[m] this is a little out of my experience, maybe sfan5 can help better? IK he does android stuff 18:42 Bombo and it should be reset after i uninstalled/reinstalled and deled the data+cache i guess 18:43 big_caballito[m] but it wasn't, hmm 18:43 * Bombo asks sfan5 18:44 Bombo the one i found on f-droid doesn't start at all btw 18:44 Bombo i just get the loading bar 18:44 big_caballito[m] can you look at your minetest.conf? i.e. do you have a text editor app? 18:44 big_caballito[m] this is the version from github, right? 18:44 Krock f-droid apks are outdated 18:45 Bombo samsung notes 18:45 Bombo i installed i from google play store 18:47 big_caballito[m] I wouldn't trust any from google play, you should try the one from https://github.com/minetest/minetest/releases 18:47 Krock net.minetest.minetest is the official one. version 5.3.0 18:47 Krock and that's maintained well 18:48 Krock irrlicht should use the full reported screen size 18:48 Krock but I've also seen reports where it scaled wrongly on retina displays (1/4 of the screen) 18:49 Krock if you would like to tinker with the settings manually, loko out for minetest.conf within the game's working directory (parent directory of "worlds") 18:49 Krock or using the GUI. the settings are named screen_w and screen_h 18:50 sfan5 uhh, no idea 18:52 Krock monte is usually our guy who takes care about Android problems 18:53 big_caballito[m] good to know, lol 19:00 Bombo it's 5.3.0 19:01 Bombo what's a good free conf editor? 19:01 Bombo there are too many 19:01 Bombo first one didn't let me change dirs 19:04 Bombo second one just a viewer lol 19:05 big_caballito[m] I like https://play.google.com/store/apps/details?id=com.simplemobiletools.notes.pro 19:06 big_caballito[m] pretty sure it can edit text files 19:07 Bombo ok got it 19:08 Bombo there was screen_w=1440 screen_h=900 19:08 Bombo for some reason 19:08 Bombo real is 1920x1200 19:08 Bombo i commented it out and now i get full screen 19:09 big_caballito[m] ?️ 19:09 Bombo minetest.conf had screen_w=1440 screen_h=900 19:09 big_caballito[m] !next (even though I barely helped) 19:09 MinetestBot Another satisfied customer. Next! 19:10 Bombo ;) 19:10 Bombo thx anyways big_caballito[m] ;) 19:10 big_caballito[m] np 19:10 Bombo and Krock :) 19:16 Bombo next prob 19:16 Bombo the password screen doesn't seem to work 19:16 big_caballito[m] uh-oh 19:17 Bombo i try to register a new acount 19:17 Bombo i get the screen to enter the pw after i hit connect 19:17 Bombo i get the virtual keyboard 19:18 Bombo type it in hit ok but the characters won't appear in the input field 19:18 Bombo not even ***** 19:21 Bombo well i see a input box with shows *** as i type, (probably local) and in the bg there is a ingame window with an input box and button for registering 19:21 Bombo that is not receiving the pw from my virtual kb i guess 19:22 Bombo is that a known bug? 19:23 sfan5 once you confirm the "foreground" input box it'll appear in the real box 19:37 Bombo yes thats's the issue, it won't 19:37 Bombo after 20 tries i got a pw entered 19:38 Bombo but i tried to register another user now, and same prob, the fg pw doesn't get through to the bg box 19:39 sfan5 huh 19:54 Bombo hm when i tap 3 times into the green pw box it sometimes works 20:03 MTDiscord <04K​not Abbot> I don't get it either, I had an issue on the forums about that, but 5.3.0 didn't fix it sadly, I'm only able to type in the username, the password never appears sadly. 23:13 daiNoZord bringing two worlds together - does anyone use the IRC mod? 23:28 MTDiscord <11J​onathon> according to servers.minetest.net/list 40 servers use the irc mod 23:29 daiNoZord aha thanks 23:31 daiNoZord Im having trouble: /home/dai/Desktop/minetest/mods/LuaIRC/luairc/doc 23:32 daiNoZord nope wrong copy 23:34 daiNoZord wont copy 23:35 daiNoZord undefined symbol:lua_gettop 23:36 daiNoZord in usr/lib/x86_64linux-gnu/lua/5.1/socket/core.so 23:40 sfan5 your minetest is very likely *not* using the system-wide lua 23:40 sfan5 the hard part about this is that you need to install the socket library to exactly match the Lua installation used by Minetest 23:40 sfan5 which is most likely your system-wide LuaJIT 23:42 daiNoZord because it's run-in-place? Thats ok its a battle for another day then - I cant edit minetest .conf until i strip my sdd so i cant test it with a global install but this machine wont be my server in the end anyway. Thanks for the tip 23:43 sfan5 no that's irrelevant 23:43 daiNoZord oh right - luajit, luarocks, luasocket all installed - how do i point minetest to them then? 23:44 daiNoZord i only followed the wiki 23:45 sfan5 no no it's not that easy 23:46 sfan5 you might have Lua 5.1 and LuaJIT on your system, both are *separate* Lua installations 23:46 sfan5 if you install luasocket for lua5.1 but Minetest uses luajit, it won't work 23:48 sfan5 maybe the wiki got this right already, but that's something I'd find out first 23:49 daiNoZord i was just looking thru google at "downloading luasocket for luajit" .. not much