{"name":"diag_mergeConfigFile","title":"diag mergeConfigFile","type":"command","url":"https://community.bistudio.com/wiki/diag_mergeConfigFile","revid":364163,"updated":"2024-05-05T10:46:42Z","groups":["Diagnostic","Config"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","branch":["diag"],"description":"Updates config without restarting. Attributes and classes can not be deleted unless `delete` is used. Changes to the config are applied to all new entities, a mission restart is not necessarily required. Spawning the vehicle again or switching weapons works too. Since Arma 3 v1.70 CfgAmmo should be mergeable as well.\n\n> [!WARNING]\n> Merging a config with an include statement, that points to a non existing file, will crash the game.","syntaxes":[{"syntax":"diag_mergeConfigFile [path, userdir]","params":[{"name":"path","type":"String","description":"absolute or relative path","type_expr":"String"},{"name":"userdir","type":"Boolean","optional":true,"default":"false","description":"path is relative to the user directory, otherwise it is relative to the mission directory","type_expr":"Boolean","text":"userdir: Boolean - (Optional, default false) path is relative to the user directory, otherwise it is relative to the mission directory"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"[path, userdir]"}}],"examples":[{"code":["diag_mergeConfigFile [\"O:\\Arma3\\A3\\Stuff_F\\config.cpp\"]"]}],"see_also":["Arma 3: Diagnostics Exe"]}