jassdoc icon indicating copy to clipboard operation
jassdoc copied to clipboard

1.31: Specific Unit Events lost during game save/load

Open Luashine opened this issue 2 years ago • 0 comments

В 1.31 существует баг, проявляющийся после загрузок сохранённых игр. В этом случае перестают работать почти все раннее добавленные события триггеров типа Specific Unit Event (EVENT_UNIT_SPELL_EFFECT, EVENT_UNIT_USE_ITEM и т.п.) Из подобных остаются работать всего несколько (EVENT_UNIT_DAMAGED, EVENT_UNIT_DEATH). Если ваша карта не односессионная, то необходимо либо использовать только события типа Generic Unit Event (EVENT_PLAYER_UNIT_SPELL_EFFECT, EVENT_PLAYER_UNIT_USE_ITEM и т.п.). Либо отслеживать событие загрузки игры (EVENT_GAME_LOADED) и добавлять заново потерянные события.

There's a bug in 1.31 that comes up after loading a saved game. In this case almost all Specific Unit Events stop working (EVENT_UNIT_SPELL_EFFECT, EVENT_UNIT_USE_ITEM etc.) Of all these only a few continue to work correctly (EVENT_UNIT_DAMAGED, EVENT_UNIT_DEATH). If your map isn't a single-session map, you must use only events of type Generic Unit Event (EVENT_PLAYER_UNIT_SPELL_EFFECT, EVENT_PLAYER_UNIT_USE_ITEM etc.). Alternatively track game loading (EVENT_GAME_LOADED) and readd the lost trigger events.

  • Source: https://xgm.guru/p/wc3/warcraft-multiversion-guide#h7

Although https://wowpedia.fandom.com/wiki/Warcraft_III/Patch_1.31.0 says (see below) its worth to verify and add.

Triggers won't be lost during saves (Thank you, Bribe)

Luashine avatar Oct 09 '22 12:10 Luashine