Author Topic: Day & Night Mod (Server-side)  (Read 4717 times)

I feel as if we should have a mod that allows Day & Night to take place during playing on a map.
The Day & Night would have 8 lighting modes and 4 Skybox modes.
The lighting would change every 5 minutes to the next lighting mode and the Skybox would change every 10 minutes to the next Skybox mode.
I have uploaded a Chart of the cycle:


I believe this can be done with Timers, "If"s, And Skybox, and Sun Datablock Property Changing.
This should work on ANY map, and can be modified of its properties on the RTB Server Options Tab. Such as:

Switch modes every: 1 - 5 Minutes
Day Skybox: [Directory of the Skybox]
Night Skybox: [Directory of the Skybox]
Morning Skybox: [Directory of the Skybox]
Sunset Skybox: [Directory of the Skybox]
Day and Night Cycle Enabled: [Checkbox here)

When the cycle is complete it will reset and start all over again.

I heard it was impossible to change skyboxes.  :panda:

It's impossible.  One, there's a special "Lighting Mission" message that everyone has probably seen.

However, if you would like a 'cycled' Lighting and Skybox, I am sorry to report that it can't happen.  This, one, would require a different file type that does not work on Torque game script.  and it cant happen because the .mis File doesn't recognize that kind of file.

I think if the sky box was changed to something a player did't have ingame they would crash.

Munk has this on his server, but its private.

brian smith must gave his mod to him i saw it on a topic

1. day night transitions
2. random rain snow


 :cookieMonster:
I do want to put the day/night transitions in.  They would work really well because all of the brick lighting is dynamic.  However, to put them in I would have to break network compatibility and I want to avoid that for now. 

Of course this is really old now. Any change baddy? :p

Munk has this on his server, but its private.
Is that a attempt to make me jelious or something? Cause its not working.
If not,
Lol sorry :P

-quote-
Of course this is really old now. Any change baddy? :p
Is Badspot realy going to add that?

I made one of these using code from Craftsmen and various bits and pieces of knowledge about skyboxes and suns from the forums. It works pretty well. The sun moves across the sky (rather stiltedly though) and changes color, and the sky gets darker at night and stuff.

All I need is the right name for the sun object to make it actually appear instead of just being ambient light.

I made one of these using code from Craftsmen
I made the entire thing, you didn't make stuff.

These aren't exactly what Tyler's asking for but it's pretty close, although you can't edit any preferences (all of the values are hard-coded). The skybox only changes color.
Events/System: http://www.mediafire.com/download.php?xdcznyyhhgw
Map: http://www.mediafire.com/download.php?0t2ncmmgnnk


So do the events only work on that map or do they work on any map?
Any map, but the map won't work without the events, and only maps programmed to work with day and night will change skybox and whatnot.


Events/System: http://www.mediafire.com/download.php?xdcznyyhhgw
Map: http://www.mediafire.com/download.php?0t2ncmmgnnk
I will try these out, but...Why is the download (thats in bold) starts with the prefix "Event"? Other than that Il try these out.

I will try these out, but...Why is the download (thats in bold) starts with the prefix "Event"? Other than that Il try these out.
On Day/On Night - Self/Minigame/NAMED BRICK - Whatever

EDIT: How long does it take to change from Day to Night and vise versa? Never mind...

Double EDIT: Didn't Plornt have something like this, too?
« Last Edit: July 11, 2010, 10:21:13 PM by Julius The 1st »