| 10-22-2005, 07:10 PM | #1 |
Ok, a map i've been working on alot recently crashes often, and has many lag bursts. I think this may have something to do with a desyncing trigger, also I installed Creep Rebellion into the map if anyone knmows any bugs concerning that. Please tell me ways to find a desyncing trigger, and also if anyone knows more details on maps crashing when a player leaves the game would be great. I believe this trigger crashes the game, but dont know what causes the lag yet. Code:
Player Leaves
Events
Player - Player 1 (Red) leaves the game
Player - Player 1 (Red) leaves the game with a defeat
Player - Player 2 (Blue) leaves the game
Player - Player 2 (Blue) leaves the game with a defeat
Player - Player 3 (Teal) leaves the game
Player - Player 3 (Teal) leaves the game with a defeat
Player - Player 4 (Purple) leaves the game
Player - Player 4 (Purple) leaves the game with a defeat
Player - Player 5 (Yellow) leaves the game
Player - Player 5 (Yellow) leaves the game with a defeat
Player - Player 6 (Orange) leaves the game
Player - Player 6 (Orange) leaves the game with a defeat
Player - Player 7 (Green) leaves the game
Player - Player 7 (Green) leaves the game with a defeat
Player - Player 8 (Pink) leaves the game
Player - Player 8 (Pink) leaves the game with a defeat
Player - Player 9 (Gray) leaves the game
Player - Player 9 (Gray) leaves the game with a defeat
Player - Player 10 (Light Blue) leaves the game
Player - Player 10 (Light Blue) leaves the game with a defeat
Player - Player 11 (Dark Green) leaves the game
Player - Player 11 (Dark Green) leaves the game with a defeat
Player - Player 12 (Brown) leaves the game
Player - Player 12 (Brown) leaves the game with a defeat
Conditions
Actions
Set Alliance_Number[(Player number of (Player(Alliance_Number[(Player number of (Triggering player))])))] = 0
Set TempPlayerGroup2 = (Player group((Player(Alliance_Number[(Player number of (Triggering player))]))))
Game - Display to TempPlayerGroup2 for 10.00 seconds the text: |cffff0000Your Perm...
Custom script: call DestroyForce(udg_TempPlayerGroup2)
Set Alliance_Number[(Player number of (Triggering player))] = 0
Set TempUnitGroup = (Units owned by (Triggering player))
Unit Group - Pick every unit in TempUnitGroup and do (Unit - Kill (Picked unit))
Custom script: call DestroyGroup(udg_TempUnitGroup) |
| 10-22-2005, 11:21 PM | #2 |
using the Convert Index to player function is always risky, if you give it bad values it will crash for sure |
| 10-22-2005, 11:26 PM | #3 |
lag is most often caused by massive ammounts of units, or memory leaks. other things can cause lag, but those are the 2 most common. |
| 10-23-2005, 01:46 PM | #4 |
Thanks Lord Vexorian, you saying that reminded me that 0 isn't a player and if no one in the game has permanently allied yet its still 0. But, asbout the lag spurts, its the beginning of the game so even if I did have memory leaks that wouldn't happen, and its a small map with everyone starting out with normal melee units. So too many units and memory leaks cant be the cause. Also, I think it may crash for other reasons too. |
| 10-28-2005, 09:17 PM | #5 |
Ok, well the leaving was the crashing I think. But it may still crash, and there also are the lag bursts. Anyone know of any laggy problems with using Creep Rebellion in a map? |
| 10-30-2005, 01:13 AM | #6 |
Code:
Player - Player 1 (Red) leaves the game
Player - Player 1 (Red) leaves the game with a defeatI think removing the second one will fix it. When u put "Player - Player 1 (Red) leaves the game", there is no more need the defeat condition. |
| 11-05-2005, 03:27 PM | #7 |
The leaves game thing is fixed, but there are still the lag burst at the begginning of the map. |
| 11-06-2005, 09:16 AM | #8 |
Perhaps you place some units or add some abilities to units at that time that need to be loaded. Loading stuff is often the cause of lag bursts. |
| 11-06-2005, 02:12 PM | #9 |
Theres really nothing going on, none of my trigers are periodic or anything and most of them run when a fight is going on which there is none of in the beginning. As I said before I put Creep Rebellion into the map, is there any known problems with CR I should know of? |
