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

CBA_fnc_addPerFrameHandler not working in 3DEN #1355

Closed
Freddo3000 opened this issue Jul 12, 2020 · 9 comments
Closed

CBA_fnc_addPerFrameHandler not working in 3DEN #1355

Freddo3000 opened this issue Jul 12, 2020 · 9 comments

Comments

@Freddo3000
Copy link
Contributor

Mods (complete and add to the following information):

  • Arma 3: 1.98
  • CBA: 3.15.1.200418 stable

Description:
CBA perFrameHandler system isn't active in 3DEN

Steps to reproduce:

  • Go into editor
  • Open debug console
  • Run any of the following
    • CBA_fnc_addperFrameHandler
    • CBA_fnc_execNextFrame
    • CBA_fnc_waitUntilAndExecute
    • CBA_fnc_waitAndExecute (time = 0)
    • etc
  • Note that they do not evaluate

Expected behavior:
The above functions, and all other functions that rely on CBA perFrameHandlers, to execute in 3DEN.

Where did the issue occur?

  • 3DEN Editor (not preview)

Log Files:
https://gist.github.com/Freddo3000/d918ed7916d3fa98c473cffa206cf287

Additional context:
This is caused by addMissionEventHandler ["EachFrame", {call FUNC(onFrame)}]; being in postInit instead of preInit. Executing it manually in the debug console resolves the issue.

I'd move it to preInit, and have CBA_missionTime set to start in postInit.

@Freddo3000 Freddo3000 added the Bug label Jul 12, 2020
@commy2
Copy link
Contributor

commy2 commented Jul 12, 2020

I'd move it to preInit, and have CBA_missionTime set to start in postInit.

No.

@jonpas
Copy link
Member

jonpas commented Jul 12, 2020

No to which part of the question and why?

@commy2
Copy link
Contributor

commy2 commented Jul 13, 2020

No to moving PFH et al to preInit. That would break a lot of things.

@Freddo3000
Copy link
Contributor Author

Might be worth mentioning in the listed functions then, that it does not work during preInit and as such does not work in briefing and 3DEN. Would it otherwise be possible to make an exception for 3DEN at least?

@commy2
Copy link
Contributor

commy2 commented Jul 14, 2020

You cannot tell that you are in 3den in preInit, as the is3DEN command is bugged in preInit.

@dedmen
Copy link
Contributor

dedmen commented Jul 14, 2020

as the is3DEN command is bugged in preInit.

do you have a FT ticket for that? Its not noted on biki or anywhere

@commy2
Copy link
Contributor

commy2 commented Jul 14, 2020

I gave up on documenting bugs on the wiki.

@jonpas
Copy link
Member

jonpas commented Sep 7, 2023

Is is3DEN still bugged in preInit?

@jonpas
Copy link
Member

jonpas commented Apr 3, 2024

I'll fold this into #1613 although this has been opened for longer. #1613 comes with a linked PR.

@jonpas jonpas closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants