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!

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

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.

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
 

[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.

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

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...