Sunrise/sunset times?
Moderators: Lone Wolf, Snake Man
-
- FreeFalcon
- Posts: 848
- Joined: 2001-03-04 23:01:01
- Location: here
Sunrise/sunset times?
I noticed from the .hpps for Chernarus and Utes that there is a whole section that seems to control brightness and such. However, there is no apparent link between those values and times for sunrise/sunset. I was wondering if these times are something controllable via config, or if they are hardcoded somehow.
Thanks for any insight!
T
-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
Re: Sunrise/sunset times?
This is configured in terrain config, you setup where in the world is your terrain located, lat/lon coordinates. My 51km desert terrain has these configured:
Code: Select all
class CfgWorlds
{
class PMC_Desert_Hardcore: Sara
{
latitude = 29;
longitude = 47;
I remember when I did the PMC Rugen config, it was pissing me off as it became so "dark" terrain after setting the values to central europe... for example compared to old OFP islands. For example I recall something that while it was perfectly sunny day in Malden/Everon at 1630hrs, it was almost dark in my terrain. Heh.
Anyways, hope that helps.
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- FreeFalcon
- Posts: 848
- Joined: 2001-03-04 23:01:01
- Location: here
Re: Sunrise/sunset times?
However, the configs for Utes and Chernarus place the lat/long at -45/30, which I believe is New Zealand (the northern island).
The NZ sunrise/sunset times can be found here:
http://www.rasnz.org.nz/SRSStimes.htm
But, in some testing, those don't match up for Utes. In January, they are ok, but by March/April, they are noticeably off.
Quick test - according to the RASNZ, sunrise on May 1, 2009, was at 7:07am. In-game, it appears more like 6:00am. (I think.)
-
- FreeFalcon
- Posts: 848
- Joined: 2001-03-04 23:01:01
- Location: here
Re: Sunrise/sunset times?

It may be a bit of an inside joke - Belarus/Chernarus.

-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
Re: Sunrise/sunset times?
Please keep us updated if you do some more investigating for this.
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- FreeFalcon
- Posts: 848
- Joined: 2001-03-04 23:01:01
- Location: here
Re: Sunrise/sunset times?
I'm not sure what I'm saying, either, really.

Well, I can tell you that from my basic testing, the long/lat values don't correspond to that long/lat SR/SS times.
I think the key is the config that seems to refer to the brightness/rgb values has additional data points. (Kinda reminds me of F4 flight model data.)

Code: Select all
sunrise[] = {0,
{
{ 0.7,0.45,0.45 },"5.16+(-4)" },
{
{ 0.07,0.09,0.12 },"4.0+(-4)" },
{
{ 0.6,0.47,0.25 },"4.66+(-4)" },
{
{ 0.1,0.09,0.1 },"4.3+(-4)" },
{
{ 0.5,0.4,0.4 },"6.49+(-4)" },
{
{ 0.88,0.51,0.24 },"8.39+(-4)" },1};
But, what's strange is there's no apparent sunset time? It is almost as if the values just swing from deep night to noon like a pendulum every day.
-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
Re: Sunrise/sunset times?
Like for example one location test on the equator, does the times match then? one test for north pole etc, then in between and so on.
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- FreeFalcon
- Posts: 848
- Joined: 2001-03-04 23:01:01
- Location: here
Re: Sunrise/sunset times?

On Utes, I've figured out the SR/SS times for the whole year (mostly). (Utes and Chernarus have the same data.) Then tried to figure out where in the globe it corresponds to.
I'm not sure how to do the island-pbo-ing stuff to see if the long/lat stuff changes make a difference.
-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
Re: Sunrise/sunset times?
Code: Select all
class CfgPatches
{
class coordinate_test
{
units[] = {};
weapons[] = {};
worlds[] = {};
requiredAddons[] = {};
requiredVersion = 1;
};
};
class CfgWorlds
{
class CAWorld;
class Chernarus : CAWorld
{
<coordinates here>
};
};
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- FreeFalcon
- Posts: 848
- Joined: 2001-03-04 23:01:01
- Location: here
Re: Sunrise/sunset times?
That will overwrite whatever the existing cfg entries are?
Will try that - maybe over the weekend.

-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
Re: Sunrise/sunset times?
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- FreeFalcon
- Posts: 848
- Joined: 2001-03-04 23:01:01
- Location: here
Re: Sunrise/sunset times?
I may try that technique and fiddle with the values for the sun, too.

-
- Commander-In-Chief
- Posts: 9833
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
Re: Sunrise/sunset times?
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".