[Mod] Conifers [0.3] [conifers]

User avatar
RandomBot
Member
Posts: 164
Joined: Sun May 20, 2012 03:46
Location: Behind you, go ahead, look....

by RandomBot » Post

poke poke...guess this mod died x.x
"Everyone has a plan, until they get punched in the face"
- Mike Tyson

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

This mod seems to no longer work in current versions of minetest. :-(

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)

leo_rockway
Member
Posts: 211
Joined: Tue Jul 31, 2012 20:37

by leo_rockway » Post

VanessaE wrote:This mod seems to no longer work in current versions of minetest. :-(
I have at least one conifer in my current map and it was generated with latest.
Try Skyblock for MineClone 2
Listen to this sound and music pack!

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

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)

User avatar
sdzen
Member
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Post

it worked on mine as well
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

Dragonop
Member
Posts: 1233
Joined: Tue Oct 23, 2012 12:59
GitHub: Dragonop
IRC: Dragonop
In-game: Dragonop
Location: Argentina

by Dragonop » Post

the screenshots have me ipnotized

Iqualfragile
Member
Posts: 160
Joined: Tue Sep 18, 2012 22:11

by Iqualfragile » Post

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.

User avatar
Plikkar
Member
Posts: 17
Joined: Fri May 18, 2012 14:34

by Plikkar » Post

ho can help me

How can i add me trees toches and item /giveme i dont remember
The GOD OF CRAFTING IS Coming to MINETEST !

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

Plikkar wrote:ho can help me

How can i add me trees toches and item /giveme i dont remember
Singleplayer

/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....)

User avatar
GloopMaster
Member
Posts: 213
Joined: Wed Aug 01, 2012 18:03
Location: http://minetest.net/forum/

by GloopMaster » Post

should use an on_generated, not an abm :P
Meow.

That is all.

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

by sky » Post

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
Location: Earth

by RAPHAEL » Post

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
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

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 (64-512px)

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

by dannydark » Post

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
Location: Earth

by jojoa1997 » Post

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
Location: Australia

by Dopium » Post

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
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

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 (64-512px)

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

by Dopium » Post

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
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

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)

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

by Inocudom » Post

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
Location: Earth

by jojoa1997 » Post

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

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

by Inocudom » Post

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
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

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 (64-512px)

User avatar
sfan5-bot
Member
Posts: 34
Joined: Thu Mar 28, 2013 11:19
Location: /usr/bin/python2.7

by sfan5-bot » Post

[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

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests