tdauth / wowr

Warcraft III: Reforged funmap World of Warcraft Reforged.
https://wowreforged.org
8 stars 0 forks source link

Crash when clicking on a backpack after loading a savegame in singleplayer #1030

Closed tdauth closed 2 months ago

tdauth commented 2 years ago

Google translate. Crash when clicking on a backpack after loading a save in a single player game in all versions after 1.9.6 Kellias — heute um 14:14 Uhr 1 Player + 6 AI (2x3). Preferences - custom, G type - normal, AI - only warlords, savecodes - no, Ai spec - burning legion, tomes - no, themes - warcraft, AI respawn - no, VIP - no, victory killing A - yes. Baradé — heute um 14:32 Uhr

tdauth commented 2 years ago

Probably due to the custom frames becoming invalid. Checkout the big FDF tutorial on this.

tdauth commented 2 years ago

It should already help to disable the custom GUI it by default.

tdauth commented 2 years ago

See https://www.hiveworkshop.com/pastebin/e23909d8468ff4942ccea268fbbcafd1.20598#FrameSaveAndLoad Create functions to destroy the custom UIs and recreate them after loading.

tdauth commented 2 years ago

Kellias — heute um 03:27 Uhr Still crashes under the same conditions if I try to take or put an item in my backpack or cange page after loading. I checked your "wowtsr1.4" with the same backpack, everything is fine there, but I don't remember why I abandoned it in favor of even older versions of this map.

tdauth commented 2 years ago

Just fix the refresh functionality for the custom GUI.

tdauth commented 2 years ago

by recreating all custom Frames on loading. While this sounds difficult to do it is quite simple for static frames.

The example code in the tutorial waits 0 seconds after loading in a timer and recreates all frame UIs. There is no destroy function.

tdauth commented 1 year ago

Use the new FrameLoad system from the custom race UI system. It should fix this issue.

tdauth commented 2 months ago

Fixed.