RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Resource icon

UltimaLive Lumber Harvesting 0.43

No permission to download
Normal Tree:


After one harvest:


After two harvests - Stock Graphics:


After two harvests - Custom Graphics:


Introduction
UltimaLive Lumber Harvesting is a graphics based harvest system. It allows players to actually chop down trees and cut them into pieces. Tree locations are saved and re-spawned according to a minimum time interval set by shard owners.
This system uses statics and map data that is already in the Server's memory - it does not create a new tree object for each tree on a map. Changes are written directly to the map via the UltimaLive system, which means it has a very low memory overhead. Only tree locations that have been cut down are saved off to disk during a world save.


Features
  • Destructible trees
  • Two sapling phases per tree type
  • Resources and bonus resources can be given out by graphic ID or during a phase change (when a tree is chopped from a standing position to a fallen position). This allows random wood types for each tree or specific wood types based on tree type.
  • Trees are regrown in the same place with the same graphics.
  • Only changed trees are saved off to disk during a world save, when they grow back they are no longer saved. This results in a small file for saving tree locations.
  • Low memory overhead
  • One tree object for each tree phase, not for each of the millions of trees on a map
Coming Soon
  • Racial bonuses
  • Collision detection
Requirements
  • UltimaLive v.0.97
  • (Optional) Cut Down Trees, Stumps and Saplings v.0.30 by Hank
Limitations
  • There is currently no region control included in this project.
  • There is currently no collision detection included in this project
  • There is currently no way for players to remove stumps
Installation
  1. Unzip the archive into your UltimaLive folder.
  2. Modify Base Axe, and Polearm
  3. (optional) Install Custom Graphics (currently available at ServUO)
  4. (optional) Modify HarvestableTrees.cs to match installed graphics (if needed)
In both BaseAxe.cs and BasePoleArm.cs, find the HarvestSystem Property:
Code:
public virtual HarvestSystem HarvestSystem
{
  get
  {
    return Lumberjacking.System;
  }
}
Change it to use UltimaLiveLumberJacking.System
Code:
public virtual HarvestSystem HarvestSystem
{
  get
  {
    return UltimaLiveLumberjacking.System;
  }
}

To change the delay between tree regrowth, modify the following line in LumberHarvest.cs
Code:
public static TimeSpan TimeBetweenRegrowth = TimeSpan.FromMinutes(1);
If you are using custom graphics, you will need to uncomment the following line at the top of HarvestableTrees.cs:
Code:
//#define CUSTOM_TREE_GRAPHICS

Changelog

v.0.42
Fixed an issue that was causing a crash on save due to invalid map

v.0.41
Fixed an issue that prevented wood from being distributed
Fixed an issue that caused the server to crash when harvesting
Fixed an issue that caused the server to crash when saving/loading

v.0.40
Implemented the configurable regrow rate. Setting TimeBetweenRegrowth in LumberHarvest.cs now has an effect, which is the minimum time that the system will wait before it regrows trees on a world save.
Added support for Stock Graphics. The system uses stock graphics by default. To enable custom graphics, uncomment #define
CUSTOM_TREE_GRAPHICS in HarvestableTrees.cs

v.0.31
Fixed Namespaces

v.0.30
Initial Release
Support for custom graphics only

Credits
Hank
otimpyre
Sythen
Author
Praxiiz
Downloads
84
Views
710
First release
Last update
Rating
5.00 star(s) 2 ratings

More resources from Praxiiz

Latest updates

  1. Fixed typo

    Fixed typo from last package
  2. Fixed crash on save

    Fixed an issue that was causing a crash on save due to invalid map
  3. Bug Fixes

    Fixed an issue that prevented wood from being distributed Fixed an issue that caused the server...

Latest reviews

He has made lumber Jack skill as life like as possible in UO.
Always impressed with the work!
Top