武装突袭3

武装突袭3

Drongos Simple Factions
Ron4Swat 2021 年 9 月 8 日 下午 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.
< >
正在显示第 1 - 9 条,共 9 条留言
Drongo  [开发者] 2021 年 9 月 11 日 下午 1:57 
Nearly all units in this mod run a randomization script at init. The only way to change this is in the conifg.
Ron4Swat 2021 年 9 月 11 日 下午 2: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  [开发者] 2021 年 9 月 13 日 下午 2:20 
I don't know what is causing it.
Ron4Swat 2021 年 9 月 13 日 下午 3: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.

最后由 Ron4Swat 编辑于; 2021 年 9 月 13 日 下午 3:22
Drongo  [开发者] 2021 年 9 月 13 日 下午 3:16 
Thanks for the information, I'll apply that in the next update.
Ron4Swat 2021 年 9 月 13 日 下午 3: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 2021 年 9 月 16 日 下午 1: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  [开发者] 2021 年 10 月 4 日 上午 5:36 
Thanks for all the input. There will be an update some time this month.
boop 2024 年 3 月 18 日 下午 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
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50