[Mod] Conifers [0.3] [conifers]
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
This mod seems to no longer work in current versions of minetest. :-(
EDIT: obviously I'm wrong, it works fine. :-)
EDIT: obviously I'm wrong, it works fine. :-)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
-
- Member
- Posts: 211
- Joined: Tue Jul 31, 2012 20:37
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
Odd, I couldn't get them to generate at all (turned the altitude down to 20 just to be sure)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
it worked on mine as well
Edit: Bring it Back!
Edit: Bring it Back!
Last edited by sdzen on Thu Aug 09, 2012 12:33, edited 1 time in total.
Zen S.D.
The next generation of tranquility!malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
-
- Member
- Posts: 160
- Joined: Tue Sep 18, 2012 22:11
can you put this on github please? it would be much easier to update
Gr8 b8, m8. I rel8, str8 appreci8, and congratul8. I r8 this b8 an 8/8. Plz no h8, I'm str8 ir8. Cr8 more, can't w8. We should convers8, I won't ber8, my number is 8888888, ask for N8. No calls l8 or out of st8. If on a d8, ask K8 to loc8. Even with a full pl8, I always have time to communic8 so don't hesit8.
SingleplayerPlikkar wrote:ho can help me
How can i add me trees toches and item /giveme i dont remember
/privs to see if your player has already give (Should be normally)
/giveme modname:itemname number
/giveme default:tree 99
/giveme default:torche -1
/giveme homedecor:television 2
/giveme moreblocks:circlestonebrick 99
Advanced
/give Plikkar default:tree -1 (etc....)
- GloopMaster
- Member
- Posts: 213
- Joined: Wed Aug 01, 2012 18:03
- Location: http://minetest.net/forum/
I would be interested in this mod being updated but don't know how to myself.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
I've been working on some updates to this mod:
Download: https://github.com/VanessaE/conifers/archive/master.zip
...or browse the code: https://github.com/VanessaE/conifers
Mainly I did this to reduce the CPU usage and slow down the growth of the trees, plus my fork depends on my plantlife library to control where and how the saplings are spawned. I also tried to fix a bug where sometimes the conifers would replace the nodes around them. In this fork, the default spawn altitude is 25m instead of 30, and the spawning and growing ABMs have been given separate config variables.
For now, use the commit messages and read the code to understand what I changed. :-)
Download: https://github.com/VanessaE/conifers/archive/master.zip
...or browse the code: https://github.com/VanessaE/conifers
Mainly I did this to reduce the CPU usage and slow down the growth of the trees, plus my fork depends on my plantlife library to control where and how the saplings are spawned. I also tried to fix a bug where sometimes the conifers would replace the nodes around them. In this fork, the default spawn altitude is 25m instead of 30, and the spawning and growing ABMs have been given separate config variables.
For now, use the commit messages and read the code to understand what I changed. :-)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
Some reason i get huge lag with this mod and most my other normal trees turn black. The lag im talking about is without the mod 45-60fps steady, with the mod installed 5-15fps. For me even 15fps is unplayable, its a shame as i really like the mod and waited along time till this was made. I have played with the lua for about the past 6 months or so but nothing helped, also sure its something clashing i just dont know what it is yet.
Running @1.19 MHz, 128 bytes of RAM and interchangeable 4kb ROM carts!
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
Low FPS is not the same as lag; your problem is different from that. There is a known bug in the engine where very large trees (or lots of them) can cause the engine to start throwing tons of "out of indexes", "rendering errors may occur" errors, which will slow your FPS to a crawl; if that's what's happening to you, a solution should be coming soon.
That said, with the old version of this mod, actual lag (as in the server appears to hang briefly) does happen as the trees are generated, which is what my fork hopes to solve temporarily. I or RealBadAngel will be adding the code needed to make Conifers use the L-Systems trees soon, which will solve that issue for good.
As for black trees, that's an engine bug that has existed for quite a long time now, and is unrelated to conifers.
That said, with the old version of this mod, actual lag (as in the server appears to hang briefly) does happen as the trees are generated, which is what my fork hopes to solve temporarily. I or RealBadAngel will be adding the code needed to make Conifers use the L-Systems trees soon, which will solve that issue for good.
As for black trees, that's an engine bug that has existed for quite a long time now, and is unrelated to conifers.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
Thanks for the info VanessaE, you are correct with my first problem i do get fps spikes and with this mod installs the spikes come to a crawl. I actually didnt mean server lag just fps drop that makes it very choppy and sluggish, i know its this mod because when i remove it the frames jump right up. Good to know you guys are aware of what i was saying and making fixes.
The black trees im do see them without the mod however they are very rare, but same deal as the fps drop as soon as i install this mod just about every tree is black. Im going to be installing Linux soon anyway, one reason is for this game as i seen in the past people say windows version can be a bit buggy. Thanks again for the help
The black trees im do see them without the mod however they are very rare, but same deal as the fps drop as soon as i install this mod just about every tree is black. Im going to be installing Linux soon anyway, one reason is for this game as i seen in the past people say windows version can be a bit buggy. Thanks again for the help
Running @1.19 MHz, 128 bytes of RAM and interchangeable 4kb ROM carts!
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
The following code will generate several random conifers using the new L-Systems generator. Make a mod of this code plus the conifers textures, give yourself the conifers spawner object, then strike the ground with it (thanks to RealBadAngel for the example for the spawner). Stick to low elevations when testing, there's a bug in the generator that causes the tops to get cut off (it will be fixed soon). I tried to model these after the originals, but I didn't put as much detail into them as they could have had.
Code: Select all
conifer_tree1={
axiom="FFFAF[&&-F][&&+F][&&---F][&&+++F]FF",
rules_a="FF[FF][&&-FBF][&&+FBF][&&---FBF][&&+++FBF]F/A",
rules_b="[-FB][+FB]",
trunk="conifers:trunk",
leaves="conifers:leaves",
angle=45,
iterations=7,
random_level=4,
thin_trunks=true
}
conifer_tree2={
axiom="FFFAF[&&-F][&&+F][&&---F][&&+++F]FF",
rules_a="FF[FF][&&-FBF][&&+FBF][&&---FBF][&&+++FBF]F/A",
rules_b="[-FB][+FB]",
trunk="conifers:trunk",
leaves="conifers:leaves_special",
angle=45,
iterations=7,
random_level=4,
thin_trunks=true
}
minetest.register_craftitem("treetest:conifer", {
description = "Conifer tree spawner",
inventory_image = "default_stick.png",
on_use = function(itemstack, user, pointed_thing)
--print(dump(pointed_thing))
if pointed_thing.type == "node" then
local pos = pointed_thing.above
if math.random(1, 2) > 1.5 then
minetest.env:spawn_tree(pos,conifer_tree1)
else
minetest.env:spawn_tree(pos,conifer_tree2)
end
end
end,
})
minetest.register_node(":conifers:trunk", {
description = "Conifer trunk",
tile_images = {
"conifers_trunktop.png",
"conifers_trunktop.png",
"conifers_trunk.png",
"conifers_trunk.png",
"conifers_trunk.png",
"conifers_trunk.png"
},
paramtype = "facedir_simple",
is_ground_content = true,
groups = {
tree = 1,
snappy = 2,
choppy = 2,
oddly_breakable_by_hand = 1,
flammable = 2
},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node(":conifers:leaves", {
description = "Conifer leaves",
drawtype = "allfaces_optional",
visual_scale = 1.3,
tile_images = { "conifers_leaves.png" },
paramtype = "light",
groups = {
snappy = 3,
leafdecay = 3,
flammable = 2
},
drop = {
max_items = 1,
items = {
{
-- player will get sapling with 1/20 chance
items = {'conifers:sapling'},
rarity = 20,
},
{
-- player will get leaves only if he get no saplings,
-- this is because max_items is 1
items = {'conifers:leaves'},
}
}
},
sounds = default.node_sound_leaves_defaults()
})
minetest.register_node(":conifers:leaves_special", {
description = "Bright conifer leaves",
drawtype = "allfaces_optional",
visual_scale = 1.3,
tile_images = { "conifers_leaves_special.png" },
paramtype = "light",
groups = {
snappy = 3,
leafdecay = 3,
flammable = 2
},
drop = {
max_items = 1,
items = {
{
-- player will get sapling with 1/20 chance
items = {'conifers:sapling'},
rarity = 20,
},
{
-- player will get leaves only if he get no saplings,
-- this is because max_items is 1
items = {'conifers:leaves'},
}
}
},
sounds = default.node_sound_leaves_defaults()
})
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
I too recommend the usage of the new L-Systems tree generator. You can give your trees branches with it.
Last edited by Inocudom on Wed Jan 02, 2013 18:27, edited 1 time in total.
[BitChute: https://www.bitchute.com/channel/fCcBQxrYQjNX/] [Rumble: https://rumble.com/user/HPoorHMagentaHChildH]
That is true, but there could be a few branches in the rows of pine needles. These rows could be one block long and made up of the horizontal conifer trunk blocks.jojoa1997 wrote:But conifers should be straight.
[BitChute: https://www.bitchute.com/channel/fCcBQxrYQjNX/] [Rumble: https://rumble.com/user/HPoorHMagentaHChildH]
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
I've re-implemented this mod in my moretrees mod:
http://minetest.net/forum/viewtopic.php?id=4394
The output isn't *quite* as varied as the original conifers mod, but it's close, and of course it can be improved easily. Uses L-System trees, so you need a MT build dated 2013-01-08 or later. Uses my plantlife mod to create the spawn biomes.
http://minetest.net/forum/viewtopic.php?id=4394
The output isn't *quite* as varied as the original conifers mod, but it's close, and of course it can be improved easily. Uses L-System trees, so you need a MT build dated 2013-01-08 or later. Uses my plantlife mod to create the spawn biomes.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
[EE] No Dependencies found
Please fix these Mistakes and report this post, a moderator will delete it
If you believe I have made a Mistake contact sfan5
Please fix these Mistakes and report this post, a moderator will delete it
If you believe I have made a Mistake contact sfan5
My source code: gist.github.com/sfan5/4642453
Who is online
Users browsing this forum: No registered users and 69 guests