| 10-17-2004, 08:11 PM | #1 |
Hey, I'm having a problem with a message i keep getting when testing my map. It says Fatal Error! The instruction at '0x6f27c14a' referenced memory at '0x00d019c'. The memory could not be written. Here is the trigger that seems to be causing the problem, because when I disable it, the game runs smoothly. Events Time - Every 3.00 seconds of game time Conditions None Actions For each (Integer A) from 1 to 5, do (Actions) Loop - Actions Set Region = (Random integer number between 1 and 16) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 1 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of A Neighborhood 1 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 2 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of A Neighborhood 2 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 3 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of A Neighborhood 3 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 4 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of A Neighborhood 4 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 5 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of A Neighborhood 5 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 6 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of A Neighborhood 6 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 7 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of A Neighborhood 7 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 8 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of A Neighborhood 8 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 9 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of B Neighborhood 1 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 10 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of B Neighborhood 2 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 11 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of B Neighborhood 3 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 12 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of B Neighborhood 4 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 13 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of B Neighborhood 5 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 14 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of B Neighborhood 6 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 15 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of B Neighborhood 7 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Region Equal to 16 WaveZombies[1] Less than WaveZombies[2] Then - Actions Unit - Create (Random integer number between 0 and 3) Zombie for Player 12 (Brown) at (Center of B Neighborhood 8 <gen>) facing Default building facing degrees Set WaveZombies[1] = (WaveZombies[1] + 1) Else - Actions -Miningjrk |
| 10-17-2004, 10:50 PM | #2 |
I think it might be the creation of 0 zombies which causes crash. |
| 10-17-2004, 10:52 PM | #3 |
Yea, try a number between 1 and 3. P.S. Thank god you found that, i wouldn't even have looked. Thats a long trigger. |
| 10-17-2004, 10:55 PM | #4 |
and if I'm correct not needed 2 be as long either. U could make a region variable array to get rid of some of the if/then/else. |
| 10-18-2004, 01:12 AM | #5 |
Thank you thank you! It worked! -Miningjrk |
