Page MenuHomeFeedback Tracker

CfgFunctions `recompile = 1` stops functions from being compiled to missionNamespace in 3DEN
New, NormalPublic

Description

When allowing a function to be recompiled by setting recompile = 1 in CfgFunctions the function is no longer available anywhere except when in a mission.
Where as based on the wiki I'd expect the function to still be available but just automatically recompiled every time you enter a mission:

the recompile attribute can be set to 1 to recompile the function upon mission start (functions in Description.ext are always compiled upon mission (re)start)

This in my case makes developing a mod for Eden more tedious, I'd like to be able to make small changes without having to restart Arma.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Modding
Steps To Reproduce
  1. Setup up a simple mod with 2 functions, lets say TEST_fnc_recompile and TEST_fnc_noRecompile. Where TEST_fnc_recompile has recompile = 1 and TEST_fnc_noRecompile has it either omitted or set to 0.
  2. Launch Arma and go in the Eden editor.
  3. Run [isNil "TEST_fnc_recompile", isNil "TEST_fnc_noRecompile"], observe how it returns [true, false].
  4. Enter the mission preview.
  5. Run [isNil "TEST_fnc_recompile", isNil "TEST_fnc_noRecompile"], observe how it returns [false, false].
  6. Exit the mission preview, returning back to the editor.
  7. Run [isNil "TEST_fnc_recompile", isNil "TEST_fnc_noRecompile"], observe how it returns [true, false] again.

Event Timeline

SoulMasterOpus renamed this task from CfgFunctions `recompile = 1` makes function only available in a mission to CfgFunctions `recompile = 1` stops functions from being compiled to missionNamespace in 3DEN.Sep 28 2023, 5:59 PM