Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Wed Nov 19, 2025 10:49 pm
All times are UTC + 0
- - - Day-Night Cycle - - - With Day-Night Sounds! for any map by CCCP84
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [18 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Andrew84
Cyborg Engineer


Joined: 20 Dec 2020

PostPosted: Sun Sep 21, 2025 8:55 pm    Post subject:  - - - Day-Night Cycle - - - With Day-Night Sounds! for any map by CCCP84 Reply with quote  Mark this post and the followings unread

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

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. (Look Attachments) ( How to add night sounds, read below )

Or you can make it manually:

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

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

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



L2.png
 Description:
 Filesize:  19.45 KB
 Viewed:  1055 Time(s)

L2.png



L1.png
 Description:
 Filesize:  26.31 KB
 Viewed:  1055 Time(s)

L1.png



CCCP84's Day-Night Cycle 1.2. Integrate full Cycle into the Map (Put MAP file in same Folder).py.zip
 Description:
The file automatically integrates the entire cycle into the map file (Python required)

Download
 Filename:  CCCP84's Day-Night Cycle 1.2. Integrate full Cycle into the Map (Put MAP file in same Folder).py.zip
 Filesize:  8.74 KB
 Downloaded:  2 Time(s)


CCCP84's Day-Night Cycle 1.2. Integrate full Cycle into the Map (Put MAP file in same Folder).exe.zip
 Description:
The file automatically integrates the entire cycle into the map file

Download
 Filename:  CCCP84's Day-Night Cycle 1.2. Integrate full Cycle into the Map (Put MAP file in same Folder).exe.zip
 Filesize:  6.77 MB
 Downloaded:  1 Time(s)


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

Download
 Filename:  CCCP84's Day-Night Cycle 1.2 Assigning Tags to Sound-Lamps (Put MAP file in same Folder)py.zip
 Filesize:  1.3 KB
 Downloaded:  1 Time(s)


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

Download
 Filename:  CCCP84's Day-Night Cycle 1.2 Assigning Tags to Sound-Lamps (Put MAP file in same Folder).zip
 Filesize:  6.76 MB
 Downloaded:  0 Time(s)


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

Download
 Filename:  Day-Night Cycle v1.2 - 60min.ini
 Filesize:  29 KB
 Downloaded:  2 Time(s)


Day-Night Cycle v1.2 - 45min.ini
 Description:

Download
 Filename:  Day-Night Cycle v1.2 - 45min.ini
 Filesize:  28.99 KB
 Downloaded:  0 Time(s)


Day-Night Cycle v1.2 - 30min.ini
 Description:

Download
 Filename:  Day-Night Cycle v1.2 - 30min.ini
 Filesize:  29 KB
 Downloaded:  1 Time(s)


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

Download
 Filename:  Day-Night Cycle v1.2 - TEST.ini
 Filesize:  28.85 KB
 Downloaded:  1 Time(s)


Last edited by Andrew84 on Sat Nov 01, 2025 6:57 pm; edited 17 times in total

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Mon Sep 22, 2025 2:30 am    Post subject: Re: - - - Day-Night Cycle - - - for any map by CCCP84 Reply with quote  Mark this post and the followings unread

Andrew84 wrote:
As far as I know, from 2022 until now, Oceania was the only publicly available map with such a cycle implemented.


Fan made maps have been using day to night cycles since the Final Alert map maker was released 26 years ago. You can make the same lighting changes in TS maps too, so this has been common knowledge since before the game was even released..

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Andrew84
Cyborg Engineer


Joined: 20 Dec 2020

PostPosted: Mon Sep 22, 2025 5:40 am    Post subject: Reply with quote  Mark this post and the followings unread

I've never seen a map like this.
Can you show me?
I don't think such a full-blown smooth retint has ever been used anywhere. A simple brightness adjustment doesn't produce the desired effect. This is something completely different. It's a completely different level.

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Mon Sep 22, 2025 8:42 am    Post subject: Reply with quote  Mark this post and the followings unread

If you search the forum you can find several old topics about day night cycles, you should be able find some maps in the archive with day night cycles too.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Andrew84
Cyborg Engineer


Joined: 20 Dec 2020

PostPosted: Mon Sep 22, 2025 10:16 am    Post subject: Reply with quote  Mark this post and the followings unread

When I was doing my cycle, I didn't find anything. The most I was told was that someone was doing ambient triggers, which is completely unsuitable for this purpose.
There has never been, and still isn't, a fully functional cycle suitable for use. Other than that.

Back to top
View user's profile Send private message
Overmind
AA Infantry


Joined: 05 May 2022

PostPosted: Thu Oct 02, 2025 12:00 pm    Post subject: Reply with quote  Mark this post and the followings unread

You can use trigger loop to cycle through light level and basically simulate day/night.

_________________
Red Alert 2 Yuri's Revenge Apocalypse mod:

https://www.moddb.com/mods/apocalypse1

Back to top
View user's profile Send private message
Andrew84
Cyborg Engineer


Joined: 20 Dec 2020

PostPosted: Fri Oct 03, 2025 6:19 am    Post subject: Reply with quote  Mark this post and the followings unread

What is trigger loop?
Isn't it exactly that what i used in my cycle?

Back to top
View user's profile Send private message
Pandaprewmaster325
Soldier


Joined: 14 May 2025
Location: Syria

PostPosted: Sat Oct 04, 2025 2:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

GREAT idea for extra immersion ,  wonder if this works on campagin missions too something like the soviets invading new York at evening and deploying the psychic beacon during afternoon or night makes for better storytelling element

_________________
SQUARE ENIX REMAKE FINAL FANTASY 2

Back to top
View user's profile Send private message
Andrew84
Cyborg Engineer


Joined: 20 Dec 2020

PostPosted: Sat Oct 04, 2025 8:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

Doing this for the campaign mission won't be a big problem if someone wants to do it

Back to top
View user's profile Send private message
McPwny
Chem Warrior


Joined: 29 Jan 2018

PostPosted: Wed Oct 08, 2025 7:40 am    Post subject: Reply with quote  Mark this post and the followings unread

for those of you that dont know, this isnt simply the inbuilt ambient lighting system and is
instead an intricate series of triggers that use the retint actions. means better lighting
emulation than before, particularly for sunrise and sunset.

_________________
visit my moddb profile for .shp downloads and stuff

Back to top
View user's profile Send private message
Pandaprewmaster325
Soldier


Joined: 14 May 2025
Location: Syria

PostPosted: Fri Oct 10, 2025 12:25 am    Post subject: Reply with quote  Mark this post and the followings unread

Not that it matters , red alert 2 games don't last over 20 minutes since everyone loves to play at speed 5.....

_________________
SQUARE ENIX REMAKE FINAL FANTASY 2

Back to top
View user's profile Send private message
Andrew84
Cyborg Engineer


Joined: 20 Dec 2020

PostPosted: Fri Oct 10, 2025 7:31 am    Post subject: Reply with quote  Mark this post and the followings unread

Games with tanks and dogs, yes. But some people play strategy games.



5.jpg
 Description:
 Filesize:  37.97 KB
 Viewed:  3724 Time(s)

5.jpg



4.jpg
 Description:
 Filesize:  38.52 KB
 Viewed:  3724 Time(s)

4.jpg



2.jpg
 Description:
 Filesize:  51.17 KB
 Viewed:  3724 Time(s)

2.jpg



1.jpg
 Description:
 Filesize:  43.83 KB
 Viewed:  3724 Time(s)

1.jpg



3.jpg
 Description:
 Filesize:  35.61 KB
 Viewed:  3724 Time(s)

3.jpg



Back to top
View user's profile Send private message
Andrew84
Cyborg Engineer


Joined: 20 Dec 2020

PostPosted: Fri Oct 31, 2025 11:11 am    Post subject: Reply with quote  Mark this post and the followings unread

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.

Back to top
View user's profile Send private message
Pandaprewmaster325
Soldier


Joined: 14 May 2025
Location: Syria

PostPosted: Wed Nov 05, 2025 1:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

Those are some pretty lengthy games i didn't expect to see those
Would it be possible to implement some mechanic that lowers line of sight during night especially for tanks

_________________
SQUARE ENIX REMAKE FINAL FANTASY 2

Back to top
View user's profile Send private message
Andrew84
Cyborg Engineer


Joined: 20 Dec 2020

PostPosted: Thu Nov 06, 2025 9:33 am    Post subject: Reply with quote  Mark this post and the followings unread

Pandaprewmaster325 wrote:
Those are some pretty lengthy games i didn't expect to see those
Would it be possible to implement some mechanic that lowers line of sight during night especially for tanks


I don't think so. It might be possible to make a fog on war for the entire game, but not just for night or day.

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Thu Nov 06, 2025 12:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

You could make the shroud regrow at night

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Andrew84
Cyborg Engineer


Joined: 20 Dec 2020

PostPosted: Thu Nov 06, 2025 4:07 pm    Post subject: Reply with quote  Mark this post and the followings unread

Mig Eater wrote:
You could make the shroud regrow at night


No, I think this is a bad idea, no one will like it in the game.

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Thu Nov 06, 2025 5:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

Probably is a bad idea, just saying you can change the shroud with the day and night cycle, which is probably the closest thing to Panda's suggestion.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [18 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.2470s ][ Queries: 20 (0.0177s) ][ Debug on ]