Hello, i wanted to ask how i could randomize the weather?
Simply a tutorial.
Example: i want weather_poor with the custom properties (sunbrightness or planetscale etc).
i also want weather_clear_a with my custom properties.
How do i do that?
Hello, i wanted to ask how i could randomize the weather?
Simply a tutorial.
Example: i want weather_poor with the custom properties (sunbrightness or planetscale etc).
i also want weather_clear_a with my custom properties.
How do i do that?
as far as i know, everytime you restart your game ( unless you setted a precise time and parameters ) it gets randomized each time.
same goes when playing your match online.
the weather and time is randomic each time.
( but i could be wrong. so, let’s hear the almighty @Devenddar what can say to us )
I played my map often, it always ha dexactly the same weather and daytime…
There must be a way
try in Level
Edit, deven already answered to you at this:
maybe… just open your BLK file, and chuck it there.
sadly already tried stuff there but it didnt help… thanks for caring though
Now i got the weather random, but only presets… like weather_clear_a but how do i make it choose weather_clear_a with my edited properties like sunbrightness? thats what i got
entity{
_template:t=“level”
level__blk:t=“content/enlisted/levels/battle_of_moscow_volokolamsk_countryside_winter.blk”
level__timeRange:p2=5, 19.2
level__day:i=4
level__timeOfDay:r=1
level__weather:t=“weather_clear_a”
“level__timeVec:array”{
level__timeVec:r=16
}
“level__weatherChoice:object”{
“content/common/gamedata/weather/weather_poor.blk”:r=0.5
“content/common/gamedata/weather/weather_clear.blk”:r=0.5
}
}
through level weather choices.
you have to include them.
( dunno if as text, or as ‘real’ function )
but i’m not sure from there how you will be able to customize it’s sunbright and stuff.
maybe by editing the blk file.
yes…
well, just like deven linked you:
entity{
_template:t="level"
level__blk:t="content/enlisted/levels/normandy_beach_fortified_1x1.blk"
level__day:i=6
level__year:i=1944
level__timeOfDay:r=4.5
level__timeRange:p2=3, 21
"level__weatherChoice:object"{
"weather_cloudy:object"{
weight:r=0.05
"entities:array"{
"entities:object"{
template:t="weather_cloudy_c"
}
}
}
"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
}
}
I copied most of this from the “level” part… now the editor crashes when i start the map?
because one of them is already present.
for example, if you use a feature that there’s twice, the editor will conflict it self because it’s not sure weather should use one, or the other. so it won’t start.
you will have to find it ( one of the two ), and remove the dupled stuff.
most likely, it will be:
entity{
_template:t=“level”
level__blk:t=“content/enlisted/levels/battle_of_moscow_volokolamsk_countryside_winter.blk”
level__timeRange:p2=5, 19.2
level__day:i=4
level__timeOfDay:r=1
level__weather:t=“weather_clear_a”
“level__timeVec:array”{
level__timeVec:r=16
}
“level__weatherChoice:object”{
“content/common/gamedata/weather/weather_poor.blk”:r=0.5
“content/common/gamedata/weather/weather_clear.blk”:r=0.5
}
}
i already deleted that part before
because if i’m not mistaken, in deven’s clip, theres also a weather_clear_a
I deleted this and added what he had from level and further
then try to do one thing, remove the part that you have added.
make a back-up ( so you are sure that it will work )
and then, find the level
in your blk copy, and remove it.
THEN past all that stuff.
might be the cause of it.
No did not help
then remove all the stuff that you changed recently before messing around with the level. at the bottom. luckily, each modify is saved at the bottom ( unless you modified stuff already placed previously )
I have made an extra new map for testing, i can delete it- i test everything on test maps before adding…
Do you know maybe any other ways to change the parameters?
unfortunately not.
Hmmm…
After you past question about random weather I note that original maps have different level
entities.
What is your campaign? I think Moscow?
Edit scene.blk
file: change level
to volokolamsk_level
.
It’s easiest way how to add default enlisted weather randomizer.
One of Moscow mission scene.blk:
entity{
_template:t="volokolamsk_level"
level__blk:t="content/enlisted/levels/battle_of_moscow_volokolamsk_countryside_autumn.blk"
}
Default editor scene.blk:
entity{
_template:t="level"
level__blk:t="content/enlisted/levels/battle_of_moscow_volokolamsk_countryside_autumn.blk"
}
Different that volokolamsk_level
have another default settings.
Don’t worry about your level
changes. I think they will be saved even if you change level
to volokolamsk_level
.