Jump to content

Recommended Posts

so i want the day night cycle on my server disabled because having a night on a Sandbox Server is stupid and bad!

 

i searched for a while and the only thing i found was people complaining about Servers disabling the cylce but HOW 

 

how can i disable the whole time cycle that it´s always like 1 pm on the Server?

 

HELP!

 

 

Marvin

Share this post


Link to post
Share on other sites

Idk if there is an easier eden solution but i doubt it.

 

You could script a server side while loop which skips some hours at a specific time.

You ll need date to get the actual time and skipTime to skip some hours.

In your while u should use a long sleep maybe for 3600 seconds.

 

If you skip 12 hours at 6 p.m. then u ll have daytime forever

Edited by sarogahtyp

Share this post


Link to post
Share on other sites
4 hours ago, sarogahtyp said:

Idk if there is an easier eden solution but i doubt it.

 

You could script a server side while loop which skips some hours at a specific time.

You ll need date to get the actual time and skipTime to skip some hours.

In your while u should use a long sleep maybe for 3600 seconds.

 

If you skip 12 hours at 6 p.m. then u ll have daytime forever

thanks for you´re help i went with a trigger which loops every 7200 seconds (2h) and set´s the date to 13:30 again 

  • Like 1

Share this post


Link to post
Share on other sites

See also setTimeMultiplier

That can be enough for lasting 10 days (so 5 days on server without night, more in summer time) with 0.1 setting.

  • Like 1

Share this post


Link to post
Share on other sites
13 hours ago, pierremgi said:

See also setTimeMultiplier

That can be enough for lasting 10 days (so 5 days on server without night, more in summer time) with 0.1 setting.

the server is supposed to run for ever so that would not be very practical

Share this post


Link to post
Share on other sites
20 minutes ago, maaarv said:

the server is supposed to run for ever so that would not be very practical

At some point, likely regularly, you're going to have to do a restart to maintain performance. 

  • Like 1

Share this post


Link to post
Share on other sites
setTimeMultiplier 0.1

[] spawn {
  while {true} do {
    waitUntil {sleep 60; sunOrMoon != 1};
    while {sunOrMoon != 1} do {
      skipTime 1;
      sleep 1;
    };
  };
};

Put into init server and it'll disable night, adjust values to your liking, untested. 

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×