Could Taleworlds please give modders the ability to change MissionInitializerRecord properties after mission initialized? Thanks in advance.
Basically to update AtmosphereInfo properties on runtime. Thank you for your interest.Which properties are you planning on changing? Because some of these properties would equal to loading another scene. Maybe we can supply a way to change these properties and how they affect the scene in, another way.
Which values do you want to change in that struct after the mission has started?Basically to update AtmosphereInfo properties on runtime. Thank you for your interest.
Which values do you want to change in that struct after the mission has started?
And what are you trying to achieve via that?
Mainly having access to all of them would be great... but more importantly SkyInformation, TimeInformation, SunInformation, RainInformation, SnowInformation...
Right now nothing because we don't have access ... with access to it the possibilities are open to the imagination.And what are you trying to achieve via that?
Right now nothing because we don't have access ... with access to it the possibilities are open to the imagination.
Such as?
I trully believe you will, whether it will eventually be implemented is another matter; you know I appreciate your dedication and commitment... But unfortunately we both know how deep the rabbit hole goes ?.Sure, will bring it up at the modding meeting. But Terco, don't turn your imagination into termagination.
Stay with us even though the dark side has cookies
Hey, jumping in on this too. I'm also trying to change the skybox texture, sun intensity, rain density and fog density. Currently the
Such as?
Scene
class has methods such as SetRainDensity()
, however the SetSun()
and SetFog()
methods are not ideal because while I only want to set the sun intensity and the fog density, I will have pass in 2 or 3 other arguments that I don't want to change. And then there is no method to change the skybox texture.Afaik, some atmosphere changes are not applied after mission initialization.By the way, I tried changing the rain density inBannerlordMissions.CreateAtmosphereInfoForMission()
. Doesn't work. But when I change it inDefaultMapWeatherModel.GetAtmosphereModel()
, it works.
Need your help @MRay.
Why would it work for a campaign mission and not a custom battle mission?Afaik, some atmosphere changes are not applied after mission initialization.
Thanks.On campaign, the atmosphere record is created dynamically.
On custom battle, it is read from an xml. The atmosphere file might be overwriting your changes.
AtmosphereInfo
class already has properties for the sun intensity and fog density which can be set, but there are no corresponding methods in the Scene
class, at least not ones which set only the sun intensity and fog density. Please add those methods.