| 08-08-2005, 03:56 AM | #1 |
So, I go through my map trying to patch up all the memory leaks. I replace all player groups, unit groups, and points with variables.... However, I've run into a little problem... There was a trigger where when a timer ends, units in the playable map area that are a hero or a summoned unit will teleport to a point, that point being "random point in rect". The original effect would SCATTER all the heroes around. however, ever since i replaced it with a variable, all the heroes and summons would teleport clustered to an area... how would i go about fixing this? FURTHERMORE: my map still seems to do a whole lot of crashing with the Fatal Error thing. Is there any way I can do a scan for memory leaks? or perhaps send the map to someone to check it? I've patched up almost everything, yet it still crashes! |
| 08-08-2005, 02:25 PM | #2 |
The crashing might not have anything to do with memory leaks. The problem you have with all the units being teleported to the same spot is, before, it would pick a new random point for every unit, but now, you define the point first and then move all units to the same point. Instead, you should reset the point before moving each individual unit and remove it afterwards. |
| 08-08-2005, 04:49 PM | #3 |
i tried to make the point change every .01 seconds, but that didn't seem to work :( can you show me how to do that? also... what else could cause the crash? it happens on both of my maps... it says: FATAL ERROR memory could not be 'read' it happens to everyone, and they crash OUT of WC3.... I was told it was due to memory leaks, so what else could it be? |
| 08-08-2005, 05:04 PM | #4 |
Why change the point every 0.01 seconds? I assume you move all your units at once, so changing the point in a seperate trigger every 0.01 seconds won't help at all. You must change the point in the loop when you move all the units. |
