FOnline Development > Questions and Answers

[Mapper] Lightday parameter in object properties - how does it work?

(1/2) > >>

Rikers:
I'd like to make some rays of light in a dark building interior (separate map), without fixing the time for the map, so the interior always stays dark (As it would if f.e. time was fixed at 5:00), but the rays only show up in game-daytime. I tried different values but have no idea which numbers represent what.  I also tried changig the Daycolor values to the same one, and while it made the building dark at all times, it also somehow it made the rays "invisible" (the lighthex didint produce light at anytime, at least in the mapper.) Any ideas?

Lexx:
If it is a separate map, I'd say you actually should set a fixed time. Then you can place scenery / item graphics that look like sun rays, which will be shown / hidden via script based on current time. Additionally you can place weak light sources which are only visible at daytime.

I did a similar approach with the cave interior entrances in 2238. The bright entrance light was only visible at day, and not in the night. Was always wondering why no other server was doing this, as it doesn't even require additional scripting.



(The global map light in the daytime screen is just because I've set the time in the mapper. Ingame the caves are fixed at 00:00 or 03:00 (whatever it was) and therefore dark, except for the light at the entrance.)

Rikers:
Okay, thank you very much! Currently I'm not able to test it myself, and changing time in the mapper works regardless if the time is fixed or not. Actually, some time ago I discovered this value (daytime=30) in those 2238 cave  maps, and that's when I began to wonder... earlier I just thought it's only 0 or 1. Okay, so that should settle it.

But what does that number (30) actually represent? Are there other "useful" values that you know of?

hexer:
How do you setup light in underground areas? I want to make the area's light consistent regardless of the time of the day.

Mayck:

--- Quote from: hexer on June 02, 2014, 11:08:50 am ---How do you setup light in underground areas? I want to make the area's light consistent regardless of the time of the day.

--- End quote ---
Not sure if there's some more elegant way to do it:
1. open your .fomap file in text editor
2. in the Header section on the beginning of the file find line that says "Time" (there should be -1 next to it by default)
3. set the value to preferred time of the day:
* -1 = means light would be changing with time of day
* 0 = light as in midnight
* 300 = light as in 3:00 in the morning
* 1400 = light as in 14:00
It can also be changed via scripts as far as I remember (if you want lighting to change when you start a generator for example).

Navigation

[0] Message Index

[#] Next page

Go to full version