Page 1 of 1

questions about singlenode mapgen

PostPosted: Sun Feb 01, 2015 16:49
by RHR
1) How long are nodes like sand or dropped items falling in singlenode mapgen? Infinite or are they removed after a certain time?
2) How far does flowing water/lava fall? Infinite?
3) Is there a diffence between air nodes and other nodes if they get saved?

Re: questions about singlenode mapgen

PostPosted: Sun Feb 01, 2015 16:56
by Krock
RHR wrote:1) How long are nodes like sand or dropped items falling in singlenode mapgen? Infinite or are they removed after a certain time?
2) How far does flowing water/lava fall? Infinite?
3) Is there a diffence between air nodes and other nodes if they get saved?

1) https://github.com/minetest/minetest/bl ... ty.lua#L16
2) Until it reaches the ground; maximal 64k nodes
3) air is saved - ignore isn't

Re: questions about singlenode mapgen

PostPosted: Sun Feb 01, 2015 16:58
by RHR
thx that was fast :D
@3) what is the difference of air and ignore?

Re: questions about singlenode mapgen

PostPosted: Sun Feb 01, 2015 17:00
by Krock
RHR wrote:thx that was fast :D
@3) what is the difference of air and ignore?

@3) you can walk through air and replace it with another node. ignore is solid and used to stop you walking into not loaded areas

Re: questions about singlenode mapgen

PostPosted: Sun Feb 01, 2015 17:02
by RHR
Ok! Thank you very much! :)

Re: questions about singlenode mapgen

PostPosted: Thu Feb 05, 2015 05:21
by TG-MyinaWD
I have questions about singlenode myself.

Why do nyan cats spawn for? Isn't it supposed be nothing? and why some areas are darker then others?

That all I got really.

Re: questions about singlenode mapgen

PostPosted: Thu Feb 05, 2015 05:48
by Wuzzy
Nyan Cats are spawned by the mod “default” of minetest_game, not by the map generator itself.

I cannot answer the other question. Maybe because of a bug? lol

Re: questions about singlenode mapgen

PostPosted: Thu Feb 05, 2015 08:54
by paramat
Cats are spawned because they're cool, and transcend all dimensions.

Re: questions about singlenode mapgen

PostPosted: Sat Feb 07, 2015 20:23
by Hybrid Dog
And it's not possible to trace the meows of the mapgen by overriding default.make_nyancat. l tried it and still don't know the reason.

Re: questions about singlenode mapgen

PostPosted: Thu Feb 19, 2015 12:53
by RHR
Another question:
Is is possible to force the mapgen/game not to replace ignore nodes with air? In other words: Is it possible to force a area to keep unloaded like the sky above the cloud layer?

Re: questions about singlenode mapgen

PostPosted: Thu Feb 19, 2015 16:57
by Krock
Once an area is generated, it doesn't matter how it's filled.
The sky above cloud layer is loaded like any other block.
You can use a new function to delete a specific mapblock
https://github.com/minetest/minetest/bl ... s.lua#L406

Re: questions about singlenode mapgen

PostPosted: Thu Feb 19, 2015 17:43
by Wuzzy
Krock wrote:
RHR wrote:1) How long are nodes like sand or dropped items falling in singlenode mapgen? Infinite or are they removed after a certain time?

1) https://github.com/minetest/minetest/bl ... ty.lua#L16

Doesn't item_entity_ttl only limit the time for item entities only? So I guess this does not apply to falling nodes, because they are not item entities. Right?

Re: questions about singlenode mapgen

PostPosted: Thu Feb 19, 2015 17:52
by Krock
Wuzzy wrote:Doesn't item_entity_ttl only limit the time for item entities only? So I guess this does not apply to falling nodes, because they are not item entities. Right?

I thought he meant dropped stacks which fall down.
It would require an addition of 4 - 8 lines of code to add a maximal age for falling nodes.