Sign in to follow this  
Xeon

Changing Season/In-game Time

Recommended Posts

Any way we can change the season/in-game time?


 


Do we have to edit the database for that? If so what database is it stored in?


Share this post


Link to post
Share on other sites

Also having this issue, custom map I made seems to want to be snowy :(


Share this post


Link to post
Share on other sites

Also having this issue, custom map I made seems to want to be snowy :(

 

The issue is, assuming you have rebuilt the database, the game times is reset to month 1, week 1, day 1, year 980. So the current season is Winter. I am unaware of a way to manually set the game time or the time progression multiplier (though there is a field for "WORLDTIME" in the wurmlogin.db - it's value is set to 1, I have not messed with it but it may be the time multiplier. To edit this you must edit "insertwurmlogin.sqf" and edit the value manually and rebuild the database. It is the value right after "NEXTHOTA" (defualt: 2160)).

Share this post


Link to post
Share on other sites

The issue is, assuming you have rebuilt the database, the game times is reset to month 1, week 1, day 1, year 980. So the current season is Winter. I am unaware of a way to manually set the game time or the time progression multiplier (though there is a field for "WORLDTIME" in the wurmlogin.db - it's value is set to 1, I have not messed with it but it may be the time multiplier. To edit this you must edit "insertwurmlogin.sqf" and edit the value manually and rebuild the database. It is the value right after "NEXTHOTA" (defualt: 2160)).

Thanks Xeon!

 

I was having this exact issue as well and apparently that is exactly the field which you need to update.

 

Just FYI, I checked the default database and the "WORLDTIME" is listed as 5575600.  Changed it to that in my own 'wiped' database and I'm back to summer time.

Share this post


Link to post
Share on other sites

Thanks Xeon!

 

I was having this exact issue as well and apparently that is exactly the field which you need to update.

 

Just FYI, I checked the default database and the "WORLDTIME" is listed as 5575600.  Changed it to that in my own 'wiped' database and I'm back to summer time.

Share this post


Link to post
Share on other sites

We really need a number of server config options to set default start dates, passage of time durations, day/night cycle, season duration etc to name a few. Also, being able to alter default names from mobs to days of the week would be really useful instead of having to trapse through code to do so. There's so much potential for greater customization to really make it your own medieval sandbox but not having easy to set gui options to enable even basic changes (such as start date) will be a turn off for server hosts used to many more options.


 


Hell, if the Realm Crafter monkeys can offer all the above out of the (shoddy) box I'm sure with a little work CC could accommodate us expertly.


  • Like 4

Share this post


Link to post
Share on other sites

So what value makes it day 1?

 

If your server's sqlite folder open up the "insertwurmlogin.sql" with a text editor and edit the highlighted number:

 

"INSERT INTO SERVERS VALUES(0,'Newfoundland',0,0,0,0,0,0,0,'','48010','','','3724',1,0,0,0,1,'','','','','','','','',1,0,1442559932459,'7220','7221',1442559567892,1442564489555,1442564489555,1442564601555,1442559801228,0,5575600,554394,589996,25385,1,0,-1,0,0,0,200,50000,30.0,20,1.5,2.0,2160,1,20.0,18.0,18.0,10.0,1.0,0,2.0,'',1,0,0,1000000,50000,45,3,3600000,1000000,'Newfoundland was waiting...','Newfoundland');"

 

(http://www.wurmpedia.com/index.php/Time_of_Wurm)

 

A value of "1" = Day of the Ant, Diamond Starfall, Year 980

A value of "5575600" = Some time in "spring" Year 980.

Share this post


Link to post
Share on other sites

I would much prefer to set my server to the *Endless Summer* mode and have it never change seasons. I will be disappointed if the season can't be frozen in this way if desired.


 


=Ayes=


  • Like 1

Share this post


Link to post
Share on other sites

Oh gods... how do I frak with SQLs? D:


 


Edit: Ah. Just right click and edit. Gotcha.


 


Hmm... would a value of 29 be Day of Ant in Saw Starfall, 980?


Edited by Tyroki

Share this post


Link to post
Share on other sites

You can change the code in client.jar to make it so anyone can use the seasonOveride (1 is winter, 2 spring, 3 summer, 4 fall). I did the following and it works fine. seasonOveride is in wurm\configs\defualt\gamesetting.txt


 


 


using some java IDE, I like IntelliJ community edition.


 


make a copy of the client


use the copy client.jar as a lib


make a new class and copy the SeasonManger.class from the client.jar


remove a line from method: Update()


specificly delete: "this.world.getServerConnection().isDev() && "


recompile the class


open the client.jar file, I use 7-zip.


drop the newly compiled files into the client.jar and they will override what is in there.


Make sure you have a copy of the original client.jar just in case something goes wrong.

Share this post


Link to post
Share on other sites

Google mysql light tool. Note if you know nothing about mysql then don't try to with anything as you will end up up :P 


Share this post


Link to post
Share on other sites

If your server's sqlite folder open up the "insertwurmlogin.sql" with a text editor and edit the highlighted number:

 

"INSERT INTO SERVERS VALUES(0,'Newfoundland',0,0,0,0,0,0,0,'','48010','','','3724',1,0,0,0,1,'','','','','','','','',1,0,1442559932459,'7220','7221',1442559567892,1442564489555,1442564489555,1442564601555,1442559801228,0,5575600,554394,589996,25385,1,0,-1,0,0,0,200,50000,30.0,20,1.5,2.0,2160,1,20.0,18.0,18.0,10.0,1.0,0,2.0,'',1,0,0,1000000,50000,45,3,3600000,1000000,'Newfoundland was waiting...','Newfoundland');"

 

(http://www.wurmpedia.com/index.php/Time_of_Wurm)

 

A value of "1" = Day of the Ant, Diamond Starfall, Year 980

A value of "5575600" = Some time in "spring" Year 980.

Edited by Tyroki

Share this post


Link to post
Share on other sites

1855555 puts you first day of spring :) math ftw!


  • Like 1

Share this post


Link to post
Share on other sites

Somehow, this doesn't work for me.. Still winter. I've added 1855555 to the insertwurmlogin.sql but still it is winter, also rebuilt it still no luck.


Share this post


Link to post
Share on other sites

You can change the code in client.jar to make it so anyone can use the seasonOveride (1 is winter, 2 spring, 3 summer, 4 fall). I did the following and it works fine. seasonOveride is in wurm\configs\defualt\gamesetting.txt

 

 

using some java IDE, I like IntelliJ community edition.

 

make a copy of the client

use the copy client.jar as a lib

make a new class and copy the SeasonManger.class from the client.jar

remove a line from method: Update()

specificly delete: "this.world.getServerConnection().isDev() && "

recompile the class

open the client.jar file, I use 7-zip.

drop the newly compiled files into the client.jar and they will override what is in there.

Make sure you have a copy of the original client.jar just in case something goes wrong.

 

I like this idea, but would really REALLY love a setting in the server manager GUI that picks what season you are starting at server launch.  I like winter and all, but is a shame to have winter on day one of my new server launches.

Share this post


Link to post
Share on other sites

For me its the opposite. I would love to have winter all the time and no other season. But im a bit dumb when it comes to computers, is there a simple way to have my winter all the time, even when playing on a official WU-shard ?

Share this post


Link to post
Share on other sites

Check out the mods area if you haven't already. A new mod just came out that allows you to set the season you want or to adjust the formula that determines how much time is for each season. I picked 9.99/24.00 and ended up with 2% winter for example.

Share this post


Link to post
Share on other sites
On 16.12.2015 at 5:56 AM, Nappy said:

Check out the mods area if you haven't already. A new mod just came out that allows you to set the season you want or to adjust the formula that determines how much time is for each season. I picked 9.99/24.00 and ended up with 2% winter for example.

 

I downloaded the file he offered, but i cannot test something out because there is no description how to use it. I unzipped some files, and thats it

 

I dont know which program to use to even be able to read it, because word and the editor do not work, i only get some salad of signs.

And if i could read it, dont know what to do with it, when i changed variables.

Edited by Sizan

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