- Joined
- Jan 26, 2019
- Messages
- 90
Thanks to one person, were able to compile the original YDWE and gain access to all the functionality and some changes from the old author that we did not have.
[YDWE PK Edition 1.7]
- Plugin [Jass Runtime Debug] error text translated into English
- Fixed memory leak of reading and writing objects
- Fixed compatibility with wurst
- Fixed Blizzard functions "TriggerRegisterEnterRectSimple" and "TriggerRegisterLeaveRectSimple" Which incorrectly affected coordinate checking such functions as: RectContainsUnit / -RectContainsCoords / etc
- It looks like this: Event "unit enters Rect" If you enter from the left or from below, the functions that determine that the unit is inside the Rect assume that you are already inside, but if you enter from above or from the right, they assume that you are not yet inside.
In fact, the problem is in native function "RegionAddRect" which Makes the Region larger than the initially specified Rect, to the right and top sides (Max X, Max Y)
To these two problematic functions, added solution where Region becomes the same size as Rect.
- It looks like this: Event "unit enters Rect" If you enter from the left or from below, the functions that determine that the unit is inside the Rect assume that you are already inside, but if you enter from above or from the right, they assume that you are not yet inside.
- [Unbelievable] "Local Varriables" and "Custom Values" now supports setting the value to "null"
- GUI function "Pick Every Unit In Unit Group And Do Multiple Actions" no longer creates special YDWE local variables that are not needed for this function
- GUI function "Exit From Loop" no longer inserts the stub function "DoNothing" before itself
- Added GUI triggers category [Will Be Removed]
- Which will contain old YDWE functions for which analogues have appeared. These functions will be removed in the following patches, so if you use them, you should replace them before switching to new versions of YDWE so that the map opens and save without errors.
Added file "Will Be Removed.txt" in main ydwe folder, it contains the names of jass functions that will be removed in next patches.
- Which will contain old YDWE functions for which analogues have appeared. These functions will be removed in the following patches, so if you use them, you should replace them before switching to new versions of YDWE so that the map opens and save without errors.
- Now almost all GUI functions which create objects like "Create Unit" do not use bj functions for set bj variables like "bj_lastCreatedUnit"
- Instead, they immediately set the variable like this: set bj_lastCreatedUnit = CreateUnit()
Old functions marked as [Will Be Removed]
- Instead, they immediately set the variable like this: set bj_lastCreatedUnit = CreateUnit()
- System [Damage Engine] changes:
- Function "Damage Engine - Damage Target" boolean parameter "anti-recursion" has been changed.
Recursion is when you decide to deal new damage in a damage event, resulting in an infinite loop (unit takes damage - deal damage - unit takes damage)
Classic Damage Engine allowed only disable damage event for the next damage dealt.
Now damage event is not disabled for the next damage, but next damage cant launch another next damage in damage event, and despite the fact that next damage will work before old damage completely completes its actions, old damage parameters (damage type/damage) are now saved.
Which allows for correct damage calculations and damage types for the first and second damage dealt.
- Function "Damage Engine - Damage Target" boolean parameter "anti-recursion" has been changed.
- Some names of GUI functions that were the same or similar have been slightly changed
- Added new GUI functions:
- Events
- [Unit] Unit Enters or Leaves Rect
Each time you use the "Enters/Leaves. Rect" event, you create a new Region for which the specified Rect will be used
So if you need both events for the same Rect, you can use this function and save on creating one Region. It is also faster than specifying the same region twice - [Unit] Any Unit Moves Item In Inventory
- [Unit] Unit Enters or Leaves Rect
- Actions:
- [Unbelievable] Select All Units In Rect
- Calls:
- Create Sound
- Create Sound Filename With Label
- Create Sound From Label
- Presets:
- [Integer] Item Moved In Inventory - Start Slot Number
- [Integer] Item Moved In Inventory - Target Slot Number
- [Item] Last Item Moved In The Inventory
- Events
- Added new GUI lessons:
- Stack & Unstack Items
- Demo map "Damage Engine" has been updated
- Added null gui presets:
- No Fog State
- Added categories for conditions
- Sound
- Item Pool
- Unit Pool
- Player Group
- Special Effect
- Timer Dialog
- Unit Group
- Leaderboard
- Multiboard
- Text Tag
- Lightning
- Image
- Fog State
- For Modifier
- Quest
- Quest Item