UltimaLive Lumber Harvesting

UltimaLive Lumber Harvesting 0.43

No permission to download
Requirements
UltimaLive v0.97
(optional) Cut Down Trees, Stumps and Saplings v.0.30 or greater
Normal Tree:
lumberharvest_stockgraphics_preview1.PNG


After one harvest:
lumberharvest_stockgraphics_preview4.PNG


After two harvests - Stock Graphics:
lumberharvest_stockgraphics_preview3.PNG


After two harvests - Custom Graphics:
preview.PNG




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.

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

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
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
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
gametec
  • lumberharvest_stockgraphics_preview2.PNG
    lumberharvest_stockgraphics_preview2.PNG
    35.5 KB · Views: 41
Author
Praxiiz
Downloads
214
Views
3,593
First release
Last update
Rating
5.00 star(s) 2 ratings

More resources from Praxiiz

Latest Updates

  1. Fixed Typo

    Fixed typo from previous 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...
  4. Added

    Implemented the configurable regrow rate. Setting TimeBetweenRegrowth in LumberHarvest.cs now...
  5. Fixed namespaces

    Fixed bad namespaces.
Back