
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
SC2 just received a backup bank feature. I would like to wish that the devs read my post and just added that...
I need to figure out how to properly restore the bank with that. I kind of lack the amount of banks to automatically restore the last good one. Now, I need a lot of tests to figure out how that works as the documentation in the editor lacks that information (e.g. like the range of IDs that are valid, what the highest ID is, which ID is newest, what happens if no backup bank with that ID exists, etc...).
Oh, and I just noticed some bugs:
- level up does not update the inventory UI, so level requirements on items are not drawn correctly (e.g. Mace requires level 2 and it is drawn red until the UI is updated, e.g. when durability on an item is lost). I assume this bug always existed.

- dropping an item bugs the inventory UI. I assume this bug appeared more recently.
edit:
Apparently, I was still on patch 4.1.4. The editor had a few parts of the new API, but not all of it... now you can actually use it.

edit:
TODO:
- make the dupe check work for loading a backed up bank while other players could be playing already (save the information of each loaded item)
- investigate inventory UI bug when dropping an item
edit:
I figured out why the inventory UI bug exists. Blizzard's API returns a unit group with invalid unit references when a unit's inventory is requested after moving an item out of the inventory onto the map. Together with their patch 4.0's loop code changes to improve the performance, the loop will break prematurely because it thinks the end was reached.
So, I guess I will look into coding a temporary fix for that via removing null entries before using it in any loop.
edit:
Temporary fix is working. But the bank backup feature has a security hole. Blizzard's implementation will not check the signature of the backup, so if you want to cheat, you edit the bank and the backup.
So, this destroys the backup restoring feature until that issue has been fixed unless your map allows edited banks.
Post has been edited 4 time(s), last time on Feb 21 2018, 5:20 pm by Ahli.