Page MenuHomeFeedback Tracker

Cyclic #include causes crash
New, NormalPublic

Description

The game crashes when trying to resolve cyclic include-macros.

script1.sqf:

#include "script2.sqf"

script2.sqf:

#include "script1.sqf"

Somewhere else, e.g. in the debug console:

execVM "script1.sqf";

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Game Crash
Steps To Reproduce


This mission is set up so that script1.sqf and script2.sqf have a cyclic dependency. A script3.sqf is also prepared so that non-trivial cyclic dependencies can be tested - simply modify script2.sqf to include script3.sqf.

Additional Information

Version: 2.06.148470

Event Timeline

ansin11 created this task.Nov 27 2021, 5:25 PM