Sign in to follow this  
Ausimus

[Released] Configurable Gestation Period

Recommended Posts

A server side mod that allows server owners to modify the time it take for creatures to give birth.

 

Value set to 1

[16:07:35] The aged Female Horse will probably give birth in a while!

[16:07:49] She will deliver in about 2 days.

 

Value set to 99

[16:11:48] The aged Female Horse will probably give birth in a while!

[16:11:50] She will deliver in about 100 days.

 

Do not set a value greater than 99 in properties or server will fail to start.

 

Download / Source

https://github.com/ausimus/Modify-Gestation-Time/releases/latest

Edited by ausimus
  • Like 6

Share this post


Link to post
Share on other sites

Very useful to be able to configure the birth time of animals. Maybe make it so you can configure it so certain animals give birth at different rates possibly. Thank you for this addition to the Wurm mod library!

Share this post


Link to post
Share on other sites

Update:

Added spell, when cast decreases days left to birth by 1, if cast at 0 days left creature gives birth.

Fully configurable.

https://github.com/ausimus/Modify-Gestation-Time/releases/latest

classname=org.ausimus.wurmunlimited.mods.modifygestationperiod.Init
classpath=ModifyGestationPeriod.jar
#Time in days +1, minimum 1 day, so for 1 day set 0, for 100 days set 99.
GestationTime = 0

#spell stuff self explained
AddSpell = true
CS_all = true
CS_fo = false
CS_vyn = false
CS_mag = false
CS_lib = false
aCastingTime = 10
aCost = 70
aDifficulty = 30
aLevel = 70
CoolDown = 0

 

Edited by ausimus
  • Like 2

Share this post


Link to post
Share on other sites

Say for example if you wanted to just offer the spell and not globally modify the gestation period is it feasible to just hash out the gestationtime line without causing any problems?

Share this post


Link to post
Share on other sites
18 minutes ago, LifesaverM said:

Say for example if you wanted to just offer the spell and not globally modify the gestation period is it feasible to just hash out the gestationtime line without causing any problems?

yep, comment it from the Init class.

 @Override
    public void preInit() {
        //new DecreaseGestationPeriod();
}

ill do an update to add it as configurable.

Edited by ausimus

Share this post


Link to post
Share on other sites

Wow, awesome ausimus my sincere thanks and gratitude for this 'customer service'. Loaded it this morning on our cluster's test server during our weekly maintenance window. I look forward to quickly moving it to production.

 

Hats off to ya' mate!

 

I wasn't even expecting a change let alone that quick. If I may I've started to get a bit of sense how this is working technically do you think with a bit of tweaking I can add it so I can assign the spell to a custom god vs just the standard 4. Say as long as I know the ID # assigned to that god?

Edited by LifesaverM
question

Share this post


Link to post
Share on other sites

in properties change


CS_all = true
CS_fo = false
CS_vyn = false
CS_mag = false
CS_lib = false

CS_all = false

 

and

 

CS_GodName = true

 

edit if custom god yea just add the id number to an if statement just as i have it. if you cant get it working put in your gods id and ill make you a custom version.

Edited by ausimus

Share this post


Link to post
Share on other sites

Any idea why this mod just sends my server on a restarting loop? Can't really tell, in the logs.

Share this post


Link to post
Share on other sites

I think I had that problem and had to use the slightly older version

Share this post


Link to post
Share on other sites

Yes unfortunately the version that introduced my request for

ActionBreedGestation = false

is the cause.

 

If you use the version prior to Apr. 9th you'll be golden.

Share this post


Link to post
Share on other sites

What is the spellname?

I dont use it but need it for mod explanations on my website.

 

Eject

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