-
Notifications
You must be signed in to change notification settings - Fork 148
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to overwrite function compiled by CBA while using cba_cache_disable.pbo #788
Comments
Normal: Cache Disabled: So, do we want a 3rd setting that does not compileFinal at all? |
Yes. In the scenario that I'm in I would like to be able to overwrite functions that are created in overpressure ACE3 addon without having to remove the existing pbo and create a copy and have to maintain version numbers and such without loosing the performance gain from caching. |
could hack in functions with something like this, define your funcs before ace runs
|
That is not what disabling the compile cache is for. It's for debugging. |
Close? |
I believe PabstMirror's solution will work for what I am attempting. |
Arma 3 Version:
stable 1.76.143187 64bit
CBA Version:
dev + 62e38fb64a093d39c093b86368c0c9a4ce6fe905
Mods:
Description:
compile
instead ofcompileFinal
https://github.com/CBATeam/CBA_A3/blob/master/addons/xeh/fnc_compileFunction.sqf#L34 although I'm not sure is problem as I'm not too familiar with this code. I also feel that I should be able to disable thecompileFinal
calls without completely disabling the function caching feature, that being said I could resolve that on my own by making my own pbo that changes the CfgSettings >> CBA >> Caching >> compile value to 0 without messing with any of the other variables. What I am attempting to do is build an addon that overwrites some internal functions inside of ACE3 but due to ACE3's use of CBA_fnc_compileFunction I am unable to change the function.Steps to reproduce:
Added cba_cache_disable.pbo to cba addons and verified CfgSettings >> CBA >> Caching values reflecting changes made by pbo.
Created a new singleplayer mission, placed Rifleman unit down and started mission preview.
Opened escape menu and started typing in required variables for test scenario
Added the following to the watch variable boxes
Ran the following code via Local exec button
["A3\ui_f\scripts\IGUI\RscUnitInfo.sqf", "dev_fnc_testFunc"] call CBA_fnc_compileFunction
Reviewed updated watch fields and noted that all watched variables contain:
#line 1 "A3\ui_f\scripts\IGUI\RscUnitInfo.sqf"
which is the correct scriptRan the following code via Local exec button
["\A3\ui_f\scripts\pauseLoadinit.sqf", "dev_fnc_testFunc"] call CBA_fnc_compileFunction
Reviewed updated watch fields and noted that all watched variables contain:
#line 1 "A3\ui_f\scripts\IGUI\RscUnitInfo.sqf"
which is the same as before and is not desiredI also attempted to do a variable overwrite and the change did not apply
dev_fnc_testFunc = compile preprocessFileLineNumbers "\A3\ui_f\scripts\pauseLoadinit.sqf"
After reviewing RPT log I see multiple entries of:
Attempt to override final function - dev_fnc_testfunc
Where did the issue occur?
RPT log file:
The text was updated successfully, but these errors were encountered: