Arma 3
Drongos Simple Factions
Ron4Swat 8. sep. 2021 kl. 12:12
Bugreports
When using the "Edit loadout" option in eden editor on certain units of this mod, there is a strange behaviour when switching through the equipment and weapons.

When i switch to the overview of uniforms then there suddenly a different uniform selected for the unit. Same for vests etc. But this only happens the first time i switch to a menu. If i leave the loadout menu and enter it again, then the equipment changes again the first time i select it.

This however only happens to some factions of this mod like DSF_CART or DSF_BOKO. To units of other factions like DSF_COP, DSF_IDF or DSF_ISIS it does not happen.

Seems like some randomization functionality is enabled for certain factions in eden editor when it should be disabled.
< >
Viser 1-9 af 9 kommentarer
Drongo  [udvikler] 11. sep. 2021 kl. 13:57 
Nearly all units in this mod run a randomization script at init. The only way to change this is in the conifg.
Ron4Swat 11. sep. 2021 kl. 14:11 
The randomization at init time is not the issue here.

The issue is that there is another randomization of the equpment later in the "Edit loadout" screen, after the unit has been already initalized
Drongo  [udvikler] 13. sep. 2021 kl. 14:20 
I don't know what is causing it.
Ron4Swat 13. sep. 2021 kl. 15:04 
I took a look to the configs.

I noticed that you use the sleep command in your random.sqf files. Problem is that sleep uses the time that passed in the mission. But in the editor there is no mission running and therefore no mission time passing.

Which can easily lead to some unexpected behaviour of the scheduler. Using the "Edit loadout" might cause the sleep command to finally continue and trigger the actual random.sqf code to be executed delayed.

Don't know why sleep is necessary at this point, but might be better to use uisleep instead of sleep, as uisleep uses actual time instead of mission time and might solve the issue.

Sidst redigeret af Ron4Swat; 13. sep. 2021 kl. 15:22
Drongo  [udvikler] 13. sep. 2021 kl. 15:16 
Thanks for the information, I'll apply that in the next update.
Ron4Swat 13. sep. 2021 kl. 15:30 
Something else i noticed is that in the randomization code enableSentences and enableRadio is changed. Is that really necessary?

Doesn't really effect something when a dedicated server is used, but in a singleplayer mission or in a hosted environment it would change the 2 settings as soon a unit is spawned with that code but the mission deactivated one or both of the settings.
Ron4Swat 16. sep. 2021 kl. 13:31 
As the randomization scrips for the units are spawned via execVM, the units are not fully initialized after createUnit, which can cause problems under certain circumstances like missing uniforms.

If unit equipment is changed for a newly created unit it can also cause problems, as the randomization script might not have finished yet.

If the unit randomization has to be spawned via execVM it would be helpful if there would be a flag on the unit as soon the randomization has been processed, that can be checked in the mission to determine if randomization of the unit has been finished.

Drongo  [udvikler] 4. okt. 2021 kl. 5:36 
Thanks for all the input. There will be an update some time this month.
boop 18. mar. 2024 kl. 12:10 
vehicles in a faction don't show up in the zeus spawn menu

there's only the "men" category, no cars or such, even in the factions that have them
< >
Viser 1-9 af 9 kommentarer
Per side: 1530 50