Jump to content

- - - Day-Night Cycle - - - With Day-Night Sounds! for any map by CCCP84


Recommended Posts

Posted (edited)

            Full Day-Night Cycle with the ability to add alternating day and night Sounds!


!Now the cycle can be integrated into the map with one click. Just unzip the file into the same folder where the map is located and run it. The cycle is integrated!     ( How to add night sounds, read below )

!!!!!    -> -> ->         CCCP84's Day-Night Cycle 1.2. Integrate full Cycle into the Map (Put MAP file in same Folder).exe.zip         <- <- <-    !!!!!

Or you can use Python Script if you have Python installed:

         -> -> ->          CCCP84's Day-Night Cycle 1.2. Integrate full Cycle into the Map (Put MAP file in same Folder).py.zip          <- <- <-
 

( If there are lamps on your map, you need to remove them first )
This script also includes a script for assigning tags to sound lamps if they were placed on the map. (This will be described further)


cycle.png.3559442bd2bca055dbaa694cf4bd2aef.png

________________________________________________________________________________________________________________________________________________________

You can also add this to the map file yourself:

Day-Night Cycle v1.2 - 60min.ini

Day-Night Cycle v1.2 - 45min.ini
 
Day-Night Cycle v1.2 - 30min.ini

Day-Night Cycle v1.2 - TEST.ini    - Hier light changing happens every tick.  For tests.

It can be copy-pasted into any map. Simply copy the text from the file and paste it into any empty space in your map file.
Also, delete the old Lighting section from your map.
You don't need to do anything else. Everything will work.

The duration of day and night can be easily configured in the [Events] section. 

If radiation was applied during a lighting change, post-radiation artifacts will appear. When the day comes, these are erased by an invisible lamp.

If your map has lamps, they won't work properly. They should be removed.

You need to take into account that in a real game the time will be longer due to lags. 60, 45, 30 minutes it is time with ideal conditions without any lags.

I did this back in 2022 on  - O C E A N I A -   Now I've isolated the triggers that were previously mixed in with others.

As far as I know, from 2022 until now, Oceania was the only publicly available map with such a cycle implemented.
Now, I think there will be more )
We could also consider including this cycle as an option in the CNСNET client.

If you mention me inside your map file with this line, I will be pleased:
; Day-Night Cycle by CCCP84 v1.2. Made in 2022. Updated in 2025

 

                                                                                                                  - - - ADDING SOUNDS - - -


In order to use alternating night and day sounds in a cycle, invisible lamps are used; each lamp has sounds attached to it; Some lamps have a daytime sound that switches to a night sound at night and back to day; other lamps have either just a day or just a night sound and turn off the sound during non-working time.
Just place the desired lamp on the map.


L1.png.4af45749a2938befb9e561601ce97dcc.png

L2.png.7fb0459e9737f2230db42c4cd96e25c6.png

The assignment of sounds to lamps has already been done inside the Cycle:

[INREDLMP]
WorkingSound=_Amb_BirdsTemperate1   ; multitude of birds in the grove
NotWorkingSound=_Amb_CricketChirps  ; periodic sound of a cricket

[INGRNLMP]
WorkingSound=_Amb_BirdsTemperate2   ; the same loud chirping
NotWorkingSound=_Amb_CricketChirps   ; periodic sound of a cricket

[INBLULMP]
WorkingSound=_Amb_BirdsPark               ; classic bird calls
NotWorkingSound=_Amb_CricketChirps  ; periodic sound of a cricket

[INYELWLAMP]
WorkingSound=_Amb_BirdsJungle1          ; suitable as ordinary bird voices
NotWorkingSound=_Amb_CricketChirps  ; periodic sound of a cricket

[INPURPLAMP]
WorkingSound=_Amb_BirdsJungle2         ; characteristic jungle bird cries
NotWorkingSound=_Amb_CricketChirps  ; periodic sound of a cricket

[SNOMORLAMP]
WorkingSound=_Amb_DesertHawk          ; desert hawk cry
NotWorkingSound=_Amb_CricketChirps  ; periodic sound of a cricket

