Author Topic: Fixing Day/Night cycle in old version of Solar Apocalypse  (Read 853 times)

Does anyone know how to fix the day/night cycle in the old version of Solar Apocalypse that is currently downloadable? Thanks.

Bump, I still need help with this.

Bump, I still need help with this.
I know I keep bumping this, but really, I need help.

what solar apocalypse? What's the problem with it?

what solar apocalypse? What's the problem with it?
http://forum.blockland.us/index.php?topic=265796.0
The issue is that the Day/Night cycle is broken.

I actually PM'd Xalos about this recently.
I already deleted the original PM that he sent me, but I'll try to repeat what he said as well as I can.



This is due to a change that Badspot made with the environment controls without warning anyone. Thanks Badspot.

What you need to do is look for, in the server.cs code, a line of code that says fuction servercmdEnvMaster(%cl)
You'll see this:
Code: [Select]
function servercmdEnvMaster(%cl)
{
    if(isObject(%cl) && !%cl.isSuperAdmin)
        return;
    if(!isEventPending($EnvMasterLoop))
    {
        if(!isObject(EnvMaster))
            new AIConnection(EnvMaster) { isAdmin = 1; isSuperAdmin = 1; environMaster = 1; };
You need to replace the word AIConnection with SimObject

Replacing the word "AIConnection" with "SimObject" will fix the problem.

It worked, but the sky is stuck on this minecraft sky. How do I fix it?

It worked, but the sky is stuck on this minecraft sky. How do I fix it?
can you post the full addon with the fixed time cycle with xalos's permission?