Recent Changes - Search:

Seawolf

Dragon

Gryphon

KB

Boat Extras

Boat Manuals

Extras

General Support

About Seawolf

Click for a 14 day free trial of Istaria

edit SideBar

Aggro Tree

Aggro's Trees
Modify-Copy-Notrans

January 12, 2011
Verkin Raven & Stickman Ingmann

Summary

Due to demand and in anticipation of our next avatar, we've released Aggro's interactive trees in a concise and functional package for public use. If desired, the trees can be dragon-proofed and used as regular decoration.

The package contains the tree controller and several physical variations of trees which can be set to live, dead, snow, or fire modes. There are also two variations of tree stumps, and a fallen tree with always-dead branches. In addition to this, there's an optional texture preload block, and an alternate but slower non-mono script that consumes less memory at the cost of speed.

Central to this package is the tree controller, which allows the owner to adjust settings and globally edit trees. Only the owner of the object is able to use the tree controller.

Buttons

Power

Toggles whether the tree responds to being hit with fire or ice.

Reset

Forces all trees to return to their currently configured default state.

States

Green

Sets tree's default globally to normal, living mode with green branches.

Dead

Sets tree's default globally to dead mode, with no green branches and dying, dried bark.

Snow

Sets tree's default globally to snow mode, with exposed branches mostly covered with snow.

Fire

Sets tree's default globally to fire mode, with a chance of live flames set by the Fire Particle Chance bar (described later on this page). Any tree with visible fire will emit a burning sound.

Timers

Reset

This bar adjusts the time that trees reset themselves after they've been affected by dragons. Clicks are locational from left to right, 5 seconds to 120 seconds respectively. When set on fire, the tree will spend this much time on fire, then turn to the dead state for another length of the timer.

Fire Particles

This bar adjusts the chance in percentage that live fire will appear on burned trees. The consideration to make regarding this setting is both that of sim resource usage, total particle count, and fire emitter variation in large groups of trees.

The large fire particle emits 325 concurrent particles, and the smaller 225. With a single tree at 100%, you will see 550 simultaneous particles. The default particle setting for the standard viewer is to see 4096 particles. As such, with little or no other particle emitters present, you should not have more than seven trees (3850 particles) in place with 100% particle emission active if you want to have the full effect of the particles.

The following table contains recommendations for squeezing the maximum possible particles out of the trees. It's possible and recommended to place it a bit lower than this as activation is random by percentage, other particles may be present in the area, or players may have their settings lower than the default.

Number of TreesPercentage to UseLikely Particle Count
1-7100%550-3850
899%3850
988%3850
1079%3850
1553%3850
2039%3850
2531%3850
3026%3850
4019%3850
5015%3850
6013%3850
7011%3850
809%3850
908%3850
1007%3850
1505%3850
2003%3300
2503%3850
3002%3300
3502%3850
4001%2200

Delete

Delete Scripts

This button removes scripts from all of the trees. This is useful if you don't want the trees to change and want to save a little script time. Take note that this is permanent and should only be used if you're certain you no longer want the changing functionality for your currently placed trees. You will be prompted for confirmation before the scripts are deleted.

Delete Trees

This button deletes your current in-world Aggro trees. This is used as a quick cleanup function more than anything, and cannot be undone. You will be prompted for confirmation before the trees are deleted.

Phantom

On

Turns all your trees phantom, which means objects and avatars can move through them. If "power" is enabled, they will still react to fire and ice.

Off

Re-enables object and avatar collision with your in-world trees.

Landmark

Landmark to Aggro. :3

Other

Multiple Defaults for Trees

The control panel uses llRegionSay and the trees verify that something the owner owns is doing the commands. This means the control panel should effect all trees you own in the current region (and theoretically, no trees outside of the region).

If you want to have an area that has snowy trees, an area with burnt trees, an area with dead trees, and an area with green trees, you'll need to place all of the trees you want in a single area, use the control panel to set them, then "disable" them while you create and modify the other areas.

Complications arise because using the handy "set scripts to not running" does not ignore but only pauses the event queue. Also, official viewer 2.x does not actually show completion feedback on said mass-script operations, making it more difficult to use. Following the below instructions are probably the easiest way to set your trees to different defaults.

  1. Place the trees for a section as you'd like them.
  2. Use the control panel to set them to the state you'd like.
  3. Highlight them all and select Tools -> Set Scripts to Not Running in Selection
    • In Official Viewer 2 as of current (2.5 beta) and lower versions you will receive no feedback and need to count to 60 and hope that was enough time. The menu option for Viewer 2 is also slightly different, using Tools -> Scripts -> Set to Not Running instead.
  4. Complete another region and follow the first three steps again.
  5. When all regions are set up as you'd like, highlight everything and select the following:
    1. Tools -> Reset Scripts in Selection
    2. Tools -> Set Scripts to Running in Selection

The trees should now have different default states but still respond to fire and ice as expected.

Another method would involve putting down a group of trees as you like, then taking it back into inventory as a coalesced object, and proceeding to the next area of trees. Rez them all back out when you're done.

Please note that, after having done any of these, if you set a new default state it will change all of the trees. This is a workaround, rather than a design solution.

Preload Prim

There is a "preload prim" that comes with the trees. It contains on its faces all of the textures that the trees use in any of their states, including the texture used for the fire particles. To avoid the texture load time between state changes, it's recommended you take this preload prim and hide it somewhere near the middle of the forest you create. If the forest is large enough, you may want to rez a couple of them in various areas.

Proper use of the preload prim will prevent the delay with blank/murky textures on the tree during a state change.

Public Control Panel

If you want others besides the owner to be able to control the trees, you can replace the script in the control panel with the "Control Panel Public" script. This will allow anyone to use the control panel's buttons except for the buttons power, delete scripts, and delete trees. Also, all messages are heard by anyone within 20 meters of the control panel rather than sent directly to the control panel's owner.

If you use this script, it's strongly recommended that you also change the name of the object so you don't confuse it with the owner-only version of the control panel.

Script Memory

The trees contain one script. In order to get a quick and snappy response, it is compiled as Mono. This means it takes 64 kilobytes of script memory. We include a non-mono version that is noticeably slower in changing states, but only takes up 16 kilobytes.

Overall, it's probably better to use the Mono version, especially because the bytecode is shared in Mono scripts. But if you really prefer, we've included the standard LSO version for you to test.

Once script memory can be properly limited in Mono, there will be no potential advantage to using LSO.

Misc

  • This was a quickie project to take a break from the endlessness of our next avatar product, and let you guys know we're still here.
    • No, it didn't take two years to make a set of trees with a couple features. :p
  • The board contains a little tiny itty bitty bit of art from our primary project.
  • I couldn't figure out what the common symbol for reset is, so I copped out with some text. :(
Edit - History - Print - Recent Changes - Search
Page last modified on January 13, 2011, at 05:43 AM