Yes, we have to delete all weathers in level or set all weights of weather as 0.0
How do I change the following to stormy weather because I donât understand the language of code. (Sorry)
entity{
_template:t=âlevelâ
level__blk:t=âcontent/enlisted/levels/normandy_coastal_area_1x1.blkâ
âlevel__timeVec:arrayâ{
level__timeVec:r=5.5
level__timeVec:r=6.5
level__timeVec:r=19
level__timeVec:r=19.3
}
âlevel__weatherChoice:objectâ{
weather_cloudy_d:r=1
"weather_poor_a:object"{
weight:r=1
"entities:array"{
"entities:object"{
template:t=""
}
}
}
}
}
You need to edit weather. So find in level
this: "level__weatherChoice:object"{
It can contains code like it:
"weather_old:object"{
weight:r=0.25
"entities:array"{
"entities:object"{
template:t="weather_poor_a"
"components:object"{
sky_atmosphere__atmosphere_scale:r=1
sky_atmosphere__average_ground_albedo:r=0.75
sky_atmosphere__moon_brightness:r=0.25
sky_atmosphere__sun_brightness:r=0.33
sky_atmosphere__mie2_scale:p2=250, 750
}
}
"entities:object"{
template:t="camera_rain_light_template"
"components:object"{
drop_splashes__distance:r=250
drop_splashes__spriteSplashScale:r=3.75
drop_splashes__splashesCountRate:r=17500
far_rain__density:r=25.5
far_rain__maxDensity:r=45.0
rain_ripples__size:r=0.075
wetness__strength:r=0.33
}
}
}
}
}
Itâs like
"ENTITY_X:object"{
weight:r=CHANCE
"entities:array"{
"entities:object"{
template:t="ENTITY_1"
"components:object"{
PROPERTIES:TYPE=...
}
}
"entities:object"{
template:t="ENTITY_2"
"components:object"{
PROPERTIES:TYPE=...
}
}
}
} //<<< Add it only if you not plan to add more weathers. In other words... It closes "level__weatherChoice:object"{
ENTITY_X - Any object that you can find in create entity menu, but itâs not important to set real entity name. If you set unreal it will works, but prints errors. If you set real entity then it will be created. If you need to edit weather properties then you need to use unreal name or different weather entities.
ENTITY_1 and ENTITY_2 - One of entities that will be created when game selected ENTITY_X weather. It can be any entity that you see in create entity menu. Even weapons, items and objects/rendinsts. You can config their properties inside "components:object"{
.
CHANCE - How much chance that game will select this weather. Itâs on %. So⌠0.75 will be 75%.
PROPERTIES - Any property that you see in entity. It can be transform
or sky_atmosphere__sun_brightness
.
TYPE - What data type it uses? i
= Integer, r
= Real and t
= Text.
Okay Thanks
Can I ask how you add lighting?
If you donât plan to do or use random weather then just create entities lightning_animchar_manager, lightning_volumetric and lightning_panorama.
Else just add more entities (object) inside entities (array). And add template (text).
I canât get this to work for some reason. I think itâs because I donât understand the first line, âFor that you should create copy of weather object (Create weather_poor_a).â
(I tried to upload an image of my level entity, but it didnât work)
âThisâ refering to changing sun/moon brightness
Sorry for my not very good english.
It would be nice if you would tell me what you plan to do.
I mean do you want to use weather randomizer or just one version of the weather?
Also what stats do you want to add?
I just will sent full info/guide how to do it.
Probably you just need be a bit more active in forum and/or be here for more time.
And then you will get new levels and ability to upload files.
Donât worry, your English is good.
Blockquote It would be nice if you would tell me what you plan to do.
I mean do you want to use weather randomizer or just one version of the weather?
My mod doesnât have random weather or time of day, itâs always night and storming.
Blockquote Also what stats do you want to add?
I want to reduce the moon brightness within the editor itself. I was able to follow your guide on adding rain and lightning, but I wasnât able to reduce the brightness.
Thanks for all your help.
Damn. There really would be nice to see screenshots. Anyways⌠Probably guide is so outdated. And after some updates weather become singleton object (it means that only one entity can be placed in map). But you still able to create other weathers. Try to create weather with different name.
Like in guide, but name it as weather_overcast_a?
And then components as object and inside add properties.
Because of singleton I start use fake name for weather:
And inside I create real weather (like weather_poor_a).
Yeah⌠Because of it game prints error (unknown entity), but it allows to create almost unlimited weather variations.
Anyways⌠If you donât to plan use it? Then probably better to do it:
Remove any chances for any weather. Just set 0.0 and also do it nearbly with weight property.
Create new weather from Create Entity list.
And then use Find Entity tool and select it. Open properties panel and edit properties.
If game warning about that weather already created then delete weather in Find Entity and create it again.
Thank you, this worked. One more thing though: I now canât get the lightning to work. Iâve re-added the rain; that works fine. The lightning doesnât, however. When I add the lightning_animchar_manager, lightning_volumetric, and lightning_panorama to the weather entity, thereâs still no lightning or thunder, and upon restart, lightning_panorama disappears.
You did it in level__weatcherChoice property ?
- If yes⌠Then itâs weird, maybe because you add wrote wrong names or add it to wrong weather?
Are you in official Enlisted discord server? Would be good to see any screenshots and there you will able to sent them. You also can ask for help in channel #screenshots from other people.
Anyways⌠I not sure how to help there. So⌠Maybe will rewrite guide how to do it.
Way #1 - Adding lightning in map.
Just create it from Create Entity.
You will need to create:
- lightning_animchar__manager.
- lightning_panorama.
- lightning_volumetric.
This way is good if you need only one weather variation or many weathers, but all of them contains lightning. But it will be bad if you need to add only sunny/rainy/cloudy weather variations without lightnings.
Way #2 - Weather Randomize (level__weatherChoice).
Using Find Entity you need to find level entity (it can be level_pacific or menu_level).
In level__weatherChoice property you need to create weather.
For that you need to press + nearbly with property:
After that select object and name it as real (for example weather_clear_a) or unreal entity name.
Iâll use unreal entity name. It will allow me to later to add any weather entity and edit properties. If I wrote real weather entity then I will not able use same name in entities for editing weather properties.
After that i need to add entities as array.
And nearbly entities click to + and create 5 object
Inside these entities object we need to create template.
If we need to edit properties of these entities then we need to create components as object. And add there any entity property. For example I want to add something to weather, but currently time I donât know properties names.
Use Find Entity or Create Entity to check entity properties (if you create it then donât forgot to remove it).
All of them you can add inside components.
I decided to just edit sky_atmosphere__sun_brightness. To make map much darker.
Done. And now we need to set weight. Weather chance to be selected when map loading. We need to return back to our weather and click to + nearbly.
After that just add weight (for example 1.0), save changes and do restart.
Yes. There I removed other weather to increase chance for this weather.
Thank you, I got it to work.
I used your help again for creating a thunder weather for my map.
I do not know why, but i get this error message. What do i do to make it go away?
Whoops. Iâm sorry. My bad. Forgot to write that unreal entity name will prints error messages. It just tell that some entity canât be created. Itâs kinda not seriously problem, more like just a report/info.
And I use unreal entity names for make it much easier to find my custom weather settings.
If you donât plan to do many weathers variations like there:
And itâs not all⌠Heh.
Then you can use real weather name entities. Like weather_clear_a or othersâŚ
Keep in mind that for edit weather properties in weather randomizer you will need to create another weather and it should have unique name.
I mean something like it:
If you want to see poor weather preset on your map then you will need to add in entities weather_poor_a instead weather_overcast_a.
But this:
Shouldnât be weather_poor_a. It may be for example weather_clear_a and it will not print errors.
To fix it⌠Probably will need to edit scene.blk file (need to change MyCustomWeather to weather_clear_a?). You can sent file to me in private messages and Iâll sent to you version without this error message.