Time Nick Message 00:39 FennecCode How's everyone doing today? ? 01:19 Ruslan1 FennecCode: 07:35 YuGiOhJCJ hello, my server is not listed anymore at https://servers.minetest.net/ it it because it was down during the period from 2019-08-13 to 2019-08-21? 07:36 YuGiOhJCJ *is 07:39 YuGiOhJCJ address: yugiohjcj.tk, port: 30000 (UDP) 11:26 sfan5 YuGiOhJCJ: your server should automatically reappear if you start it up 11:26 sfan5 !up yugiohjcj.tk 30000 11:26 MinetestBot yugiohjcj.tk:30000 is up (48ms) 12:44 YuGiOhJCJ ok as it is already running, I will stop it and start it again to see what happens 13:05 YuGiOhJCJ ok restarted but I still don't see it in the server list, weird 13:06 Krock any warnings, errors? 13:06 Krock request timeout? blocked IP? 13:07 YuGiOhJCJ in the log I see 2019-09-01 15:03:32: ACTION[Server]: Announcing to servers.minetest.net 13:08 Krock correct address settings, as well as IPv4/6? 13:08 YuGiOhJCJ I see only a warning because I am using the old player file backend, but nothing else, it seems to be good 13:08 Krock you could migrate that one easily 13:11 sfan5 !up yugiohjcj.tk 30000 13:11 MinetestBot yugiohjcj.tk:30000 is up (53ms) 13:11 sfan5 should be working ¯\_(ツ)_/¯ 13:11 YuGiOhJCJ 2019-08-26 13:07:07: ERROR[CurlFetch]: servers.minetest.net/announce not found (Couldn't resolve host name) (response code 0) 13:12 YuGiOhJCJ an old error 13:12 YuGiOhJCJ in the log 13:16 Niwla sofar ? 13:21 Niwla which license is good for my mod request (TalkLounges dropped mod plot_system) 13:25 sfan5 YuGiOhJCJ: I can't see any announce request from your servers IP 13:28 YuGiOhJCJ that's strange because 'server_announce = true' is set in '.minetest/minetest.conf' 13:29 YuGiOhJCJ can I do a fake announcement easily with the curl utility without using Minetest directly from my server? 13:29 YuGiOhJCJ It could help to see what happens 13:30 sfan5 possible? yes easily? no 13:31 YuGiOhJCJ ah 13:31 YuGiOhJCJ I am not sure what is doing the code for announcing I will try to find that in the code first 13:31 sfan5 your server's ip is 78.199.90.154, right? 13:34 YuGiOhJCJ yes 13:35 YuGiOhJCJ https://github.com/minetest/minetest/blob/master/src/server.cpp#L592 hmm maybe the problem is that the "USE_CURL" macro is not set, I will check that 13:38 YuGiOhJCJ I can't remind the last time that my server appeared in the server list so maybe it's an old problem maybe not 13:45 YuGiOhJCJ everything seems ok for CURL: https://pastebin.com/aCSPsEGz 13:45 YuGiOhJCJ so it is enabled 17:22 lllI1I hi hello how can I make a very minor API change request that would be very helpful to implement and laughably trivial to implement, is there a formal process or 17:22 Krock -> github issue 17:22 Krock or request it here or in #-dev 17:23 Krock but changes are higher on github that someone will pick it up somewhen 17:23 lllI1I I just want an AreaStore to include the area's ID 17:23 lllI1I so that I can remove it if I lost it somehow 17:24 lllI1I I can probably write a patch that'll do it ez 17:24 lllI1I AFAIK it'd be one line 17:25 Krock like AreaStore:get_ids() -> {"id1", "id2", ...} 17:26 lllI1I like get_areas_for_pos(...) returning the id along with the borders and data 17:27 lllI1I e.g. {max = {y = 7,x = 0,z = -137},min = {y = 0,x = -7,z = -144},data = "return {[\"y\"] = 3, [\"x\"] = -4, [\"z\"] = -141}",id=3} 17:32 Krock so.. AreaStore:to_table() 17:32 lllI1I no that would return all areas 17:34 lllI1I I'm working on a mod that deals with areas for protection and other things; the areas are attached to a special node in the world and are created when they're placed and deleted when they're destroyed 17:35 Krock sorry? the ID is already the index of the returned array 17:35 lllI1I but apparently due to a bug I now have an area that doesn't have a node attached 17:35 lllI1I so it's stuck in the AreaStore with no way to be deleted 17:36 Krock are you sure it's there? how do you know? 17:37 lllI1I I place a block in the area and my server reports "found an area! {max = { y = 7,x = 0,z = -137},min = { y = 0,x = -7,z = -144},data = "return {[\"y\"] = 3, [\"x\"] = -4, [\"z\"] = -141}"}" 17:37 lllI1I the data is the position where the node was placed, but that node is no longer there 17:38 lllI1I the node had metadata including the ID of the area but now that's gone 17:38 Krock well, nodes and areas do not have any connection 17:38 Krock they can be used entirely separate 17:38 lllI1I yes 17:39 lllI1I I have it set up so that the area's data is just a link to the controlling node 17:39 lllI1I and the metadata connected to the area is saved in the metadata of the node 17:39 Krock what if the area exceeds a mapblock? the node might not be loaded 17:40 lllI1I I haven't gotten that far yet because I encountered this problem 17:40 lllI1I though I had planned on forceloading all nodes with areas attached 17:41 Krock so how would you like to have the ID included in AreaStore? 17:41 Krock (still don't understand where the problem is) 17:42 sfan5 max = { y = 7,x = 0,z = -137},min = { y = 0,x = -7,z = -144} describes an area in the AreaStore 17:42 sfan5 but how do you find out the id of that area? 17:42 lllI1I just returning in the table(s) returned by get_areas_by_pos() 17:42 sfan5 ...is what I understood this problem as 17:43 lllI1I or is the ID actually already returned but not in the table somehow? 17:44 lllI1I I have "for _, area in pairs(homes:get_areas_for_pos(pos, true, true)) do" 17:45 lllI1I would the _ be where the ID is going or is the ID only used internally? 17:53 Krock sorry? the ID is already the index of the returned array 17:53 Krock "_" is the ID 17:53 Krock it's the very same ID as you specify when getting the area 17:54 Krock and iterating by ipairs won't work because it's a non-continuous numeric array 17:55 lllI1I I did pairs not ipairs 17:55 lllI1I also just tested, replaced _ with id 17:55 lllI1I area.id = id 17:55 lllI1I no change 17:56 Krock what do you expect from this line? it's a copy from the C++ data 17:56 lllI1I I'm having a look at the C++ source 17:56 Krock https://github.com/minetest/minetest/blob/master/src/script/lua_api/l_areastore.cpp 17:57 Krock ^ le click 17:58 Krock but I must say that the AreaStore documentation is really poor 18:00 lllI1I a->id is never referenced in the relevant functions 18:01 lllI1I I think I can write up a little thing 18:01 Krock setter: https://github.com/minetest/minetest/blob/master/src/script/lua_api/l_areastore.cpp#L186 18:01 lllI1I that might fix it 18:01 Krock getter: https://github.com/minetest/minetest/blob/master/src/script/lua_api/l_areastore.cpp#L67 18:02 Krock !! 18:02 Krock neither serialized nor deserialized 18:03 Krock neither are these functions forwards-compatible. eeks 18:04 lllI1I yeah I'm not getting the id as expected 18:04 Krock it might just be any foolish high number if it's not initialized 18:05 Krock 2^32-1 to be precise 18:05 lllI1I I had a thought for what I'd make the fix but it sounds like you might want to be making some changes of your own 18:05 lllI1I or that it's broken and needs proper fixing before I give it a shot 18:06 lllI1I I barely know what I'm doing with it 18:06 Krock ofc it needs proper fixing in the (de)serializing functions. you can take over that part if you'd like to try 18:07 lllI1I I wouldn't know where to start with that 18:08 lllI1I I was just going to add a couple lines that return the id in the table itself 18:08 Krock am I right that areastore isn't saved anywhere, and has to be done by mods? 18:08 lllI1I yes 18:08 Krock okay. your approach is the only sane solution for now 18:09 Krock problem is that newer saved areas won't be backwards compatible to 5.0.0 18:09 lllI1I I use modstore:set_string("homes", minetest.encode_base64(homes:to_string())) to save them 18:10 lllI1I the base64 part is vital 18:10 Krock hmm unless I add another loop at the end of the serialization 18:13 lllI1I so should I go ahead with my 2 line patch or 18:13 Krock find a workaround in your mod. I am currently fixinfg this 18:13 Krock put the ID into the data string 18:14 MinetestBot 02[git] 04DS-Minetest -> 03minetest/minetest: Various fixes to lua_api.txt (#8878) 130013f06 https://git.io/fjp8J (152019-09-01T18:12:22Z) 18:14 lllI1I the workaround was putting it in the node's metadata 18:14 lllI1I I'll put it in the actual data for now tho 18:18 lllI1I thanks btw Krock 18:18 lllI1I took a week off from this mod when I hit this wall 18:18 Krock !next 18:18 MinetestBot Another satisfied customer. Next! 18:26 nepugia So i can get my satisfaaaction 18:34 lllI1I well I feel kinda dumb now 18:34 lllI1I I was testing in the wrong file 18:34 lllI1I none of my changes made it to the server 18:42 lllI1I Krock: disregard my request/report it works thanks 19:12 Krock lllI1I: #8888 magic number 19:12 ShadowBot https://github.com/minetest/minetest/issues/8888 -- Fix AreaStore's IDs persistence by SmallJoker 19:14 Krock oh. needs a feature flag as well 19:17 Krock lllI1I: if you have some time to test this PR it would be great - or even better: if you happen to have a small testing code ready 19:19 Krock time to fix unittest 19:33 lllI1I Krock: I've stopped relying on the saved id since you told me they were in the keys 19:34 lllI1I I could revert and then try it again but I might just test it in a new thing 19:34 lllI1I later today though 19:34 lllI1I if that's okay 19:38 Krock ok 21:14 luizsab where I can find tutorials abou technic? I read the docs at github but isnt not cleare, I will used that with kids 21:44 MinetestBot 02[git] 04srifqi -> 03minetest/minetest: 'All Settings': Don't use checkboxes for 'no...' mapgen flags (#7847) 13cd1d01b https://git.io/fjpBh (152019-09-01T21:43:41Z) 21:50 nupa Hi, can someone please add create a wiki account for me? I'm nupa on the forums as well. 22:11 luizsab where I can find tutorials abou technic? I read the docs at github but isnt not cleare, I will used that with kids 22:25 luizsab someone? 22:30 nupa luizsab, I'd help but I don't know either, sorry. 22:36 luizsab nupa thank you 22:41 sfan5 github docs are most likely the only documentation technic has 22:42 sfan5 if you want to make it understandable to kids you'll have to write your own guide 22:45 luizsab sfan5, yes, I understand. I mean that docs not have all items description, I don't know how to use them 22:46 luizsab I found something at youtube, but only basic battery, solar panel... 22:48 kurtzmusch where should i put games and mods for a minetest compiled from source? 22:48 kurtzmusch nevermind, found it 22:50 nupa luizab a lot of stuff in minetest doesn't have great documentation, you might be able to get an idea by skimming the lua source code. if you figure out enough to put a proper guide together you'd be doing us all a big favor :) 22:54 luizsab nupa, thank you again, I will do that. I guess I can contribute at wiki, right? I already translate something there to portuguese 22:59 luizsab nupa, I found a manual at mod folder, you are right, I will translate that 23:01 nupa luizsab, I'm not sure where the best place to actually post a guide is. If the mod has a github page with its own wiki, that might be a good place to start. 23:01 nupa Does anyone know if we post mod info on the minetest wiki? or is that discouraged