-
Notifications
You must be signed in to change notification settings - Fork 5
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
Investigate possible problem with Zeus slots not allowing objects to be placed #342
Comments
Initial testing strongly suggests that the problem is located in f_fnc_zeusAddAddons.sqf. If nothing in that file is actually required, my preliminary recommendation is to drop that function and instead use the editor zeus module attributes to allow all addons. |
Further testing has confirmed that the problem is located in f_fnc_zeusAddAddons.sqf. That file does exactly 2 things, both of which can be done in the editor, so in the interests of making Zeus usable again the expedient plan appears to be to do that. |
I've been out of this for far too long and not experienced this issue personally so not wanting to interfere, but wanted to share some finding for a dig into this today. The Zeus module initialisation function uses nearly identical code to f_fnc_zeusAddAddons.sqf for "all addons including unofficial ones". And in local testing the results of f_fnc_zeusAddAddons.sqf however does set the "Addons" variable that is used by the module initialisation code. It is also called from f_fnc_zeusInit.sqf with This leads to the possibility that f_fnc_zeusAddAddons.sqf and the module initialisation run at the same time, and interfere with each other in weird ways. My suggestion would be to change f_fnc_zeusAddAddons.sqf to work with the module initialisation, rather than duplicate its behaviour, and change how f_fnc_zeusAddAddons is called to ensure it runs before the module initialisation. Something like: Change these to Lines 73 to 76 in 6cfc36d
Remove this line since it overrides the module dropdown in the ARRAY and STRING cases F3/f/zeus/fn_zeusAddAddons.sqf Line 44 in 6cfc36d
Change these to only set the Addons variable. This is equivalent to setting the dropdown in the module F3/f/zeus/fn_zeusAddAddons.sqf Lines 50 to 63 in 6cfc36d
These changes should have the same effect as changing the module dropdown to "all addons including unofficial" but is done in code which helps with updating older missions. We could also change the template to have that dropdown set by default to be extra sure. |
Thanks for the input, Lexer. I will arrange for your possible fix to be tested next session. |
Thanks Nikko. I plan to attend session again myself soon, but probably best if this is tested by someone familiar with the issue. I can raise a PR with this fix if it seems to be working |
Resolved in 3.5.6; #348 remains active. |
https://discord.com/channels/101479298812121088/277196621908017162/833464791346446336
Investigation is underway. Still unclear whether this can be resolved F3-side, will update with further news.
The text was updated successfully, but these errors were encountered: