Time |
Nick |
Message |
00:35 |
|
ecube joined #minetest-mods |
01:52 |
|
Someguy123 joined #minetest-mods |
04:35 |
|
marktraceur joined #minetest-mods |
08:04 |
|
marktraceur joined #minetest-mods |
08:10 |
|
Someguy123 joined #minetest-mods |
08:15 |
|
Someguy123 joined #minetest-mods |
09:49 |
|
thexyz joined #minetest-mods |
10:26 |
|
thexyz joined #minetest-mods |
12:26 |
|
thexyz joined #minetest-mods |
15:05 |
|
jordach joined #minetest-mods |
15:58 |
|
marktraceur joined #minetest-mods |
16:11 |
|
NakedFury joined #minetest-mods |
16:36 |
|
triplei joined #minetest-mods |
17:20 |
|
khonkhortisan joined #minetest-mods |
17:21 |
khonkhortisan |
reasking the question: how do I get the facedir out of a node? (I'm trying to add grass to my dirt nodebox) |
17:21 |
NakedFury |
you want for the block to face the character? |
17:21 |
thexyz |
khonkhortisan: facedir is node's param2 |
17:21 |
khonkhortisan |
I'm replacing a dirt_slant with a dirt_slant_with_grass and I don't want it to turn in the process |
17:22 |
NakedFury |
paramtype2 = "facedir", |
17:22 |
thexyz |
you can specify it in add_node like this {name="mod:node", param2=old_node.param2} |
17:22 |
marktraceur |
khonkhortisan: I'd guess you could just transfer the old param2 to the new node |
17:22 |
marktraceur |
Augh, texyz got me |
17:22 |
marktraceur |
thexyz* |
17:23 |
khonkhortisan |
thanks, that worked |
17:27 |
marktraceur |
khonkhortisan: Glad to hear it, hope to see your mod soon! :) |
17:28 |
khonkhortisan |
it might come with a patch |
17:39 |
|
thexyz joined #minetest-mods |
18:07 |
|
thexyz joined #minetest-mods |
18:12 |
khonkhortisan |
Is minetest.register_abm only able to change a block once? |
18:12 |
thexyz |
what do you mean by "change a block once"? |
18:13 |
sfan5 |
you cqan use multiple minetest.add_node calls in an abm action |
18:14 |
khonkhortisan |
it changes dirt to a cornerpiece, then when I place dirt next to it, it should change the cornerpiece to an edgepiece. But I have to dig the cornerpiece and replace the dirt for it to turn into an edgepiece |
18:15 |
khonkhortisan |
it's only going dirt->corner and corner->edge, not dirt->corner->edge |
18:18 |
thexyz |
why are you using ABMs for this? |
18:18 |
khonkhortisan |
I want to smooth the ground |
18:18 |
thexyz |
what do you want to make? |
18:18 |
thexyz |
how is ABM related to that? |
18:19 |
thexyz |
why not use register_on_place/register_on_dig? |
18:22 |
khonkhortisan |
can I combine on_place and on_generated? |
18:22 |
sfan5 |
what do you mean by combine? |
18:23 |
thexyz |
khonkhortisan: just run loop through all generated nodes in on_generated |
18:24 |
khonkhortisan |
nevermind on the combine |
18:37 |
khonkhortisan |
register_on_generated() doesn't work until about 30 blocks from the initial spawn point |
18:37 |
thexyz |
? |
18:44 |
khonkhortisan |
On this new map, register_on_generated() works, from the spawn point, 3 blocks away in the +x and 49 blocks away in the +z (-x and -z are water so I can't tell) and not a block closer |
18:45 |
thexyz |
ummm... |
18:45 |
thexyz |
read. the. docs. |
18:45 |
khonkhortisan |
I spawned ot (-35,3,1) |
18:45 |
marktraceur |
khonkhortisan: Do you mean *nodes* or *blocks*? |
18:45 |
thexyz |
minetest.register_on_generated(func(minp, maxp, blockseed)) |
18:45 |
thexyz |
you should only access nodes that are between minp and maxp |
18:46 |
khonkhortisan |
minetest.register_on_generated(function(minp, maxp)) |
18:46 |
khonkhortisan |
oh so I should subtract one because I'm checking one block over |
18:47 |
marktraceur |
khonkhortisan: What possible use could there be for checking something a block away? |
18:48 |
khonkhortisan |
I need that to tell which type of slanted block to replace the dirt with: slant, vertical slant, in corner, out corner, upside-down blocks |
18:49 |
khonkhortisan |
now I'm iterating xyz with "for x = minp.x+1,maxp.x-1 do" but it still only works outside a radius from the spawn point |
18:49 |
marktraceur |
khonkhortisan: You mean NODE. Read the docs. |
18:50 |
khonkhortisan |
which doc? |
18:50 |
marktraceur |
All of them, of course |
18:50 |
marktraceur |
I'll find the relevant one |
18:51 |
khonkhortisan |
so node possibly contains block |
18:51 |
khonkhortisan |
I should change my variable names |
18:51 |
marktraceur |
khonkhortisan: http://minetest.net/wiki/doku.php?id=code:data_structures |
18:53 |
khonkhortisan |
then what I really mean to say is on_generated isn't working in the closest BLOCK (or two) |
18:57 |
khonkhortisan |
I can walk in a straight line with smoothed cubes on one side and unsmoothed cubes on the other |
18:59 |
khonkhortisan |
I just found a two-cube unsmoothed line in the middle of smoothness |
19:02 |
khonkhortisan |
register_abm actually works on every block, unlike register_on_generated, which can skip sections |
19:02 |
khonkhortisan |
that's why I was using it |
19:03 |
marktraceur |
khonkhortisan: Care to post code? Might be helpful. |
19:03 |
thexyz |
khonkhortisan: it can't skip sections |
19:03 |
thexyz |
that's your design issue, i guess |
19:03 |
khonkhortisan |
just the init.lua or should I make a package? |
19:04 |
thexyz |
just post it using some pastebin service |
19:04 |
marktraceur |
khonkhortisan: If you can put it on a code hosting site that would be best, my suggestion is gitorious.org, but others will suggest github.com |
19:04 |
marktraceur |
If it's one file, init.lua would suffice |
19:07 |
khonkhortisan |
generate a new map file for this http://pastebin.com/CqyXvfJd and spawn in a forest biome |
19:07 |
khonkhortisan |
(or mountain or plain) just not desert/water |
19:09 |
khonkhortisan |
Do you see how it doesn't smooth until a ways out from the spawn point? |
19:09 |
marktraceur |
khonkhortisan: Well, going from minp+1 to maxp-1 will definitely cause a 2-node break in your intended effect |
19:09 |
marktraceur |
So you should probably fix that |
19:10 |
khonkhortisan |
sorry that is my fault |
19:10 |
khonkhortisan |
but there are missing sections also |
19:11 |
marktraceur |
khonkhortisan: Can you add debug info to tell where the minp and maxp of each on_generated call are? Figure out if that on_generated call is actually firing for your spawn point, if it's not then that's the problem. |
19:11 |
thexyz |
why do you all print "\n\n[smoothground] Mod loaded!\n\n" ? |
19:12 |
khonkhortisan |
so I can see it when it scrolls by, I'll remove the \n's |
19:12 |
thexyz |
i think there is no point in printing anything |
19:12 |
thexyz |
except while debugging |
19:13 |
khonkhortisan |
other mods do that |
19:13 |
khonkhortisan |
I'll remove it altogether then |
19:13 |
marktraceur |
khonkhortisan: A lot of modders have little idea what they're doing :P |
19:13 |
marktraceur |
"Oh man I can make my name appear on the screen" |
19:14 |
marktraceur |
Exciting for the neanderthal modder, but not necessary |
19:14 |
khonkhortisan |
dig water -> change window title |
19:14 |
khonkhortisan |
there are a lot of connections that don't make sense |
19:33 |
khonkhortisan |
http://pastebin.com/JDZZ0cky |
19:35 |
khonkhortisan |
I am getting the generated notice, time for more debugging! |
19:50 |
khonkhortisan |
I'm out of indices anyway |
19:58 |
khonkhortisan |
I just remembered I need two passes for corner_in to work right, I can't use on_generated |
19:58 |
thexyz |
why can't you do two passes inside on_generated? |
19:59 |
khonkhortisan |
okay I'll be quiet now |
20:35 |
jordach |
night |
20:56 |
|
NakedFury joined #minetest-mods |