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.


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
Author
Praxiiz
Downloads
141
Views
141
First release
Last update
Rating
5.00 star(s) 2 ratings

More resources from Praxiiz

  • UltimaLive
    UltimaLive
    Use more than 6 map files, Stream changes to clients in realtime
  • UO Compendium
    UO Compendium
    Build informational gumps in game and display them, or mock up gumps for development.
  • 1000+ Custom Spell Icons
    1000+ Custom Spell Icons
    Creative Commons Icons converted to UO Spell Icons from http://game-icons.net/
  • Captcha! Anti-AFK checker
    Captcha! Anti-AFK checker
    Allows admins to reduce afk resource gathering or other automated activities on their shards.

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

Latest reviews

.43 is great. This is a great idea both to add more depth to the game as well as to make it harder for mining bots. There doesn't seem to be any real memory overhead with this system. Perhaps I didn't chop down enough trees between system saves! Very clever system Praxiiz.
Magical, Praxiiz's addition to his UltimaLive with Lumber Harvesting is pure genius. It adds a new level of depth to the game that players can enjoy for years to come! A system the community has wanted for years. 5/5