So I was messing around with Unreal Engine Unlocker, and was just trying some commands out. I then realised I managed to enable moonlight shadows at night, as well as change the overall lighting. Not only did this enable the shadows, but it seemed to turn off the default flat night lighting, which fixes the weird blueish tint trains have at night. It also allowed buildings to reflect off the moonlight, instead of being completely dark. This is different to selecting the default clear weather too, as it doesn't enable it. Note: This is completely experimental - It only works on certain TSW 2 routes, between around the times of 00:00 and 03:00. Naturally it also has a performance impact in areas which produce a lot of shadows. The moonlight intensity can also be quite strong depending on the time of night. I used ts2.dbg.SetCloudiness 100 and then ts2.dbg.SetCloudiness -100 Some comparisons below: Default: Enabled: Default: Enabled:
Holy crap. What a difference that makes! I really hope this system can be introduced into routes going forward. And possibly for preserved collection routes, too?
I believe DTG need to fix their lighting cycle, as well as some other things, for this to work properly. Also, this only works with the new TSW 2 skybox system.
Maybe it’s a project in progress, or something that was started before hitting a pretty significant snag. In any event, it shows what can be achieved - given the effort.
I believe this is the exact reason. It's very experimental at the moment and could be better optimised in some areas. Still, it shows the potential of the night lighting in TSW 2.
Pretty much the same as normal night lighting before 00:00 after around 03:00 will make scenes look super bright. So there's still a lot of work to be done.
It’s really incredible the effect that a simple (or perhaps not so simple, as it has not been implemented yet) lighting change can have, though. The shot of the rear of the ICE 3M goes from looking flat and cartoonish to looking like it really inhabits an actual world space.
Thanks for the pics. This points to the fact that even a minimal improvement in the night lighting would be the difference between being able to drive at night or not for me, at least. I think UE4 can be stretched out a lot more than it has been so far.
Absolutely. Even with minimal lighting from buildings and other things, the moonlight makes up for this and the shadows casting from it look so nice when casting on the tracks and inside your cab.
I was excited about distant field shadows coming with the 4.26 update. This will be another level of improvement. Cool find.
This isn’t perfect by any means, however when you do find the right time of night, it’s fantastic to drive in.
I find this very interessting, and pardon my question being no expert but would the two line not cancel each other in the ENGINE.INI file ts2.dbg.SetCloudiness 100 ts2.dbg.SetCloudiness -100
It looks fantastic. Bear in mind there are no late night ICE services (I think) so you might have to manually adjust the clock via the command.
I think the minus value disables TSW’s night lighting and enables UE4’s dynamic lighting. You have to do it in that order, otherwise it won’t work. So you can’t go from clear skies to -100, for example.
Thanks for the information, it is just that when you looked at them, it look like the second line undo the first one, however since you confirmed it works, I will add them to my Engine.ini file
I wouldn't advise doing so as this is very experimental and only works at certain times of the night. That's why I recommend you do it via the Unreal Engine Unlocker, as that allows you to enable and disable it in real time.
This is not really magical. What is does is to set the could density. The real used and clamped value is 0-1. So with 100 you basically set the cloud layer to be 1 normalized (100% clouds and so the moon cant shine through). With -100 you set it to 0 what means no clouds and the moon can do its thing (it is nothingt else than the sun at daytime but with a different light colour). Nothing really new tbh.
This is different to selecting clear weather and manually typing in -100 though. Look at the differences below. For a start, you don't get the train roof glowing.
Amusingly the Cloudiness is one of the variables which isn't actually clamped 0-1 if i recall (bizarrely wetness isn't either but really really really don't do that). I think what is happening here is fairly simple, because its not clamped its actually changing the skydome texture in a very funky way making it darker and hence also affecting the reflection capture cubemap and resulting ambient skylight. Regardless of method, whats happening is simply the skylight intensity or colour is being changed.
Oh man, jest piękny, it's beautiful! As part-time night worker between 2009-2019 I'm in love with moonlight and night shadows!
Wow! What a difference! DTG really need to sort out their shambolic night lighting because it puts me off from driving services in the dark
you probably don't play much, since this is the default lighting and shadows, if there is a moon, here's an old skybox and the time is 22:30, just set clear weather with the moon in service mode
It looks very similar, yes. However in the newer TSW 2 routes, when selecting clear weather at night, it makes nights look way too bright. Plus it adds a weird blue tinge to the rails, roofs and trains, as seen in the above pictures I posted. This could be an unintentional side effect of the new TOD 2/3 skybox they use on newer routes. Hopefully DTG can make lighting more consistent in newer routes.
https://framedsc.github.io/GeneralGuides/universal_ue4_consoleunlocker.htm The instructions are on the download page. It's an external program that you run alongside TSW2 that lets you modify the engine on the fly as it's running. It's helpful to see instantly the effects of any changes, and there are variables you can edit from it that the ini won't allow. For instance, you can manually change signal aspects, which is handy for certain bugged situations. https://train-sim-world.fandom.com/wiki/Console_Commands This is a handy list of useful commands.
great thread londonmidland is there a way to implent the commands in the engine.ini or is unreal unlocker needed still ? ts2.dbg.SetCloudiness 100 ts2.dbg.SetCloudiness -100
I can’t say I know the answer to that, but I’d imagine you’d always need to change it via UUU as it isn’t a static command.