• Register

A free competitive first person shooter based on the demo that is available with UDK. Use your guns, sword, jet boots and your ability to temporarily attain invisibility to gain the upper hand on your opponents and, ultimately, win your battles.

Add file UDK Time of Day (Day/Night) Cycle System v1.0
Location
Games : Feud : Files
Filename
UDK_Time_of_Day_Day_Night_Cycle_Light_v1.0.zip
Category
Source Code
Uploader
Sohair
Added
Size
6.16mb (6,454,096 bytes)
Downloads
1,528 (1 today)
MD5 Hash
900aff507fd89812497ccff8e33c6c2f
Embed Button
Embed Widget
Description

This zip download contains two files. The first is the source code for the Time of Day Cycle light which has the name "DominantDirectionalLightTimeOfDay.uc". The second is a test map that has the light placed in it for you to try in the UDK Editor. The purpose of this DirectionalLight was to create an easily placeable and easy to use system that could simulate the entire Time of Day (Day/Night) cycle on its own in UDK, requiring only a few settings from the developers making development easier for them.

Preview
UDK Time of Day (Day/Night) Cycle System v1.0
Comments
Chr0n0s85
Chr0n0s85

Thank you for this, really helpful.

Reply Good karma Bad karma+1 vote
Sohair Author
Sohair

You're welcome! Check back for the article I'll upload soon explaining the in-Editor usage. Feedback is very welcome.

Reply Good karma+1 vote
TeamL2DandCompany
TeamL2DandCompany

Thank a lot! I was searching for a Day / Night Placeable class for my learning of Unreal Script;)
I want to add a texture when the light touch the skybox, with my 'starting idea' i want to see the moon on night in place of the simple "light"
It goes take me a bit of research in the codes. Thank you again!

Reply Good karma Bad karma+1 vote
Sohair Author
Sohair

You're welcome! I think for what you want to do, you'll also need to modify the sky materials, especially the Night one which this code uses by default. I'm not an expert on materials but the texture that appears where the light hits the dome will probably need to be replaced by a Moon texture instead. I'll look more into this, if I can, and get back to you if I find something.

Reply Good karma+1 vote
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

coldscooter
coldscooter

Thanks for submitting your work. I don't seem to be able to get it working though. I've added the class to my src/mygame folder, and added the map file. I load up the map fine, but the light never seems to change.

Are there other steps required to get it working?

Reply Good karma Bad karma+1 vote
Sohair Author
Sohair

You're welcome. Add the code to \Src\Engine\Classes. Then, once you start the editor, it will tell you that the scripts need to be recompiled. Press Yes to do that.

Reply Good karma+1 vote
coldscooter
coldscooter

Ok great. Now it's working, although would be nice to be able to add to my game folder rather than Engine.

May I ask, are there params to allow me to adjust the colors for moonlight? I'd like to put a bluish filter over it.

Great work though. Thanks :)

Reply Good karma Bad karma+1 vote
Sohair Author
Sohair

You're welcome! :)

Actually, you could add it to your game folder too but you'll have to add your game folder's name to an ini file (don't exactly remembet which. Will tell you later) for the unrealscript compiler to detect and then compile it.

Yes, you can adjust the light colors. You can adjust loads of things. Double click the light placed in the map and a properties window will pop up. That's where you make your changes. Here: Indiedb.com

Under both Bloom Colors and Light Colors drop downs, the second values correspond to night time. You can also hover over the properties to get a description of them.

Reply Good karma+1 vote
Sohair Author
Sohair

Yeah, here it is. Open UDKGame\Config\DefaultEngine.ini and add your folder name at the end of this:

[UnrealEd.EditorEngine]
+EditPackages=UTGame
+EditPackages=UTGameContent
+EditPackages=<your game name>

Reply Good karma+1 vote
maicogirardi
maicogirardi

Amazing!! Help me a lot!!!! tks

Reply Good karma Bad karma+1 vote
Sohair Author
Sohair

No problem. You're welcome! :)

Reply Good karma+1 vote
Dharaan
Dharaan

Hi, i pasted the .uc file in D:\UDK\UDK-2014-08\Development\Src\Engine\Classes folder, but when i starting the editor nothing to happen. i mean the editor doesn't ask to me the scripts rebuilt question, and i can't find the .uc file in the actor classes.

i am a begginer in udk, sry if it is a noob question, and sry for my english too.

thanks a lot!

Reply Good karma Bad karma+1 vote
Sohair Author
Sohair

Hi, Dharaan! Sorry for the late reply and no need to apologize.

This is exactly where you are supposed to copy the .uc file and it is odd that the editor hasn't asked you to recompile the scripts.

If the problem is still there then, could you please send me a PM (or email me) with the screenshots of exactly what you've done? I might be able to identify the issue that way.

Reply Good karma+1 vote
Guest
Guest

Im having the same issue as Dharaan, Is there any way of fixing this? Thanks.

Reply Good karma Bad karma0 votes
Sohair Author
Sohair

Sorry for replying so late. If you're checking back on this comment, email me or send me a Private Message here with your problem and the exact steps that you took while adding this to your UDK.

Reply Good karma+1 vote
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Profile
Icon
Feud
Platforms
Windows
Creator
Sohair
Contact
Send Message
Release date
Game watch
Follow
Purchase
File
Browse
Files
New
Add file
Share
Related Games
Feud
Feud First Person Shooter
Related Engines
Unreal Development Kit
Unreal Development Kit Commercial
Related Groups
UDK Developer's Group
UDK Developer's Group Hardware & Tech with 692 members