Time Nick Message 00:44 dzho cheapie: heh, that's pretty awesome 00:50 Mantar are you using some kind of voxel area entity arrangement? 01:35 cheapie Mantar: Abusing the celevator.drives.entity.nodestoentities() function from celevator, via two command blocks triggered by a Luacontroller. 01:38 cheapie Specifically it's feeding the relevant positions into that, which handles removing the nodes and spawning new entities in the same place that look like the nodes. The command block code then sets the velocity of these entities, then after a certain time it deletes them and places a schematic I saved earlier (containing all of the nodes that were moving). 01:39 cheapie The Luacontroller handles sending the digilines signals (for the bells, warning gates, traffic signals, blank-out signs, and resistance gate pistons) itself, as well as providing the necessary interlocking to prevent it from trying to raise and lower at the same time. 01:40 cheapie Normally celevator.drives.entity.nodestoentities() would be used to convert the elevator car in celevator into entities so it can move, but it'll at least attempt to work with any nodes it's given. 04:41 cheapie Speaking of celevator, destination-based dispatching works now :D https://cheapiesystems.com/media/2024-05-31%2023-09-56.webm 14:36 MinetestBot 02[git] 04appgurueu -> 03minetest/minetest: Fix fog moon tint not working 13a4768d1 https://github.com/minetest/minetest/commit/a4768d163804d6e0ca5616dd4639fd510c53933f (152024-06-01T14:34:32Z) 14:38 MinetestBot 02[git] 04sfence -> 03minetest/minetest: Allow game to specify first and last mod in mod loading order (#14177) 13140b9e5 https://github.com/minetest/minetest/commit/140b9e5a5a40476659cad689621fc01e8b1182b1 (152024-06-01T14:36:20Z) 15:03 MinetestBot 02[git] 04grorp -> 03minetest/minetest: Mainmenu: Unify gamedata.errormessage and messagebox formspecs (#14716) 13981d673 https://github.com/minetest/minetest/commit/981d67324b5f8a63c4187195494910d4a21f9de4 (152024-06-01T15:03:06Z) 16:18 shaft How do you convert table format to .mts? I need it to fix the cactus since nobody else is willing to do it 16:23 MTDiscord shaft: write the result of minetest.serialize_schematic to a file. the schematic specifier should be found in the file sfan5 linked you, you just have to change the param2 value. 16:24 MTDiscord "nobody else is willing to do it" is a false assumption btw. the correct version would be "nobody else has it as a priority right now, since it's a minor issue and just about anyone can fix it"; in fact i was considering fixing it just today, but am currently doing some engine work. 16:25 MTDiscord i'm always glad when these kinds of things get picked up by someone else :) 16:28 shaft How do I do that with //lua? 16:29 MTDiscord i'd put this in a mod file since it's gonna be a couple lines 16:30 shaft Is there a function that saves to a file other than the lua one? 16:30 shaft The standard library one 16:30 MTDiscord you need to copy the code from https://github.com/minetest/minetest_game/blob/3ad8a6a473afcdfccdc675fd4eb771f9a9d4897d/schematic_tables.txt#L2048C1-L2098C3. you can then implement mts_save yourself in terms of minetest.safe_file_write and minetest.serialize_schematic. 16:43 shaft /lua local C = {name = "default:cactus", prob = 255} local R = {name = "default:cactus", prob = 255, force_place = true} local E = {name = "default:cactus", prob = 127} minetest.safe_file_write("/home/nutzer/.minetest/worlds/ethereal4/schems/large_cactus.mts",minetest.serialize_schematic("large_cactus", { size = {x = 5, y = 7, z = 5}, data = { _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, 16:43 shaft _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, C, _, _, _, _, R, _, _, _, _, C, _, _, C, C, C, C, C, C, _, C, _, C, E, _, C, _, E, _, _, C, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, 16:43 shaft _, _, _, }, yslice_prob = { {ypos = 2, prob = 127}, }, })) 16:43 shaft Where did I index a nil value? Chat errors are so unhelpful 16:44 Niklp Hi, is there a reason why `minetest.get_node_light()` isn't available in the async mapgen env? 16:47 ireallyhateirc I think that function can only be used after chunk gets generated 16:47 ireallyhateirc you can read light data in the voxel manipulator though 16:48 ireallyhateirc the "reason" is probably that anything that's not thread-safe was excluded from the env 16:49 ireallyhateirc use VoxelManip:get_light_data() instead 16:53 MTDiscord shaft: you need to pass "mts" and probably an empty "options" table, judging by the docs. note that "attempt to index a nil value" errors need not be in your script - they can also be in the engine. 18:02 shaft NEVER USE INKSCAPE FILTERS GUYS. They are entirely raster based and introduce weird white artifacts on the edges and cause ugly stepped gradients. I just had to redo the coloring of an item by hand because the colorize filter from inkscape is so retarded. 18:06 ireallyhateirc will remember, thanks 18:54 Niklp Thanks ireallyhateirc seems to work:) 20:24 shaft Okay, I was able to make a 6 KB schematic file with //lua but for some reason it turned out to invalid when trying to place it 20:27 shaft /lua do local _ = {name = "air", prob = 0} local C = {name = "default:cactus", prob = 255} local R = {name = "default:cactus", prob = 255, force_place = true} local E = {name = "default:cactus", prob = 127} minetest.safe_file_write(PATH,TABLE,"lua",{})) end 20:27 shaft Table is the same as I just posted 20:28 shaft ups I shortened it too much 20:32 shaft I've done it. format specifier was the format I want to encode to not the format it's in. Command I used: 20:32 shaft /lua do local _ = {name = "air", prob = 0} local C = {name = "default:cactus", prob = 255} local R = {name = "default:cactus", prob = 255, force_place = true} local E = {name = "default:cactus", prob = 127} minetest.safe_file_write("PATH",minetest.serialize_schematic(SCHEM,"mts",{})) end 20:39 shaft https://github.com/minetest/minetest_game/pull/3123 20:53 shaft btw Krock the week is over you can merge now https://github.com/minetest-mods/mesecons/pull/669