Time |
Nick |
Message |
01:01 |
|
LazyJ joined #minetest |
02:42 |
|
NathanS21 joined #minetest |
03:15 |
|
Conradish006 joined #minetest |
04:01 |
|
Taoki joined #minetest |
05:59 |
|
mizux joined #minetest |
06:19 |
|
TomTom joined #minetest |
07:06 |
|
stiell joined #minetest |
07:24 |
|
FeXoR joined #minetest |
07:45 |
|
bingfengfsx joined #minetest |
08:00 |
|
ShadowNinja joined #minetest |
08:02 |
|
Scarecrow joined #minetest |
08:10 |
|
bingfengfsx joined #minetest |
08:13 |
|
macc24 joined #minetest |
08:38 |
|
milkt joined #minetest |
08:50 |
|
calcul0n joined #minetest |
09:07 |
|
proller joined #minetest |
09:45 |
|
calcul0n_ joined #minetest |
10:27 |
|
Fixer joined #minetest |
10:53 |
|
minduser00 joined #minetest |
11:02 |
|
macc24 joined #minetest |
11:08 |
|
Flabb joined #minetest |
12:21 |
|
majochup joined #minetest |
12:52 |
|
milkt joined #minetest |
12:59 |
|
FreeFull joined #minetest |
14:05 |
|
newbie joined #minetest |
14:48 |
|
Verticen joined #minetest |
15:44 |
|
Shara_ joined #minetest |
15:45 |
|
stiell joined #minetest |
16:01 |
|
kamdard joined #minetest |
16:06 |
|
vormgear joined #minetest |
16:12 |
|
Talkless joined #minetest |
16:22 |
|
macc24 joined #minetest |
16:22 |
|
macc24 joined #minetest |
16:30 |
|
Taoki joined #minetest |
16:34 |
|
twoelk left #minetest |
17:05 |
|
Jordach joined #minetest |
17:28 |
|
homthack joined #minetest |
17:36 |
|
Menchers joined #minetest |
17:36 |
|
macc24 joined #minetest |
17:42 |
|
FeXoR joined #minetest |
18:12 |
|
milkt joined #minetest |
19:19 |
MinetestBot |
[git] SmallJoker -> minetest/minetest: Inventory: Protect Craft and Drop actions (#10353) 0d128ab https://git.io/JUZ7R (2020-09-07T19:19:38Z) |
19:22 |
|
Boingo joined #minetest |
19:25 |
|
Pentium44 joined #minetest |
19:26 |
|
Pie-jacker875 joined #minetest |
19:37 |
|
Darkwar joined #minetest |
20:08 |
|
fluxflux joined #minetest |
20:35 |
|
dievri joined #minetest |
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 |
<Warr1024> 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 |
<Warr1024> what kinda radius are we talking here? |
20:41 |
MTDiscord |
<Warr1024> like, 10? 100? 1000? |
20:42 |
MTDiscord |
<Warr1024> 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 |
<Warr1024> 100 radius is probably large enough to hit unloaded areas |
20:43 |
dievri |
than, what should I do? |
20:43 |
MTDiscord |
<Warr1024> 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 |
<Warr1024> you basically have to wait and then fill those areas once loaded |
20:43 |
MTDiscord |
<Warr1024> you can try to force-emerge them but that doesn't stop you from having to wait, I'm pretty sure |
20:43 |
MTDiscord |
<Warr1024> AND it can probably bog things down a lot |
20:44 |
MTDiscord |
<Warr1024> 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 |
<Warr1024> doing this as lua mapgen seems like a sane way to do it. |
20:44 |
MTDiscord |
<Warr1024> 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 |
<Warr1024> 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 |
<Warr1024> 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 |
<Warr1024> congrats, I feel like you've got yourself a Hard Problem :-) |
20:46 |
MTDiscord |
<Warr1024> 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 |
<Warr1024> 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 |
<Warr1024> 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 |
<Warr1024> 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:04 |
|
testman5 joined #minetest |
21:09 |
|
_Zaizen_ joined #minetest |
21:09 |
MTDiscord |
<Warr1024> 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 |
<Warr1024> then you just need to do the detection part, not the queueing part |
21:10 |
MTDiscord |
<Warr1024> 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 |
<Warr1024> 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. |
21:31 |
|
Lone_Wolf joined #minetest |
21:34 |
|
Boingo joined #minetest |
22:08 |
|
Thermoriax joined #minetest |
22:10 |
|
Hawk777 joined #minetest |
22:10 |
|
Verticen joined #minetest |
22:26 |
|
arthureroberer joined #minetest |
22:29 |
|
homthack joined #minetest |
22:33 |
|
Hawk777 joined #minetest |
22:39 |
|
rcmaehl joined #minetest |
23:19 |
|
Hawk777 joined #minetest |
23:21 |
|
Fixer joined #minetest |
23:24 |
|
submariner joined #minetest |
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. |
23:53 |
|
TGS2 joined #minetest |
23:54 |
|
Xorkle_ joined #minetest |