- Download amended scripts files and atmosfear_parameters.ltx with comments on options here
- atmosfear_parameters.ltx
Create the set of parameters for each new area in [atmosfear_default_parameters], and [atmosfear_preset_*] sectionsopt_agroprom_period_good = clear_foggy opt_agroprom_period_bad = rainy opt_agroprom_period_good_length = 6 opt_agroprom_period_bad_length = 6
'agroprom' is exact level_name() function output for certain area (name of the subdir in levels).
- atmosfear.script
line 17: self.level_names = {"zaton","jupiter","pripyat","agroprom"}
in this table put all the level_names of the levels used in your mod that you want to have AtmosFear weather applied.
- level_weathers.script
if you want the distant storms to appear on your added levels you need to add them to self.boundaries() table. Those are coordinates of the boundary points where the ground on the map actually ends. There are usually 4 of them as the maps are rectangles but for some levels like Zaton more is required becuse of the map shape. The distant thunderbolts appear only over the ground. If the point where the lightning particle is spawn is outside the map it won't show. That is xRay limitation. You can grab those from SDK level editor or with demo_record and rs_cam_pos on. - text\*\st_mm_atmosfear_texts.xml
add the titles definitions to text\*\st_mm_atmosfear_texts.xml for the added levels
Something like<string id="st_cap_af_agroprom"> <text>Agroprom Institute</text> </string>
For all languages unfortunately. Otherwise it won't work on international versions of the game.
- ui_mm_atmosfear_options.xml and ui_mm_atmosfear_options_16.xml
Add definitions of new level captions for AF3 options panel:<cap_af_agroprom x="0" y="0" width="70" height="31"> <text r="170" g="170" b="170" font="graffiti19" align="l" vert_align="t">st_cap_af_agroprom</text> </cap_af_agroprom>
Don't worry about x and y. They will be set automatically.
- game_maps_single.ltx
Set weather parameter of each level you want AF3 on toweathers = atmosfear
Applying AtmosFear 3 weather to new levels
Quick tutorial on how to apply the AF3 weather to new levels added to your mod.
Posted by CrommCruac on - Basic Starting a mod
nice cromuarc!!TY
Hello, I would like to connect the location of escape from the cs to AtmosFear 3, do everything in your tutorial, but the game crashes with this log
FATAL ERROR
[error]Expression : fatal error
[error]Function : CInifile::r_section
[error]File : D:\prog_repository\sources\trunk\xrCore\Xr_ini.cpp
[error]Line : 502
[error]Description : <no expression>
[error]Arguments : Can't open section 'ugnd_bkg_1'. Please attach [*.ini_log] file to your bug report
It says that no audio channel, but in your mod deleted it. How the game is trying to call? How can I solve this problem? I added this channel and the game is working, but I'm not sure that's right.