Custom Emergency Light Colors
aeroripper
Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
<div class="IPBDescription">Pitch black, green, blue, mustard, violet, blended colors, etc...</div><b><!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo--><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->[UPDATE 8/4/11 - Blended Ambient Colors]<!--colorc--></span><!--/colorc--><!--sizec--></span><!--/sizec--></b>
Been tinkering some more and found a way to change the colors of the powered down, ambient lights in addition to the normal disabled color. Examples:
<a href="http://imageshack.us/photo/my-images/847/blended1.png/" target="_blank"><img src="http://img847.imageshack.us/img847/5306/blended1.th.png" border="0" class="linked-image" /></a> <b> Gold and Blue Ambient</b>
<a href="http://imageshack.us/photo/my-images/171/blended2.png/" target="_blank"><img src="http://img171.imageshack.us/img171/1914/blended2.th.png" border="0" class="linked-image" /></a> <b> Dark purple with Bluish Ambient</b>
<a href="http://imageshack.us/photo/my-images/231/blended3.png/" target="_blank"><img src="http://img231.imageshack.us/img231/975/blended3.th.png" border="0" class="linked-image" /></a> <b> Lime Green with Light Blue Ambient</b>
<a href="http://imageshack.us/photo/my-images/839/3colors2.jpg/" target="_blank"><img src="http://img839.imageshack.us/img839/5601/3colors2.th.jpg" border="0" class="linked-image" /></a> <b>Red Primary / Purple / Blue Ambient. 3 colors on this one (using PowerPoint.kDisabledColor3 on color_up color_down IIRC) </b>
1) Go into your PowerPoint_Client.lua again and go to this line (your color may be different, follow the instructions below so you know how it works):
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PowerPoint.kDisabledColor = Color(109/255, 239/255, 52/220)<!--c2--></div><!--ec2-->
2) Now add this new line under it:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PowerPoint.kDisabledColor2 = Color(17/255, 148/255, 223/255)<!--c2--></div><!--ec2-->
It should now look like this in your file:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PowerPoint.kDisabledColor = Color(109/255, 239/255, 52/220)
PowerPoint.kDisabledColor2 = Color(17/255, 148/255, 223/255)<!--c2--></div><!--ec2-->
3)Now go down to line 190 and edit the ambient lights to point to your new PowerPoint.kDisabledColor2 line you just created:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if renderLight:GetType() == RenderLight.Type_AmbientVolume then
color_right = PowerPoint.kDisabledColor2
color_left = PowerPoint.kDisabledColor2
color_up = PowerPoint.kDisabledColor2
color_down = PowerPoint.kDisabledColor2
color_forward = PowerPoint.kDisabledColor2
color_backward = PowerPoint.kDisabledColor2<!--c2--></div><!--ec2-->
4) Now scroll down to line 228 and do the exact same thing again with those since they're identical. Not sure if this is necessary but I did it anyways.
5) That's it. Enter in the color your want for you primary lighting in unpowered rooms, then edit your secondary one you created for the ambient lighting colors.
Technically you could do "PowerPoint.kDisabledColor3" and so on and do a different color for each direction of lighting, but it didn't quite seem to look right, or at all. I found everything looks better using one color for your primary, and one color for your ambient. I played around with having the color_up and color_down colors a 3rd separate color, but it usually clashed a bit.
Maybe some of you guys are more artsy than me and can make 3 colors blend better together than I can.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
I got the idea for this from this thread from Feha (to give marines pitch black lighting). I know not everyone loves the red coloring. Note this is a <!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><b>Client Side</b><!--sizec--></span><!--/sizec--> mod only.
<a href="http://www.unknownworlds.com/ns2/forums/index.php?showtopic=114180&view=findpost&p=1860723" target="_blank">http://www.unknownworlds.com/ns2/forums/in...t&p=1860723</a>
I was tinkering around and figured out a way to change the emergency lighting to give you whatever color you want. Here is how to do it:
1) Open PowerPoint_Client.lua (don't forget to backup original!) in your natural selection 2\ns2\lua folder. Highly recommend using a program like Notepad++, but any text editor will do.
2) Go to line 9 right at the top. It show show this (this is the line you'll need to edit:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PowerPoint.kDisabledColor = Color(1, 0, 0)<!--c2--></div><!--ec2-->
This is your standard RGB value with the alpha value. So for example for a yellowish/orangish color I would use 139/255, 69/255, 0/255. so the code would look like this:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PowerPoint.kDisabledColor = Color(139/255, 69/255, 0/255)<!--c2--></div><!--ec2-->
Any updates to this file (once saved) will instantly be updated in the running game, so trying out other colors is easy.
Useful color chart:
<a href="http://www.procato.com/color+wheel/" target="_blank">http://www.procato.com/color+wheel/</a>
Useful real world RGB colors:
<a href="http://planetpixelemporium.com/tutorialpages/light.html" target="_blank">http://planetpixelemporium.com/tutorialpages/light.html</a>
<b>Examples:</b>
<a href="http://imageshack.us/photo/my-images/708/redll.png/" target="_blank"><img src="http://img708.imageshack.us/img708/7978/redll.th.png" border="0" class="linked-image" /></a> <b>Default Red</b>
<a href="http://imageshack.us/photo/my-images/810/blackw.png/" target="_blank"><img src="http://img810.imageshack.us/img810/5617/blackw.th.png" border="0" class="linked-image" /></a> <b>Pitch Black (flashlight required!)</b>
<a href="http://imageshack.us/photo/my-images/195/blueo.png/" target="_blank"><img src="http://img195.imageshack.us/img195/6562/blueo.th.png" border="0" class="linked-image" /></a> <b>Blue (some blueish black colors look almost like a blacklight)</b>
<a href="http://imageshack.us/photo/my-images/560/mustard.png/" target="_blank"><img src="http://img560.imageshack.us/img560/9446/mustard.th.png" border="0" class="linked-image" /></a> <b>Mustard</b>
<a href="http://imageshack.us/photo/my-images/718/purpleq.png/" target="_blank"><img src="http://img718.imageshack.us/img718/5313/purpleq.th.png" border="0" class="linked-image" /></a> <b>Violet</b>
<a href="http://imageshack.us/photo/my-images/853/favoritey.png/" target="_blank"><img src="http://img853.imageshack.us/img853/5033/favoritey.th.png" border="0" class="linked-image" /></a> <b>This one is my favorite! (255/255, 69/255, 0/255)</b>
Been tinkering some more and found a way to change the colors of the powered down, ambient lights in addition to the normal disabled color. Examples:
<a href="http://imageshack.us/photo/my-images/847/blended1.png/" target="_blank"><img src="http://img847.imageshack.us/img847/5306/blended1.th.png" border="0" class="linked-image" /></a> <b> Gold and Blue Ambient</b>
<a href="http://imageshack.us/photo/my-images/171/blended2.png/" target="_blank"><img src="http://img171.imageshack.us/img171/1914/blended2.th.png" border="0" class="linked-image" /></a> <b> Dark purple with Bluish Ambient</b>
<a href="http://imageshack.us/photo/my-images/231/blended3.png/" target="_blank"><img src="http://img231.imageshack.us/img231/975/blended3.th.png" border="0" class="linked-image" /></a> <b> Lime Green with Light Blue Ambient</b>
<a href="http://imageshack.us/photo/my-images/839/3colors2.jpg/" target="_blank"><img src="http://img839.imageshack.us/img839/5601/3colors2.th.jpg" border="0" class="linked-image" /></a> <b>Red Primary / Purple / Blue Ambient. 3 colors on this one (using PowerPoint.kDisabledColor3 on color_up color_down IIRC) </b>
1) Go into your PowerPoint_Client.lua again and go to this line (your color may be different, follow the instructions below so you know how it works):
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PowerPoint.kDisabledColor = Color(109/255, 239/255, 52/220)<!--c2--></div><!--ec2-->
2) Now add this new line under it:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PowerPoint.kDisabledColor2 = Color(17/255, 148/255, 223/255)<!--c2--></div><!--ec2-->
It should now look like this in your file:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PowerPoint.kDisabledColor = Color(109/255, 239/255, 52/220)
PowerPoint.kDisabledColor2 = Color(17/255, 148/255, 223/255)<!--c2--></div><!--ec2-->
3)Now go down to line 190 and edit the ambient lights to point to your new PowerPoint.kDisabledColor2 line you just created:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if renderLight:GetType() == RenderLight.Type_AmbientVolume then
color_right = PowerPoint.kDisabledColor2
color_left = PowerPoint.kDisabledColor2
color_up = PowerPoint.kDisabledColor2
color_down = PowerPoint.kDisabledColor2
color_forward = PowerPoint.kDisabledColor2
color_backward = PowerPoint.kDisabledColor2<!--c2--></div><!--ec2-->
4) Now scroll down to line 228 and do the exact same thing again with those since they're identical. Not sure if this is necessary but I did it anyways.
5) That's it. Enter in the color your want for you primary lighting in unpowered rooms, then edit your secondary one you created for the ambient lighting colors.
Technically you could do "PowerPoint.kDisabledColor3" and so on and do a different color for each direction of lighting, but it didn't quite seem to look right, or at all. I found everything looks better using one color for your primary, and one color for your ambient. I played around with having the color_up and color_down colors a 3rd separate color, but it usually clashed a bit.
Maybe some of you guys are more artsy than me and can make 3 colors blend better together than I can.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
I got the idea for this from this thread from Feha (to give marines pitch black lighting). I know not everyone loves the red coloring. Note this is a <!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><b>Client Side</b><!--sizec--></span><!--/sizec--> mod only.
<a href="http://www.unknownworlds.com/ns2/forums/index.php?showtopic=114180&view=findpost&p=1860723" target="_blank">http://www.unknownworlds.com/ns2/forums/in...t&p=1860723</a>
I was tinkering around and figured out a way to change the emergency lighting to give you whatever color you want. Here is how to do it:
1) Open PowerPoint_Client.lua (don't forget to backup original!) in your natural selection 2\ns2\lua folder. Highly recommend using a program like Notepad++, but any text editor will do.
2) Go to line 9 right at the top. It show show this (this is the line you'll need to edit:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PowerPoint.kDisabledColor = Color(1, 0, 0)<!--c2--></div><!--ec2-->
This is your standard RGB value with the alpha value. So for example for a yellowish/orangish color I would use 139/255, 69/255, 0/255. so the code would look like this:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PowerPoint.kDisabledColor = Color(139/255, 69/255, 0/255)<!--c2--></div><!--ec2-->
Any updates to this file (once saved) will instantly be updated in the running game, so trying out other colors is easy.
Useful color chart:
<a href="http://www.procato.com/color+wheel/" target="_blank">http://www.procato.com/color+wheel/</a>
Useful real world RGB colors:
<a href="http://planetpixelemporium.com/tutorialpages/light.html" target="_blank">http://planetpixelemporium.com/tutorialpages/light.html</a>
<b>Examples:</b>
<a href="http://imageshack.us/photo/my-images/708/redll.png/" target="_blank"><img src="http://img708.imageshack.us/img708/7978/redll.th.png" border="0" class="linked-image" /></a> <b>Default Red</b>
<a href="http://imageshack.us/photo/my-images/810/blackw.png/" target="_blank"><img src="http://img810.imageshack.us/img810/5617/blackw.th.png" border="0" class="linked-image" /></a> <b>Pitch Black (flashlight required!)</b>
<a href="http://imageshack.us/photo/my-images/195/blueo.png/" target="_blank"><img src="http://img195.imageshack.us/img195/6562/blueo.th.png" border="0" class="linked-image" /></a> <b>Blue (some blueish black colors look almost like a blacklight)</b>
<a href="http://imageshack.us/photo/my-images/560/mustard.png/" target="_blank"><img src="http://img560.imageshack.us/img560/9446/mustard.th.png" border="0" class="linked-image" /></a> <b>Mustard</b>
<a href="http://imageshack.us/photo/my-images/718/purpleq.png/" target="_blank"><img src="http://img718.imageshack.us/img718/5313/purpleq.th.png" border="0" class="linked-image" /></a> <b>Violet</b>
<a href="http://imageshack.us/photo/my-images/853/favoritey.png/" target="_blank"><img src="http://img853.imageshack.us/img853/5033/favoritey.th.png" border="0" class="linked-image" /></a> <b>This one is my favorite! (255/255, 69/255, 0/255)</b>
This discussion has been closed.
Comments
<a href="http://imageshack.us/photo/my-images/585/ns22011072116165105.jpg/" target="_blank"><img src="http://img585.imageshack.us/img585/5200/ns22011072116165105.th.jpg" border="0" class="linked-image" /></a> <b>Amber</b>
<a href="http://imageshack.us/photo/my-images/809/ns22011072821303539.jpg/" target="_blank"><img src="http://img809.imageshack.us/img809/208/ns22011072821303539.th.jpg" border="0" class="linked-image" /></a> <b>TSA blue?</b>
<a href="http://imageshack.us/photo/my-images/708/ns22011072821284537.jpg/" target="_blank"><img src="http://img708.imageshack.us/img708/5636/ns22011072821284537.th.jpg" border="0" class="linked-image" /></a>
or...
<a href="http://imageshack.us/photo/my-images/199/ns22011072821312182.jpg/" target="_blank"><img src="http://img199.imageshack.us/img199/7424/ns22011072821312182.th.jpg" border="0" class="linked-image" /></a> <b>White</b> :S
I wonder, how would modifying the alpha affect the lighting? ;)
"ColorIntToColor(0x8B4500)" or "ColorIntToColor( ColorArrayToInt( {139, 69, 0} ) )" would be the same like "Color (139/255 , 69/255 , 0)"
edit: lol, we had the same idea at the same time and posted it in the same minute. How probable is that?
edit2: changed 256 to 255
ah, you're correct. the Utility.lua divides by 0xFF (which is the same as 255).
Going to take a look @ playing with light timings and alternative flash patterns next. Also going to see if its possible to change the powernode "lights off" color from yellow to something else.
@ Twighlight blue, I really like the TSA marine. I used 0/255, 102/255, 187/255 for a bit darker version of that which looks good too. The white reminds me of more "real world" emergency lighting.
Going to take a look @ playing with light timings and alternative flash patterns next. Also going to see if its possible to change the powernode "lights off" color from yellow to something else.
@ Twighlight blue, I really like the TSA marine. I used 0/255, 102/255, 187/255 for a bit darker version of that which looks good too. The white reminds me of more "real world" emergency lighting.<!--QuoteEnd--></div><!--QuoteEEnd-->
Looks great. I was initially trying to make the lighting colour look really dark, as if the eyes cannot see colour. But it didn't work so well, so I decided to go with the twilight theme. :P
Alternative light cycling pattern would be great. I imagine unpowered room would become terrifying if the light goes out for more than 3 seconds at a time!
I mean come on you see more with some other colors then red.
E.g.:
<img src="http://img708.imageshack.us/img708/7978/redll.png" border="0" class="linked-image" />
<img src="http://img560.imageshack.us/img560/9446/mustard.png" border="0" class="linked-image" />
I mean come on you see more with some other colors then red.<!--QuoteEnd--></div><!--QuoteEEnd-->
True, but they're currently a plethora of engine commands that give players far more advantage than just customizing the emergency light colors. It would be nice to see server ops be able to do custom colors on holidays and such if the game gets servers to download custom .lua files and other neat effects. Eventually servers should get the ability to force consistency on certain files before being allowed to join ala NS1, if it proves to be a problem.
Maybe it is this small trick : always look at the minimap. The enemies are shown as soon as in the field of view (often before than we see them properly...)
Sure, but the minimap doesn't tell you the location vertically. It's quite obvious when they are using that exploit when the run in and immediately start shooting at you in complete darkness.
Assume either on the floor or right above you. It takes a fraction of a second to decide which and start shooting.
Those pictures are super funky! Time to raaaaave! I love the red spot light on blue ambience!
lol thought the same, waiting for gorge rave mod
Good work!
if the darkness somewhat increased just bit more in this, almost to the point flashlight is required. I liked this one the most if lightning can be better adjusted.
I like to add when power node goes down, everything in the room should favor aliens, so darkness, hard to see spots and creepy lightning is needed.
if the darkness somewhat increased just bit more in this, almost to the point flashlight is required. I liked this one the most if lightning can be better adjusted.
I like to add when power node goes down, everything in the room should favor aliens, so darkness, hard to see spots and creepy lightning is needed.<!--QuoteEnd--></div><!--QuoteEEnd-->
How's this?
<a href="http://imageshack.us/photo/my-images/62/skulkchill.png/" target="_blank"><img src="http://img62.imageshack.us/img62/406/skulkchill.th.png" border="0" class="linked-image" /></a>
It's quite a bit darker but still the golden/blue look. Difficult to see skulks hiding in corners. I can upload the .lua or you can tweak it to your liking (for the secondary set of numbers, keep going higher for more darkness):
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PowerPoint.kDisabledColor = Color(255/4000, 69/4000, 0/4000)
PowerPoint.kDisabledColor2 = Color(0/2000, 0/2000, 255/2000)<!--c2--></div><!--ec2-->
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Those pictures are super funky! Time to raaaaave!<!--QuoteEnd--></div><!--QuoteEEnd-->
<a href="http://imageshack.us/photo/my-images/838/comingdown.png/" target="_blank"><img src="http://img838.imageshack.us/img838/8238/comingdown.th.png" border="0" class="linked-image" /></a>
I'M COMING DOWN!...
I also noticed that ambient lighting hasn't been used much in present maps. Surface Access is one of the few locations that use them.
Still, I like to RAAAAAAVE!
That aside, I'd love to see emergency lighting determined by the mapper rather than one set of values, really. It'd be especially good for a map that's not traditional NS-style and wants to fit to it's own theme.
this has to be one of the best previews in this page, in my opinion. Thanks for tweaking it, I would probably increase the darkness tad more, it feels like the environment needs to be more spooky looking. Next time I would like to see how aliens look in this environment, how their colors blend into it.
I also agree allowing mappers to choice their own colors would be best idea, but more on official maps it should stay at some default settings maybe.
Thanks! Some tips, if you're not already familiar with them:
1) Use "thirdperson 30" to get those faraway shots like I did (or a lower number for closer).
2) r_gui false turns off the gui. Good for seeing the whole picture or taking screenshots.
3) Run NS2 in a window while playing with the colors. I have dual monitors so I just save the values on one, and it updates on the other. Recommend the lua menu mod in this forum since it speeds things up a little.
I'm back to default red lighting for now since I can't decide on the color(s) to use for a long period of time.
Was it really necessary for you to necro this thread to cry about consistency checking
I cant find the file 'if renderLight:GetType() == RenderLight.Type_AmbientVolume then' PLZ HELP