Log in to reply
 

How to edit "Foggy" weather?



  • I'm looking for a way to edit the foggy weather to make the fog thicker/denser, as the way it currently appears in the game is kinda unrealistic to how real fog looks like. Anyone know where in the files I can find the option to edit the fog, and which settings to edit to increase the thickness/density of the fog?



  • @MRDotted

    The file you are looking for is 'w_foggy.xml' in a folder called 'timecycle' (the timecycle folder is where all the weathers are stored).

    Searching for Files in OpenIV:

    You can use 'Ctrl+F3' to open a search box in OpenIV to search for 'w_foggy.xml' (& any other files you might want to find) if you don't know the location off by heart etc.

    Note: OpenIV's Ctrl+F3 search box contains a 'Search area:' dropdown that allows you to select:

    • Search Everywhere
    • Search in game folder only
    • Search in "mods" folder only

    Be sure to select the right one for your usage case & be careful not to edit any vanilla files (ie only edit files in your 'mods' folder etc).

    OpenIV Safety Options:

    OpenIV > 'Tools' tab > 'Options' (or alternatively hit 'F4') > "mods folder" tab, contains options to help you to not accidentally edit vanilla/game folder files. The options are here if you want to enable them:

    OpenIV Safe Options

    Timecycle Folder Location/s:

    By default, GTA V has two locations for the 'timecycle' folder ('mods' folder file paths shown here):

    ...\Grand Theft Auto V\mods\update\update.rpf\common\data\timecycle\w_foggy.xml

    ...\Grand Theft Auto V\mods\common.rpf\data\timecycle\w_foggy.xml

    • If a weather exists in both locations, the one in 'update.rpf' takes precedence & is loaded by the game over the one in 'common.rpf' (so edit the one in 'update.rpf' :thumbsup:).
    • If a weather is located in 'common.rpf' timecycle folder only, just move it manually (drag & drop out of OpenIV, drag & drop back in in new location etc) to the 'update.rpf' timecycle folder for editing (so everything is in the same place etc).
    • 'update.rpf' files taking precedence over the same files in 'common.rpf' is a rule that applies to all the files in those archives when they exist in both locations (just so you know etc).

    Increasing Fog Density/Thickness in 'w_foggy.xml':

    The main value for editing the density/thickness of fog is:

    • '<fog_density>' (higher values = thicker fog)

    Other values that also affect Fog density/thickness:

    • <fog_alpha> (higher values = thicker)
    • <fog_falloff> (higher values = thicker)
    • <fog_start> (how far away from the player the fog begins to appear. Higher = further away)

    There are also '<fog_haze' values in the timecycle weather files, but fog haze tends to be thinner & unlikely to be the cause of thick fog.

    Timecycle/Weather - Times of Day:

    There are 13 'time of day' values for each of the timecycle weather values within the files:

    Example (w_foggy.xml):

    
                  01       02       03       04       05       06       07       08       09       10       11       12       13
    Time of Day   00:00    05:00    06:00    07:00    08:00    09:00    13:00    17:00    18:00    19:00    20:00    21:00    22:00
    <fog_density> 150.0000 150.0000 150.0000 150.0000 150.0000 150.0000 150.0000 150.0000 150.0000 150.0000 150.0000 150.0000 150.0000</fog_density>
    

    Each value stretches to the beginning of the next, filling a full 24hr cycle.



  • @a63nt-5m1th This did the trick, thanks!


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.