Tree Module Information on Usage & Sample Copse DefinitionsPrepared by WhiteStar Magic @ OSGrid Tested on Version: OpenSim 0.7.x DEV 80f9022-r/14257Date Tested: October-25-2010As of this Date, it is confirmed that the Tree Module does NOT Work on Mega-Regions.

TIP: Safety Reasons and to keep OpenSim from running away on you, do not enable the tree module within the OpenSim.ini. That will permit it to run at startup and will inevitably cause you troubles. This is suitable if you wish to have a region with a growth pattern that emulates and essentially it will become a "Living Regions" with the Life Cycle going on.

Using Console Commands for Trees: (in order of excecution)# change region RegionName where RegionName is the region you wish to populate# tree load oak.xmlPlace the oak.xml in bin OR another path you wish to store and adjust the path to the XML file IE: c:\trees\oak.xml # tree active truetrue = Activate , false = Deactivate# tree plant OakNOTE the spelling, IT IS CASE SENSITIVE according to the XML Definition and MUST be adhered to to Match Assets, See Tree Types @ Bottom of Posting

Removing Trees# tree freeze Oak trueMake sure you spell it correctly, The Copse Name is Case Sensitive# tree remove OakThis removes the trees in reverse order as they were placed# tree active falseDeactivates the Tree Module

Using Multiple Copse DefinitionsYou an use Multiple Definitions and load as many as you like. (good & useful in the case scenario as discussed below, otherwise avoid doing so)You can only grow ONE Copse at a time. Therefore this would be handy if you had an inworld scripted device which used osConsole Commands to issue commands to the tree module for changing Tree Copses and processing a more organic environment.

Deactivate when you are done and see your Handy Work. It is pretty cool to watch it while the trees grow, but it may take some time to start as there is a LifeCycle in play but as they mature and seed out, it's a lots of fun to watch.

Special Note:The Tree Module is an "Environmental" module and therefore has no knowledge of Buildings or Structures on your land and it will automatically plant on Land Surface (above or below waterline). If you have structures, they will get Trees inside which you will have to clean out.

Sample Known Good Working copse XML Files * NOTE: These are set to cover an entire region from centre out 125m in any direction. See the <m_range>125</m_range> setting

--- Values Described Below Adjust to Suit Your Needs ---m_name - string specifying a name by which the copse will be knownm_frozen - current freeze state, generally set false on an initial loadm_tree_type - the tree that will comprise the copse. Valid tree types are shown below.m_tree_quantity - the number of trees to be grown and maintained in a copsem_treeline_low - minimum ground height for planting this copsem_treeline_high - maximum ground height for planting this copsem_seed_point - the X & Y region co-ordinates of the first tree to be planted. Z MUST BE 0 "ZERO" or it will fail!m_range - the maximum distance from the seed point that a tree will be planted (this is also affected by the type of plant)m_initial_scale - the X, Y and Z object scaling factors for a seeded treem_maximum_scale - the X, Y and Z object scaling factors for a mature (full grown) treem_rate - the growth factor on each iteration

Ok....Having had all sorts of fun with trees and seriously slamming my viewer into submission with thousands and thousands of them, I whipped up a collection of .xml files, one for each type of tree/plant.I set different altitudes for most of them with the idea that it might look cool and maybe be a bit easier to keep track of...What I have NOT done is more important, I have not slowed down growth, and I have not reduced the number of trees, what that means is a wondrous thing happens if you load and plant them all, you get about 21,000 trees and plants all going haywire and growing, breeding and generally running amok on your server.Now, WhiteStar recomends NOT using the tree thingy in Opensim as its got some problems..... I would be willing to bet just about anything that he is correct, so.... you have been warned and so have I.hehehehe...../me plants more trees

The tree module was designed to be used on empty land prior to building on. It cannot & does not know where buildings and objects are on a region. Therefore it rezzes trees and starts the growth cycle according to the specs provided in the XML files related to the particular tree.

_________________No further support of any kind, for any of my materials. Use as/is whereis.PLEASE UNSTICKY Any Stickied Posting by myself.

I recently used the trees module to plant some kelp on a new region and wanted to run it again with a different type of plant but it's crashing consistently with the message copied below. My best guess is that something in the xml file is triggering the crash (Kelp-1 crashes now too). The other thought I had was that the trees module might be disabled or changed and I simply missed the announcement.

I just setup a fresh empty 256x256 region to test.Base of region prior to roughening was set with 'terrain fill 20.5'I roughened the terrain somewhat to provide different elevations for testing.Edited Oak.xml and set the m_treeline_low to 20 (so that it would plant from water level up)Followed the commands as posted in Post-1

Now have a region full of growing Oak trees. Working as spec'd without issues. Note that the commands are Case Sensiive so oak is not the same as Oak. Tree function does NOT work on Mega-Regions, as far as I am aware that has never been fixed up.

Good Luck & Have Fun.

_________________No further support of any kind, for any of my materials. Use as/is whereis.PLEASE UNSTICKY Any Stickied Posting by myself.

Thanks White Star. The version I'm running is OSgrid 0.7.4 (Dev) 0007711: 2012-03-01. And my OS is Ubuntu 11.10 ( and some version of Mono as the runtime environment). And I am very careful about uppercase "Oak" as your instructions make that clear.

I'm encouraged to try try again. I think I'll do a restart first and will let you know how it goes. I had fun planting the kelp and the module has always seemed to me like an interesting one to mess with.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum