-
Notifications
You must be signed in to change notification settings - Fork 0
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
GUI Triggers: buggy specifications in triggerdata.txt #20
Comments
I changed the title and noted all issues that are present in triggerdata.txt. They don't appear |
the second line of each of the duplicate Defaults entries is definitely supposed to be a limits entry yeh |
TriggerRegisterCommonCommandEventBJ has no parameters specified (jassdoc link):
Same for CreateCommonCommandButtonEffectBJ (jassdoc)
I have not looked at these in the WE, but they both use the type Tilde type parameters not separated by a comma (1.36.0.20144):
|
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
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
100
value is applied, it's also the one with correct number of parameters.5. SetUnitLifeBJ: double defaults
Result: the former is applied, OK
Fix: Second
Defaults
look like it is supposed to be_Limits
6. _BlzSetAbilityIntegerLevelFieldBJ_Defaults: doubled
Fix: Second
Defaults
look like it is supposed to be_Limits
7. CreateFogModifierRadiusLocBJ_Defaults: doubled
Fix: Second
Defaults
look like it is supposed to be_Limits
Duplicate
_Defaults
propertyThe 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.SetTimeOfDayScalePercentBJ
Create new trigger action: "Game - Set Time of Day Speed"Workaround
No response
Screenshots, test maps, other material
No response
The text was updated successfully, but these errors were encountered: