- Joined
- Mar 27, 2012
- Messages
- 3,232
Apparently small and large letters mean the same thing in some cases, but not in others.
In those pictures you can see the object editor data for 2 abilities. Notice how their icons are not same in object editor, but are ingame.
Also notice how the tooltip of the ability has changed ingame, but description hasn't.
Additionally, their rawcodes differ only in the capitalization of one letter.
What I believe is going on in the background is that whenever an object's data is read the game stores the fact somewhere. Later when the same object's data is read again it simply takes the stored value. The bug comes from this rereading part being case insensitive.
In this case the tooltip is from Web because the tooltip of Web got loaded first(I have a trigger that assigns abilities to triggers based on tooltips). However, the description only got loaded when I picked the hero, so this is how the combination happened.
There might be similar bugs elsewhere, with implications to how save/load systems work.
EDIT: I just realized that the tooltips were right at least once, otherwise my system would have been unable to find either of the abilities. Also, Inner Fire somehow worked properly even though it should have the same bug.
In those pictures you can see the object editor data for 2 abilities. Notice how their icons are not same in object editor, but are ingame.
Also notice how the tooltip of the ability has changed ingame, but description hasn't.
Additionally, their rawcodes differ only in the capitalization of one letter.
What I believe is going on in the background is that whenever an object's data is read the game stores the fact somewhere. Later when the same object's data is read again it simply takes the stored value. The bug comes from this rereading part being case insensitive.
In this case the tooltip is from Web because the tooltip of Web got loaded first(I have a trigger that assigns abilities to triggers based on tooltips). However, the description only got loaded when I picked the hero, so this is how the combination happened.
There might be similar bugs elsewhere, with implications to how save/load systems work.
EDIT: I just realized that the tooltips were right at least once, otherwise my system would have been unable to find either of the abilities. Also, Inner Fire somehow worked properly even though it should have the same bug.