| 01-10-2003, 01:55 AM | #1 |
I haven't messed with most of the JASS functions until recently and just found out (the hard way :) that Blizzard's I2S() function is broken, or at least does not work in AI scripts (it returns string pointers into garbage memory, usually null, and hence sometimes crashes the game). Could anyone enlighten me on which one it is? And if there are any other Blizzard functions that they've found to be broken/not work properly in AI scripts? Its one thing to fiddle with things to figure out what they do, its another if they are just buggy. :) magnus |
| 01-10-2003, 03:13 PM | #2 |
AIAndy ran across this problem earlier. He should be able to give you insight into this. He made his own function to replace the messed up one. I hope since blizzard has not updated for awhile that we will get some major fixes like that. DKSlayer |
| 01-10-2003, 08:34 PM | #3 |
I wrote a function Int2Str to replace the function I2S. It's in the common.ai in the Commander and needs the function Dig2Str also in there. Unfortunally there are more broken functions in common.j . AFAIK all the functions in common.j that take code (functions) are broken. That includes the possibility to use triggers in AI. Some are replacable but some trigger functionality is not. I guess thats a pointer problem, too. |
