Time Nick Message 19:19 MinetestBot 02[git] 04SmallJoker -> 03minetest/minetest: Inventory: Protect Craft and Drop actions (#10353) 130d128ab https://git.io/JUZ7R (152020-09-07T19:19:38Z) 20:35 dievri hello 20:37 dievri I trying to draw a filled circle. But if it's to big, just parts of them a drawn 20:37 MTDiscord <12W​arr1024> you have to sharpen your pencil if it wears down 20:39 dievri I mean, with blocks and math formula 20:40 sfan5 how exactly? 20:41 dievri for zed = -radius, radius do 20:41 dievri for eks = -radius, radius do 20:41 dievri if (eks*eks) + (zed*zed) <= ((radius * radius) + (radius * 1.2)) then 20:41 dievri minetest.set_node({x = x + eks, y = y, z = z + zed}, {name="default:dirt"}) 20:41 dievri end 20:41 dievri end 20:41 dievri end 20:41 MTDiscord <12W​arr1024> what kinda radius are we talking here? 20:41 MTDiscord <12W​arr1024> like, 10? 100? 1000? 20:42 MTDiscord <12W​arr1024> if you try to set_node outside of the loaded areas then it won't work 20:42 dievri up to 100, various 20:42 MTDiscord <12W​arr1024> 100 radius is probably large enough to hit unloaded areas 20:43 dievri than, what should I do? 20:43 MTDiscord <12W​arr1024> you can detect unloaded areas because they have "ignore" nodes in them even though they're not past mapgen_limit 20:43 sfan5 althought more complicated, try using a vmanip 20:43 MTDiscord <12W​arr1024> you basically have to wait and then fill those areas once loaded 20:43 MTDiscord <12W​arr1024> you can try to force-emerge them but that doesn't stop you from having to wait, I'm pretty sure 20:43 MTDiscord <12W​arr1024> AND it can probably bog things down a lot 20:44 MTDiscord <12W​arr1024> is this going to be based on some kind of in-game event or do you want circles filled right at map generation time? 20:44 MTDiscord <12W​arr1024> doing this as lua mapgen seems like a sane way to do it. 20:44 MTDiscord <12W​arr1024> if not, like if you have a "circle drawer tool" that draws a huge circle when you use it, you'll have to find a way to store any cicles you couldn't complete, and check them when mapblocks are loaded 20:45 MTDiscord <12W​arr1024> I don't know of a way to detect when a mapblock is loaded. There are Loaded Block Modifiers, but unlike the name suggests, they work on NODES, not mapblocks 20:45 dievri circles with be created by chat command 20:45 MTDiscord <12W​arr1024> so you need to be certain that there's at least one of a certain node inside each mapblock to be affected, and then any duplication would be at least a little inefficient. 20:46 MTDiscord <12W​arr1024> congrats, I feel like you've got yourself a Hard Problem :-) 20:46 MTDiscord <12W​arr1024> you can detect mapblocks being loaded by polling, if you have a list of all mapblocks that you need to modify 20:50 specing just draw the circle, then turn on fast, noclip and fly and run around it 20:50 specing then draw again 20:50 specing problem=solved 20:51 dievri how can I get a list of all mapblocks that I need to modify? 20:53 MTDiscord <12W​arr1024> you just need to know 1 node position for each mapblock to test for ignores. mapblocks are 16x16x16, and it doesn't particularly matter which node you test, it'll be all or nothing 20:54 MTDiscord <12W​arr1024> It is basically not possible to instantly fill in a space that's larger than the loaded area, so you'll have to do it piece at a time. It should be possible to make it happen automatically once you've issued the command, though it might not be particularly fast. 20:55 MTDiscord <12W​arr1024> The ony alternative that I know, that would make it happen "instantly" from an in-game perspective, would be to shut down the server and modify the database directly. 20:56 dievri Right now things look complicated for me :0, so I need to brake them down bit by bit 21:09 MTDiscord <12W​arr1024> easiest thing to do is before filling the circle, check and make sure there are no ignores in its area, and if you find any, reject the command and tell the player "radius too large, try something smaller" 21:10 MTDiscord <12W​arr1024> then you just need to do the detection part, not the queueing part 21:10 MTDiscord <12W​arr1024> see how ambitious you feel after having done that... 21:11 dievri right now, the circle is not being fully drawn even If I fly around 21:24 MTDiscord <12W​arr1024> That's right. It's because at the time you try to draw it, some areas are not loaded and thus can't be modified, and you're only trying the one time, so if it partially fails, you aren't retrying it later when those parts could succeed. 23:44 Darkwar hello i making a new server and once i upload i want advertises it but idk where and anwers? 23:45 Emerald2 Minetest forum topic for starters.