External URLs
No response
Game Versions
1.36.0 (1.36.0.20144, 1.36.0.20171, 1.36.0.20200, 1.36.0.20210)
Summary
The functions' specifications in "triggerdata.txt" (for WorldEditor GUI trigger use) have unintended typos.
Description
1. BlzGetUnitCollisionSize is not categorized
_BlzGetUnitCollisionSize=TC_UNIT is supposed to be
_BlzGetUnitCollisionSize_Category=TC_UNIT
2. BlzGetAbilityRealLevelField does not have limits specified
_BlzGetAbilityRealLevelField_Limites=_,_,_,_,0,_ is supposed to be _BlzGetAbilityRealLevelField_Limits=_,_,_,_,0,_ (typo in Limits)
3. TriggerRegisterUnitInRangeSimple has Defaults specified twice
_TriggerRegisterUnitInRangeSimple_Defaults=256,_
_TriggerRegisterUnitInRangeSimple_Defaults=0,_,_,_
Result: the first "Defaults" is applied with 256,_ -- also that's matching the function signature, because it only has 2 user-defined parameters.
4. SetTimeOfDayScalePercentBJ: Defaults specified twice
_SetTimeOfDayScalePercentBJ_Defaults=100
_SetTimeOfDayScalePercentBJ_Defaults=0,_
Result: the 100 value is applied, it's also the one with correct number of parameters.
5. SetUnitLifeBJ: double defaults
_SetUnitLifeBJ_Defaults=GetTriggerUnit,GetUnitStateSwap
_SetUnitLifeBJ_Defaults=_,_,0,_
Result: the former is applied, OK
Fix: Second Defaults look like it is supposed to be _Limits
6. _BlzSetAbilityIntegerLevelFieldBJ_Defaults: doubled
_BlzSetAbilityIntegerLevelFieldBJ_Defaults=_,_,0,50
_BlzSetAbilityIntegerLevelFieldBJ_Defaults=_,_,_,_,0,_,0,_
Fix: Second Defaults look like it is supposed to be _Limits
7. CreateFogModifierRadiusLocBJ_Defaults: doubled
_CreateFogModifierRadiusLocBJ_Defaults=EnabledDisabledEnabled,Player00,FogStateVisible,GetRectCenter,512
_CreateFogModifierRadiusLocBJ_Defaults=_,_,_,_,_,_,_,_,0,_
Fix: Second Defaults look like it is supposed to be _Limits
Duplicate _Defaults property
The line was duplicated and it looks like the second entry was always supposed to be called _Limits (because twice the values specified, for min/max limit respectively)
_BlzSetAbilityIntegerLevelField_Defaults=_,_,0,50
_BlzSetAbilityIntegerLevelField_Defaults=_,_,_,_,0,_,0,_
---
Additional Information
Based on w3t-1.36.0.20144-b8db0de
Search with grep/ripgrep:
rg '^_' war3.w3mod/ui/triggerdata.txt | rg -v '_(Defaults|Category|CATEGORY|Parameters|DisplayName|Limits|ScriptName|UseWithAI|AIDefaults)'
Expected
Actual
BlzGetUnitCollisionSize: "Collision Size" does not have an assigned category in editor
BlzGetAbilityRealLevelField: a negative ability level can be entered due to missing limits
Reproduction steps
In GUI Trigger editor: set variable real = ... for both
TriggerRegisterUnitInRangeSimple: Create new Trigger Event and select "Unit - Unit Within Range" to view the defaults.
SetTimeOfDayScalePercentBJ Create new trigger action: "Game - Set Time of Day Speed"
Workaround
No response
Screenshots, test maps, other material
No response
External URLs
No response
Game Versions
1.36.0 (1.36.0.20144, 1.36.0.20171, 1.36.0.20200, 1.36.0.20210)
Summary
The functions' specifications in "triggerdata.txt" (for WorldEditor GUI trigger use) have unintended typos.
Description
1. BlzGetUnitCollisionSize is not categorized
_BlzGetUnitCollisionSize=TC_UNITis supposed to be_BlzGetUnitCollisionSize_Category=TC_UNIT2. BlzGetAbilityRealLevelField does not have limits specified
_BlzGetAbilityRealLevelField_Limites=_,_,_,_,0,_is supposed to be_BlzGetAbilityRealLevelField_Limits=_,_,_,_,0,_(typo in Limits)3. TriggerRegisterUnitInRangeSimple has Defaults specified twice
Result: the first "Defaults" is applied with
256,_-- also that's matching the function signature, because it only has 2 user-defined parameters.4. SetTimeOfDayScalePercentBJ: Defaults specified twice
Result: the
100value is applied, it's also the one with correct number of parameters.5. SetUnitLifeBJ: double defaults
Result: the former is applied, OK
Fix: Second
Defaultslook like it is supposed to be_Limits6. _BlzSetAbilityIntegerLevelFieldBJ_Defaults: doubled
Fix: Second
Defaultslook like it is supposed to be_Limits7. CreateFogModifierRadiusLocBJ_Defaults: doubled
Fix: Second
Defaultslook like it is supposed to be_LimitsDuplicate
_DefaultspropertyThe line was duplicated and it looks like the second entry was always supposed to be called
_Limits(because twice the values specified, for min/max limit respectively)Additional Information
Based on w3t-1.36.0.20144-b8db0de
Search with grep/ripgrep:
Expected
Actual
BlzGetUnitCollisionSize: "Collision Size" does not have an assigned category in editor
BlzGetAbilityRealLevelField: a negative ability level can be entered due to missing limits
Reproduction steps
In GUI Trigger editor: set variable real = ... for both
TriggerRegisterUnitInRangeSimple: Create new Trigger Event and select "Unit - Unit Within Range" to view the defaults.SetTimeOfDayScalePercentBJCreate new trigger action: "Game - Set Time of Day Speed"Workaround
No response
Screenshots, test maps, other material
No response