Hi. I have an issue on a map I've been working on for some time. The games freezes during playing but only for a couple of minutes (which is still unbearable long) before it returns to action like nothing happened. This bug seem to appear randomly during playing, sometimes right in the beginning and sometimes 15 minutes in.
Its a large B&D singleplayer map. Player (you) + ally computer vs 5 enemy computers. All computers have AI on, build stuff and sends attack waves. There is a lot of triggers and custom data and I've added Void dependency to get doodads and 16 textures but I am completely lost to what might be the root cause of this problem.
Have anyone encountered a similar problem and found an solution?
i want to spawn an item on the map but it shall not spawn at certain areas. i created a function that returns a point, within this function i excluded areas, range of units etc, i set a random point, if it doesnt fit i return the point of the same function call (recursion), otherwise return the random point.
game sometimes stopped because it couldn't find a valid point resulting in more and more calls of the function.
i assume you have something similiar where a function just does not finish. if the bug occurs offline , test your map with the debugger window and you will see which function took too long to execute.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi. I have an issue on a map I've been working on for some time. The games freezes during playing but only for a couple of minutes (which is still unbearable long) before it returns to action like nothing happened. This bug seem to appear randomly during playing, sometimes right in the beginning and sometimes 15 minutes in.
Its a large B&D singleplayer map. Player (you) + ally computer vs 5 enemy computers. All computers have AI on, build stuff and sends attack waves. There is a lot of triggers and custom data and I've added Void dependency to get doodads and 16 textures but I am completely lost to what might be the root cause of this problem.
Have anyone encountered a similar problem and found an solution?
i'll give an example of when that happened to me:
i want to spawn an item on the map but it shall not spawn at certain areas. i created a function that returns a point, within this function i excluded areas, range of units etc, i set a random point, if it doesnt fit i return the point of the same function call (recursion), otherwise return the random point.
game sometimes stopped because it couldn't find a valid point resulting in more and more calls of the function.
i assume you have something similiar where a function just does not finish. if the bug occurs offline , test your map with the debugger window and you will see which function took too long to execute.