Skip to content
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

Fix for #214 calls to TFAR functions in scheduled environment #215

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

AdlerSalbei
Copy link
Member

@AdlerSalbei AdlerSalbei commented Sep 4, 2024

fix #214

Copy link
Member

@b-mayr-1984 b-mayr-1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AdlerSalbei please let me know what you think of my suggestions for simplification.

addons/zeus/XEH_preClientInit.sqf Show resolved Hide resolved
addons/zeus/XEH_preClientInit.sqf Show resolved Hide resolved
addons/zeus/XEH_preClientInit.sqf Show resolved Hide resolved
@b-mayr-1984 b-mayr-1984 self-requested a review September 7, 2024 09:19
Copy link
Member

@b-mayr-1984 b-mayr-1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AdlerSalbei thx for taking the time explaining the parameters thing to me. 🙂

@b-mayr-1984
Copy link
Member

Tested using

.\hemtt.exe build    
HEMTT 0.7.6
Original output filename: Arma3Retail_DX11_x64
Exe timestamp: 2024/03/21 14:45:00
Current time:  2024/09/11 21:59:02

Type: Public
Build: Stable
Version: 2.16.151618

Allocator: C:\Program Files (x86)\Steam\steamapps\common\Arma 3\Dll\tbb4malloc_bi_x64.dll [2017.0.0.0] [2017.0.0.0]
PhysMem: 16 GiB, VirtMem : 131072 GiB, AvailPhys : 7.2 GiB, AvailVirt : 131068 GiB, AvailPage : 15 GiB, PageSize : 4.0 KiB/2.0 MiB/HasLockMemory, CPUCount : 4

@AdlerSalbei unfortunately I get script errors when I change the TFAR short-range radio channel.

22:34:32 Error in expression <LrSettings;
};



((_settings param[2]) param [_channel,""])
>
22:34:32   Error position: <param [_channel,""])
>
22:34:32   Error Type Number,Not a Number, expected Number
22:34:32 File z\tfar\addons\core\functions\fnc_getChannelFrequency.sqf..., line 37
22:34:32  ➥ Context: 	[] L250 (/x/cba/addons/common/fnc_directCall.sqf)
	[] L250 (/x/cba/addons/common/fnc_directCall.sqf)
	[] L47 (x\GRAD\addons\zeus\XEH_preClientInit.sqf)
	[] L37 (z\tfar\addons\core\functions\fnc_getChannelFrequency.sqf)
 <- 
22:34:32 	[] L1 ()
	[] L1 ()
	[] L339 (/x/cba/addons/events/fnc_keyHandlerDown.sqf)
	[] L312 (/x/cba/addons/events/fnc_keyHandlerDown.sqf)
	[] L331 (/x/cba/addons/events/fnc_keyHandlerDown.sqf)
	[] L336 (/x/cba/addons/events/fnc_keyHandlerDown.sqf)
	[] L336 (/x/cba/addons/events/fnc_keyHandlerDown.sqf)
	[] L132 (z\tfar\addons\core\functions\fnc_initKeybinds.sqf)
	[] L25 (z\tfar\addons\core\functions\events\keys\fnc_processSWChannelKeys.sqf)
	[] L27 (z\tfar\addons\core\functions\events\keys\fnc_processSWChannelKeys.sqf)
	[] L30 (z\tfar\addons\core\functions\fnc_setSwChannel.sqf)
	[] L24 (z\tfar\addons\core\functions\events\handler\fnc_fireEventHandlers.sqf)
	[] L280 (/x/cba/addons/events/fnc_localEvent.sqf)
	[] L277 (/x/cba/addons/events/fnc_localEvent.sqf)
	[] L278 (/x/cba/addons/events/fnc_localEvent.sqf)
	[] L59 (x\GRAD\addons\zeus\XEH_preClientInit.sqf)
	[] L248 (/x/cba/addons/common/fnc_directCall.sqf)

@AdlerSalbei
Copy link
Member Author

Thanks for the Test, I'll look have a look at it

and remove recursive call of CBA_fnc_directCall
@b-mayr-1984
Copy link
Member

Thanks for the Test, I'll look have a look at it

ccd63e1 does the trick.

Variables then track what I

  • set in the TFAR radio GUI
  • select with the numpad

image

@b-mayr-1984 b-mayr-1984 self-assigned this Sep 11, 2024
@b-mayr-1984 b-mayr-1984 merged commit 58a6b65 into master Sep 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

calls to TFAR functions in scheduled environment
2 participants