Arma 3
Drongos Simple Factions
Ron4Swat Sep 8, 2021 @ 12:12pm
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.
< >
Showing 1-9 of 9 comments
Drongo  [developer] Sep 11, 2021 @ 1:57pm 
Nearly all units in this mod run a randomization script at init. The only way to change this is in the conifg.
Ron4Swat Sep 11, 2021 @ 2:11pm 
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  [developer] Sep 13, 2021 @ 2:20pm 
I don't know what is causing it.
Ron4Swat Sep 13, 2021 @ 3:04pm 
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.

Last edited by Ron4Swat; Sep 13, 2021 @ 3:22pm
Drongo  [developer] Sep 13, 2021 @ 3:16pm 
Thanks for the information, I'll apply that in the next update.
Ron4Swat Sep 13, 2021 @ 3:30pm 
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 Sep 16, 2021 @ 1:31pm 
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  [developer] Oct 4, 2021 @ 5:36am 
Thanks for all the input. There will be an update some time this month.
boop Mar 18, 2024 @ 12:10pm 
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
< >
Showing 1-9 of 9 comments
Per page: 1530 50