So pretty much for the better part of a year Tofu has had one script error that I could never locate - although I presumed I knew what was causing it, it didn't create any problems for the game so I let it go ... but it was still there ... and I knew it was there ... and it was annoying me.
What it was is that sometimes one certain array would go past its max amount (or I should say below it's minimum value - ie: it would reference array[-1] instead of 0 - 15). And this -1 corresponded to the damaging player (how a player could be -1 is something that is beyond me, only Blizzard could answer that - i presume it holds a purpose but IMO, every damaging effect should be from a player).
But, with the new debugger, I was able after the first time of getting the error to occur to pinpoint the line in the script and add a basic if >0 do it, and ta-da, no more errors.
The new debugger is amazing, being able to see all variables and pinpoint exactly what is happening.
That being said ... it is stupid slow in Tofu if I leave the game loop running ... but I can disable that for testing purposes ... just no UI/reviving -_-.
The player -1 is the source of Kill unit action, for example. Nothing strange, because -1 states that NO player has done anything.
That is what I was thinking it could be - however no unit killed commands are being issued (at least from my side - triggering), as this event registers when I am in game killing a unit using my hero (very very rarely - maybe 5% of the time) even if the same abilities are used etc.
@ TW, -_- I don't want shitty maps hosted at the top of the list that no one wants to play because they are, well, fourth word in this sentance.
Shitty maps?, lol I was in photon cycles earlier and no one, and then Income wars, we got 4 people and no more joined... its like that, There are good maps too. lol.
On a side note, mini chop farms filled right up lol.
Yup, the new debugger is much better. It's still not perfect, but it's ability to freeze the game at the exact line of code is so helpful. That, and seeing the local variable's values at the time of the error.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
To post a comment, please login or register a new account.
So pretty much for the better part of a year Tofu has had one script error that I could never locate - although I presumed I knew what was causing it, it didn't create any problems for the game so I let it go ... but it was still there ... and I knew it was there ... and it was annoying me.
What it was is that sometimes one certain array would go past its max amount (or I should say below it's minimum value - ie: it would reference array[-1] instead of 0 - 15). And this -1 corresponded to the damaging player (how a player could be -1 is something that is beyond me, only Blizzard could answer that - i presume it holds a purpose but IMO, every damaging effect should be from a player).
But, with the new debugger, I was able after the first time of getting the error to occur to pinpoint the line in the script and add a basic if >0 do it, and ta-da, no more errors.
The new debugger is amazing, being able to see all variables and pinpoint exactly what is happening.
That being said ... it is stupid slow in Tofu if I leave the game loop running ... but I can disable that for testing purposes ... just no UI/reviving -_-.
The player -1 is the source of Kill unit action, for example. Nothing strange, because -1 states that NO player has done anything.
@o3210: Go
Support http://us.battle.net/sc2/en/forum/topic/6248185666#1
Lol, lets fix bring the minor problem with the open games list up to blizzard.
i is greater than 31.5?
That is what I was thinking it could be - however no unit killed commands are being issued (at least from my side - triggering), as this event registers when I am in game killing a unit using my hero (very very rarely - maybe 5% of the time) even if the same abilities are used etc.
@ TW, -_- I don't want shitty maps hosted at the top of the list that no one wants to play because they are, well, fourth word in this sentance.
@jaxter184: Go
-_-
@DogmaiSEA: Go
Shitty maps?, lol I was in photon cycles earlier and no one, and then Income wars, we got 4 people and no more joined... its like that, There are good maps too. lol.
On a side note, mini chop farms filled right up lol.
Yup, the new debugger is much better. It's still not perfect, but it's ability to freeze the game at the exact line of code is so helpful. That, and seeing the local variable's values at the time of the error.