[INORANLAMP]
NotWorkingSound=_Amb_CricketBed      ; monotonous chirping of locusts

[TEMDUSLAMP]
NotWorkingSound=_Amb_CricketDesert  ; constant pleasant trill of crickets

[TEMNITLAMP]
NotWorkingSound=_Amb_BirdsNightOwl ; different owl cries

[TEMMORLAMP]
NotWorkingSound=_Amb_BirdsMorning   ; cry of a night bird

[TEMDAYLAMP]
WorkingSound=_Amb_BirdsBeach            ; various periodic cries of seagulls

[SNODAYLAMP]
WorkingSound=_Amb_BirdsHarbor           ; constant noise of seagulls


After this, each lamp needs to be assigned a corresponding tag. I created a script that will do this automatically. Unzip the exe file, place it in the same folder with MAP file and run it. Tags will be assigned to the lamps automatically.


CCCP84's Day-Night Cycle 1.2 Assigning Tags to Sound-Lamps (Put MAP file in same Folder).zip

 

Or you can run a python script if you install python before or you already have it installed:

CCCP84's Day-Night Cycle 1.2 Assigning Tags to Sound-Lamps (Put MAP file in same Folder)py.zip

Also, the MAP file and the Python script must be in the same folder. Just run the python file by double clicking.

When installing Python be sure to check the boxes:

Add Python to PATH

Add Python to environment variables

Associate files with Python


Other sounds such as wind, waves, river, etc. can be added using regular waypoints and triggers, as they don't need to be turned off at night or during the day.

If you notice any errors, that something is not working correctly, please report it in this thread.

If you accidentally placed a regular lamp instead of an invisible one, it is convenient to simply replace all the names of regular lamps in the map file with the corresponding invisible one in [Structures] section. ( edit replace replace all REDLAMP -> INREDLMP )

You can also temporarily use country flags as lamp images; flags are visible during the game and in the Final Alert 2, which is convenient for distinguishing between different sounds. Also you will not mix up the invisible lamp with a regular one when placing it; then do not forget to delete the "Image=" lines:

[INREDLMP]
Image=CAUSFGL
WorkingSound=_Amb_BirdsTemperate1   ; multitude of birds in the grove
NotWorkingSound=_Amb_CricketChirps  ; periodic sound of a cricket

[INGRNLMP]
Image=CARUFGL
WorkingSound=_Amb_BirdsTemperate2   ; the same loud chirping
NotWorkingSound=_Amb_CricketChirps  ; periodic sound of a cricket

[INBLULMP]
Image=CAFRFGL
WorkingSound=_Amb_BirdsPark               ; classic bird calls
NotWorkingSound=_Amb_CricketChirps  ; periodic sound of a cricket

[INYELWLAMP]
Image=CAIRFGL
WorkingSound=_Amb_BirdsJungle1          ; suitable as ordinary bird voices
NotWorkingSound=_Amb_CricketChirps  ; periodic sound of a cricket

[INPURPLAMP]
Image=CAUKFGL
WorkingSound=_Amb_BirdsJungle2         ; characteristic jungle bird cries
NotWorkingSound=_Amb_CricketChirps  ; periodic sound of a cricket

[SNOMORLAMP]
Image=CAPOFGL
WorkingSound=_Amb_DesertHawk          ; desert hawk cry
NotWorkingSound=_Amb_CricketChirps  ; periodic sound of a cricket

[TEMDUSLAMP]
Image=CASKFGL
NotWorkingSound=_Amb_CricketDesert  ; constant pleasant trill of crickets

[INORANLAMP]
Image=CACUFGL
NotWorkingSound=_Amb_CricketBed      ; monotonous chirping of locusts

[TEMNITLAMP]
Image=CALBFGL
NotWorkingSound=_Amb_BirdsNightOwl ; different owl cries

[TEMMORLAMP]
Image=CAGEFGL
NotWorkingSound=_Amb_BirdsMorning  
; cry of a night bird

