Regarding moonlight

Nextep

New Member
Hello!

We recently added the "light" script, aswell as roadlight-script that we found on this forum (big kudos to the creator), aswell as we put in a moonlight during night. Now, the problem we have is that the moonlight doesn't come up until a few hours have passed by, meaning we loose a few players because it's pitch black. Is there possible to make the full moon come up as soon as it hits a certain level of blackness? The date we set it on was 15/6/2012.

Thank's in advance--

Nextep
 
Update;
We continued to experience, and at the moment we are trying to create another file which will be run at the same time as the restart.bat, which edit's out the hiveext.init and changes the time. Which means, we jump over the "pitch black" - but, we will loose the "fading from daytime to nighttime-phase" but if this is the only work-around we can use, then we'll use it. If anyone has any other good ideas, or tips that will improve our method, please give us a feedback.

Thanks in advance--

Nextep
 
Maybe you could try and set the date to winter season meaning the nights starts earlier and therefore allow the moon to rise straight away instead of summer time where nights only start late at night and won't give time for the moon to show ?
 
Yeah that is a good suggestion, but then it result into longer nights, we want to limit it to say 6-8 hrs. We're still working on our method, and from our test's its going good, we just gotta put it server side and see how it goes.
 
Oh by the way, maybe this could help you out ? http://filesmelt.com/dl/calendar_you.png

The site wont work for me, for some odd reason - but i guess you are pasting that calendar which shows which dates have moonlight etc? We have our server on 15/6 which should add moonlight now, and we have tested and scripted our script which runs an external bat file, which then again modifies the hiveext.init into changing the day-time. We are still having some small errors though, but atleast we have narrowed it down, and our script works flawless! From what i can see it is the only solution to jump over the "pitch black", which is sad - but i guess it adds realism to the game. If anyone is interested i can provide more details regarding this.
 
The site wont work for me, for some odd reason - but i guess you are pasting that calendar which shows which dates have moonlight etc? We have our server on 15/6 which should add moonlight now, and we have tested and scripted our script which runs an external bat file, which then again modifies the hiveext.init into changing the day-time. We are still having some small errors though, but atleast we have narrowed it down, and our script works flawless! From what i can see it is the only solution to jump over the "pitch black", which is sad - but i guess it adds realism to the game. If anyone is interested i can provide more details regarding this.

Yes that was a Lunar Calender for Arma 2 (2011-2012), guess you already knew it :p

Yes i'd be very much interested in using your script ! If you could tell me step by step on how to set it up and use it ? I'd be glad to actually see the difference with your script since i am also having issues with the date on my server... I am using DayzCC and normally to set a static date you only need to edit the HiveExt.init and set the date to static instead of local, than obviously choose the date you want, but this has no effect on the server since what ever date i use the date ingame still shows local...

Hi! Follow this tutorial, and set the date to 2013,8,10.
Could you add a link please, you might have forgotten it :p
 
I have the date set to 6/6/12 and the moon is always full and always in the sky at night.
Weird, we tried this date and it didnt work - but as mentioned before our script bypasses the pitch-black-time and goes straight to full moon
 
What time does your moonlight reach your preference? You could try editing your dusk/dawn times.

Step 1: Unpack your dayz_code.pbo and make a copy of your dayz_code folder to use for editing.

Step 2: Find dayz_code\init\variables.sqf.

Step 3: Search for the following lines of code.
Code:
//DayZ settings
dayz_dawn = 6;
dayz_dusk = 18;

Step 4: Edit dusk to whatever time your moonlight is preferred. (24 hour clock)

Step 5: If you aren't already using a custom variables.sqf, copy the one you just edited into your mission folder.

Step 6: In your init.sqf change
Code:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)
to
Code:
call compile preprocessFileLineNumbers "variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)

I'm not 100% positive that this will work because I have never tried it before. However, I believe, in theory it should work.
 
What time does your moonlight reach your preference? You could try editing your dusk/dawn times.

Step 1: Unpack your dayz_code.pbo and make a copy of your dayz_code folder to use for editing.

Step 2: Find dayz_code\init\variables.sqf.

Step 3: Search for the following lines of code.
Code:
//DayZ settings
dayz_dawn = 6;
dayz_dusk = 18;

Step 4: Edit dusk to whatever time your moonlight is preferred. (24 hour clock)

Step 5: If you aren't already using a custom variables.sqf, copy the one you just edited into your mission folder.

Step 6: In your init.sqf change
Code:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)
to
Code:
call compile preprocessFileLineNumbers "variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;

I'm not 100% positive that this will work because I have never tried it before. However, I believe, in theory it should work.

Holy f*** !!

Thanks for this, we will not stop using our custom script! thumbs up!
 
does not work for me

i have these changes

dayz_dawn = 3;
dayz_dusk = 23;

and my sun starts setting at about 18:00 instead of 23.00 if i understood corectly
 
Back
Top