[Mod] Conifers [0.3] [conifers]

sky
Member
 
Posts: 152
Joined: Tue Oct 16, 2012 11:59

by sky » Sat Nov 10, 2012 15:58

i have a idea to upgrade this mod :the idea is different wood plank colour
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09

by RAPHAEL » Thu Dec 06, 2012 10:40

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)
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Sat Dec 29, 2012 22:33

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. :-)
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
dannydark
Member
 
Posts: 428
Joined: Fri Aug 12, 2011 21:28

by dannydark » Sun Dec 30, 2012 15:11

It would be nice to see this mod updated to use the new L-System treegen.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Sun Dec 30, 2012 15:46

dannydark wrote:It would be nice to see this mod updated to use the new L-System treegen.

but aren't conifers straight
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
Dopium
Member
 
Posts: 233
Joined: Sat Jun 09, 2012 15:43

by Dopium » Sun Dec 30, 2012 17:58

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!
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Sun Dec 30, 2012 19:30

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.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
Dopium
Member
 
Posts: 233
Joined: Sat Jun 09, 2012 15:43

by Dopium » Mon Dec 31, 2012 06:32

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
Running @1.19 MHz, 128 bytes of RAM and interchangeable 4kb ROM carts!
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Wed Jan 02, 2013 17:24

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.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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 (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Wed Jan 02, 2013 18:26

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.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Wed Jan 02, 2013 18:44

But conifers should be straight.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Wed Jan 02, 2013 19:23

jojoa1997 wrote:But conifers should be straight.


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.
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Thu Jan 10, 2013 03:05

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.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
sfan5-bot
Member
 
Posts: 35
Joined: Thu Mar 28, 2013 11:19

by sfan5-bot » Thu Mar 28, 2013 16:43

[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
 

Previous

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 14 guests

cron