Minetest logo

IRC log for #minetest, 2019-09-01

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

All times shown according to UTC.

Time Nick Message
00:31 amenji1 joined #minetest
00:39 FennecCode How's everyone doing today? 😊
00:46 Tuxedo[Qyou] joined #minetest
00:47 superbarbiegirle joined #minetest
01:02 Cornelia joined #minetest
01:19 Cornelia joined #minetest
01:19 Ruslan1 FennecCode:
01:56 Cornelia joined #minetest
02:14 swift110 joined #minetest
02:15 YuGiOhJCJ joined #minetest
02:18 Cornelia joined #minetest
02:51 sodastab joined #minetest
03:36 Unit193 joined #minetest
04:22 xSmurf joined #minetest
05:31 Ruslan1 joined #minetest
06:03 kurtzmusch joined #minetest
06:48 tune joined #minetest
07:21 amenji2 joined #minetest
07:33 Hirato joined #minetest
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:37 LMD joined #minetest
07:39 YuGiOhJCJ address: yugiohjcj.tk, port: 30000 (UDP)
07:45 tpa_ joined #minetest
08:02 FennecCode left #minetest
08:06 nerzhul joined #minetest
08:17 nerzhul joined #minetest
08:22 nerzhul joined #minetest
08:24 nerzhul joined #minetest
08:26 nerzhul joined #minetest
08:28 nerzhul joined #minetest
08:30 nerzhul joined #minetest
08:33 nerzhul joined #minetest
08:43 ShadowNinja joined #minetest
08:46 proller joined #minetest
09:03 Krock joined #minetest
09:08 proller joined #minetest
09:26 proller joined #minetest
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:03 Volgaar joined #minetest
12:25 Hirato joined #minetest
12:28 Fixer joined #minetest
12:44 YuGiOhJCJ ok as it is already running, I will stop it and start it again to see what happens
13:05 swift110 joined #minetest
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:15 Niwla joined #minetest
13:16 Niwla sofar ?
13:16 catspar_ joined #minetest
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
14:22 Ruslan1 joined #minetest
14:52 nepugia joined #minetest
14:55 Niwla joined #minetest
15:43 cdde joined #minetest
16:17 Soo_Slow joined #minetest
16:58 proller joined #minetest
17:13 catspar joined #minetest
17:13 catspar joined #minetest
17:19 lllI1I joined #minetest
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:22 minduser00 joined #minetest
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 Lunatrius joined #minetest
17:45 lllI1I would the _ be where the ID is going or is the ID only used internally?
17:48 Cornelia joined #minetest
17:48 awell joined #minetest
17:53 Krock <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 Enricoo joined #minetest
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 Cornelia joined #minetest
18:13 Krock put the ID into the data string
18:14 MinetestBot [git] DS-Minetest -> minetest/minetest: Various fixes to lua_api.txt (#8878) 0013f06 https://git.io/fjp8J (2019-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:14 Enricoo joined #minetest
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:28 saintdev joined #minetest
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:34 Fusl joined #minetest
18:37 LMD joined #minetest
18:41 Cornelia joined #minetest
18:42 lllI1I Krock: disregard my request/report it works thanks
18:50 Cornelia joined #minetest
18:55 swift110 joined #minetest
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:20 frostsnow joined #minetest
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:35 Wuzzy joined #minetest
19:35 Cornelia joined #minetest
19:38 Krock ok
19:48 tpa_ joined #minetest
19:50 Soo_Slow joined #minetest
20:01 Player-2 joined #minetest
20:21 Markow joined #minetest
20:47 redneonglow joined #minetest
20:58 nepugia joined #minetest
20:58 Blo0D joined #minetest
21:13 luizsab joined #minetest
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:39 Ruslan1 joined #minetest
21:44 MinetestBot [git] srifqi -> minetest/minetest: 'All Settings': Don't use checkboxes for 'no...' mapgen flags (#7847) cd1d01b https://git.io/fjpBh (2019-09-01T21:43:41Z)
21:46 FennecCode joined #minetest
21:49 nupa joined #minetest
21:50 nupa Hi, can someone please add create a wiki account for me? I'm nupa on the forums as well.
21:50 fluxflux joined #minetest
21:50 fluxflux joined #minetest
22:07 galaxie joined #minetest
22:09 Kray joined #minetest
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:11 fruitsnack joined #minetest
22:12 Fixer_ joined #minetest
22:12 comrad joined #minetest
22:15 Fixer joined #minetest
22:25 luizsab someone?
22:30 nupa luizsab, I'd help but I don't know either, sorry.
22:32 Cornelia joined #minetest
22:33 redneonglow joined #minetest
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:55 nupa joined #minetest
22:55 comrad joined #minetest
22:59 luizsab nupa, I found a manual at mod folder, you are right, I will translate that
23:00 gsbhasin84 joined #minetest
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 comrad joined #minetest
23:01 nupa Does anyone know if we post mod info on the minetest wiki? or is that discouraged
23:04 fluxflux joined #minetest
23:11 comrad joined #minetest
23:27 comrad joined #minetest
23:41 comrad joined #minetest
23:48 comrad joined #minetest
23:55 comrad joined #minetest
23:58 nupa joined #minetest

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