HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Village Tag! Bugs...

05-12-2006, 07:15 AM#1
kaldoreielf
I just ran a BETA test of my map over b.net. At the start it runs a small cinematic, then it creates one Child for every player. The problem is that it created about seven Children... Heres the trigger:

Trigger:
UnitCreation
Events
Conditions
Collapse Actions
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Picked player) controller) Equal to User
((Picked player) slot status) Equal to Is playing
Collapse Then - Actions
Unit - Create 1 Child for (Picked player) at (Center of ChildSpawn <gen>) facing Default building facing degrees
Collapse Else - Actions
Do nothing


Before this intiates, the cinematic fires, whether this makes a difference, I'll post the triggers:


Trigger:
CameraSetup
Collapse Events
Time - Elapsed game time is 0.05 seconds
Conditions
Collapse Actions
Cinematic - Turn cinematic mode On for (All players)
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Picked player) controller) Equal to User
((Picked player) slot status) Equal to Is playing
Collapse Then - Actions
Camera - Apply Camera 003 <gen> for (Picked player) over 0.00 seconds
Trigger - Run UnitStuff <gen> (ignoring conditions)
Collapse Else - Actions
Do nothing


Trigger:
UnitStuff
Events
Conditions
Collapse Actions
Unit - Order CinematicsChildren[1] to Move To (Center of ChildMove <gen>)
Wait 2.50 seconds
Cinematic - Send transmission to (All players) from CinematicsChildren[1] named Child 1: Play No sound and display Hey guys, what do y.... Modify duration: Add 0.00 seconds and Wait
Cinematic - Send transmission to (All players) from CinematicsChildren[2] named Child 2: Play No sound and display I'm not sure.... Modify duration: Add 0.00 seconds and Wait
Cinematic - Send transmission to (All players) from CinematicsChildren[3] named Child 2: Play No sound and display How about the old t.... Modify duration: Add 0.00 seconds and Wait
Cinematic - Send transmission to (All players) from CinematicsChildren[1] named Child 2: Play No sound and display Sure, I'll go get s.... Modify duration: Add 0.00 seconds and Wait
Unit - Remove CinematicsChildren[1] from the game
Unit - Remove CinematicsChildren[2] from the game
Unit - Remove CinematicsChildren[3] from the game
Cinematic - Fade out and back in over 3.00 seconds using texture White Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
Trigger - Run NormalCam <gen> (ignoring conditions)
Trigger - Run NormalMode <gen> (ignoring conditions)


Trigger:
NormalCam
Events
Conditions
Collapse Actions
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Picked player) controller) Equal to User
((Picked player) slot status) Equal to Is playing
Collapse Then - Actions
Camera - Apply NormalCam <gen> for (Picked player) over 0.00 seconds
Cinematic - Turn cinematic mode Off for (All players)
Collapse Else - Actions
Do nothing


Trigger:
NormalMode
Events
Conditions
Collapse Actions
Trigger - Run Melee Initialization <gen> (checking conditions)
Trigger - Run Initialization <gen> (checking conditions)
Trigger - Run UnitCreation <gen> (checking conditions)
Dialog - Show ModeDialog for Player 1 (Red)




I have changed something now, so I don't know if these triggers are fine. If they are, tell me, and please tell me if there are any leaks and how too fix them.
Thanks in advance.
05-12-2006, 08:04 AM#2
PipeDream
Why do you have an event for Unit Creation when it is run by a trigger?
05-12-2006, 09:09 AM#3
kaldoreielf
I don't understand what you mean...
05-12-2006, 11:01 AM#4
Blade.dk
The CameraSetup trigger runs UnitStuff trigger a number of times equal to the number of players. Then the UnitStuff trigger runs the NormalMode trigger.
Last, the NormalMode trigger runs the UnitCreation trigger that creates a unit per player.

As there are seven players, the UnitCreation trigger will actually run 7 times now, so each player gets 7 units. You will have to make sure that UnitCreation is only executed once.
05-12-2006, 09:11 PM#5
kaldoreielf
How can I do that? I mean... it shows the cinematic seven times aswell.
05-13-2006, 03:10 AM#6
Mystic Prophet
on the normal mode trigger. delete the run unit creation action. that should fix it.