Sign in to follow this  
Vanyel

Decay Settings?

Recommended Posts

Found this while poking around in an extracted Server.jar...  \server\com\wurmonline\server\TimeConstants.class


 


can someone make use of this? maybe the long awaited decay mod?


 


Or am I hoping up the wrong tree?



 
    public static final long BASEDECAY = 1382400L;
    public static final long DECAYTIME_QL = 28800L;
    public static final long DECAYTIME_NEVER = 9223372036854775807L;
    public static final long DECAYTIME_GLASS = 12096000L;
    public static final long DECAYTIME_STEEL = 12096000L;
    public static final long DECAYTIME_WOOD = 9072000L;
    public static final long DECAYTIME_FOOD = 172800L;
    public static final long DECAYTIME_FOOD_CONSERVED = 604800L;
    public static final long DECAYTIME_CLOTHING = 3024000L;
    public static final long DECAYTIME_STONE = 12096000L;
    public static final long DECAYTIME_CORPSE = 86400L;
    public static final long DECAYTIME_MAGIC = 12096000L;
    public static final long DECAYTIME_VALUABLE = 12096000L;
    public static final long DECAYTIME_POTTERY = 12096000L;
    public static final long DECAYTIME_LEATHER = 3024000L;
    public static final long DECAYTIME_CORROSION = 3024000L;
    public static final long DECAYTIME_RAWMATERIAL = 86401L;
    public static final long DECAYTIME_FLOWERS = 1382400L;
    public static final long TENTDECAY = 1814400000L;
 

Edited by Vanyel

Share this post


Link to post
Share on other sites

what you have there is the decay tick timers,    3.36 hours the timer for valuables,  these are all  based in miliseconds.   But to change it, need to decomplie and recomplie them


Share this post


Link to post
Share on other sites

This is a test and obviously not perfect, but it should remove decay all together by setting them all to never.  It is simply a recompiled java file.  An ideal way to handle this would be in a settings file externally parsed.  I'll work on that some later today.


 


For now, here's a class file you can inject that will remove decay.  Intended for testing and advanced users only!


 


http://glacialsoftware.net/wurm/decaytest.zip


 


PS:  Some of you may recognize me from minecraft modding.  Yep, I'm that RTB.  I've always loved Wurm, even before minecraft, and am glad to be back and plan great things. :)


  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this