[TEMDAYLAMP]
WorkingSound=_Amb_BirdsBeach            ; various periodic cries of seagulls

[SNODAYLAMP]
WorkingSound=_Amb_BirdsHarbor           ; constant noise of seagulls

 

1.thumb.jpg.60ed6d003fb703423194710647d15390.jpg

6.thumb.png.92c8acaf37cafca7343d727b37845be5.png

0.thumb.jpg.7e19ca4cc993b1af7c3359d99bfd6113.jpg
2.thumb.jpg.cac2ad09a088dd6b3a5498d3ea9a73c7.jpg
3.thumb.jpg.767c78043e9e19fcaa5328e0bc029254.jpg
4.thumb.jpg.617e3e4b0e99ca646375e52b2bf2b2eb.jpg

5.thumb.jpg.2408eef3467eb639b093fb3949473c7a.jpg

Edited by CCCP84
Posted (edited)

I did this when there was a war outside my window, I lived practically on the front line near Kharkov and did this during the breaks when the electricity was restored after shells had crumbled the wires on the poles into noodles )

Edited by CCCP84
  • CCCP84 changed the title to - - - Day-Night Cycle - - - With Day-Night Sounds! for any map by CCCP84
Posted (edited)

I have improved the cycle in such a way that it is possible to add night and day sounds to it.
This creates additional immersion in the atmosphere of the night.

I have already implemented this Сycle with Night Sounds on  
- O C E A N I A -  ,  - BLACK SEA -  and  - S T O R M - 
These versions will be released along with the next CNCNET update.

Edited by CCCP84
Posted (edited)

I made a file that automatically integrates the cycle into the map, nothing else needs to be done. Just unzip the file from the archive into the same folder where the map is located and run it :

 CCCP84's Day-Night Cycle 1.2. Integrate full Cycle into the Map (Put MAP file in same Folder).exe.zip 

Or run Pyton file if you have Pyton installed:

 CCCP84's Day-Night Cycle 1.2. Integrate full Cycle into the Map (Put MAP file in same Folder).py.zip 

( If there are lamps on your map, you need to remove them first )

cycle.png.3559442bd2bca055dbaa694cf4bd2aef.png

Edited by CCCP84
Posted
On 10/30/2025 at 9:16 PM, CCCP84 said:

I have improved the cycle in such a way that it is possible to add night and day sounds to it.
This creates additional immersion in the atmosphere of the night.

I have already implemented this Сycle with Night Sounds on  
- O C E A N I A -  ,  - BLACK SEA -  and  - S T O R M - 
These versions will be released along with the next CNCNET update.

I see from your screenshots that the cycle only changes the brightness, but did you know you can also change the colour of lighting with triggers for red, green and blue, to create sunrise and sunset colours.

Posted (edited)
5 hours ago, [CC] RaVaGe said:

I see from your screenshots that the cycle only changes the brightness, but did you know you can also change the colour of lighting with triggers for red, green and blue, to create sunrise and sunset colours.

No, the brightness doesn't change there, it's the red, green, and blue tint that changes.
If only change the brightness, it feels like the monitor has simply become darker, this is absolutely unacceptable.

You can see in screenshot that the shades are changing. One screenshot has more red colors, another is greener, the night is blue, and so on.

Edited by CCCP84
Posted
On 9/21/2025 at 10:43 PM, CCCP84 said:

It was a huge work done in 2022
8.thumb.jpg.1128e53ea23f7e91b8731b646f97d18e.jpg9.thumb.jpg.be30a600a83ce7a176523ce0d8fe8706.jpg

Even in these photos and screenshots, you can see that the tables have three parameters, just like in the file names. These are the color values for red, blue, and green. In fact, I spent a huge amount of effort creating a smooth transition to night and back, so that it would look beautiful, or at least acceptable. I found several very successful combinations. Others, not so successful. There could be thousands of such scenarios. I came up with one. Perhaps there are better scenarios. Now we already have a baseline to work from. If anyone ever wants, they can experiment with the color parameters, perhaps trying to achieve a better result.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...