- Joined
- Jun 5, 2011
- Messages
- 788
I have a big problem... i have been working for the last months on a map and just a few days ago it happened that i finished the beta version, so basically it's fully playable but still needs more improvements to have quite a better gameplay.
Unfortunately when i tried to play it with other people around (some of my friends and others) i realised that it had a major bug. The map somehow kicks all players from teams 2 and 3 (it has 3 teams) and gives the winning dialog to team 1. I am 100% sure that i didn't include any type of trigger or data that may make a player get disconnected... but i just don't know now... it's too weird.
All the players in team 2 and 3 get the "you were disconnected" message, like the host would end the game or something... but it's just strange.
Can anyone help me or tell me if they had a similar problem and found a solution?
Thanks in advance!
EDIT: I've just tried a few things and discovered that by disabling my initialization trigger the map doesn't disconnect players anymore... so i think the problem comes from here. If anyone can see what's wrong then please tell me:
Unfortunately when i tried to play it with other people around (some of my friends and others) i realised that it had a major bug. The map somehow kicks all players from teams 2 and 3 (it has 3 teams) and gives the winning dialog to team 1. I am 100% sure that i didn't include any type of trigger or data that may make a player get disconnected... but i just don't know now... it's too weird.
All the players in team 2 and 3 get the "you were disconnected" message, like the host would end the game or something... but it's just strange.
Can anyone help me or tell me if they had a similar problem and found a solution?
Thanks in advance!
EDIT: I've just tried a few things and discovered that by disabling my initialization trigger the map doesn't disconnect players anymore... so i think the problem comes from here. If anyone can see what's wrong then please tell me:
-
Initialize
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Game - Set the time of day to 24.00
-


Game - Set time of day speed to 0.00% of the default speed
-


-------- ----- --------
-


Floating Text - Create floating text that reads Knight at (Center of pick knight <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
-


Floating Text - Create floating text that reads Scout at (Center of pick scout <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
-


Floating Text - Create floating text that reads Mage at (Center of pick mage <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
-


Floating Text - Create floating text that reads Priest at (Center of pick priest <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
-


Floating Text - Create floating text that reads Rogue at (Center of pick rogue <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
-


Floating Text - Create floating text that reads Hunter at (Center of pick hunter <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
-


Floating Text - Create floating text that reads Stalker at (Center of pick stalker <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
-


Floating Text - Create floating text that reads Sentinel at (Center of pick sentinel <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
-


Floating Text - Create floating text that reads Shapeshifter at (Center of pick shapeshifter <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
-


Floating Text - Create floating text that reads Shadowmancer at (Center of pick shadowmancer <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
-


-------- ----- --------
-


Player - Set name of Player 12 (Brown) to Animals
-


-------- ----- --------
-


For each (Integer A) from 1 to 11, do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Player((Integer A))) slot status) Equal to Is playing
-
-





Then - Actions
-






Player Group - Add (Player((Integer A))) to on_players
-






Unit Group - Pick every unit in (Units owned by (Player((Integer A))) of type Choice) and do (Camera - Lock camera target for (Player((Integer A))) to (Picked unit), offset by (0.00, 0.00) using Default rotation)
-






Selection - Select (Units owned by (Player((Integer A))) of type Choice) for (Player((Integer A)))
-






Trigger - Add to Texts Descriptions <gen> the event (Player - (Player((Integer A))) Selects a unit)
-






Trigger - Add to Player leaves <gen> the event (Player - (Player((Integer A))) leaves the game)
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Integer A) Less than or equal to 5
-
-







Then - Actions
-








Player Group - Add (Player((Integer A))) to team1
-








Set integer_team1 = (integer_team1 + 1)
-
-







Else - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Integer A) Less than or equal to 10
-
-









Then - Actions
-










Player Group - Add (Player((Integer A))) to team2
-










Set integer_team2 = (integer_team2 + 1)
-
-









Else - Actions
-










Player Group - Add (Player((Integer A))) to team3
-










Set integer_team3 = (integer_team3 + 1)
-
-
-
-
-
-





Else - Actions
-






Unit Group - Pick every unit in (Units owned by (Player((Integer A)))) and do (Unit - Remove (Picked unit) from the game)
-
-
-
-
-


Trigger - Run Basic items spawn <gen> (checking conditions)
-


Trigger - Run Basic items spawn <gen> (checking conditions)
-


Trigger - Run Basic items spawn <gen> (checking conditions)
-


Trigger - Run secondary items spawn <gen> (checking conditions)
-


Trigger - Run Animals spawn1 <gen> (checking conditions)
-


Trigger - Run Starting items <gen> (checking conditions)
-


Trigger - Run Books <gen> (checking conditions)
-


Trigger - Turn off (This trigger)
-


Unit - Remove Hide from Rogue 0021 <gen>
-


Destructible - Pick every destructible in (Entire map) and do (Actions)
-



Loop - Actions
-




If ((Destructible-type of (Picked destructible)) Equal to Snowy Tree Wall (custom)) then do (Trigger - Add to Trees <gen> the event (Destructible - (Picked destructible) dies)) else do (Do nothing)
-
-
-


Game - Display to on_players for 15.00 seconds the text: Greetings... Becaus...
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(integer_team2 Equal to 0) and (integer_team3 Equal to 0)
-
-



Then - Actions
-




Set testmode = True
-




Game - Display to on_players the text: TEST MODE IS ACTIVE...
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(integer_team1 Equal to 0) and (integer_team3 Equal to 0)
-
-





Then - Actions
-






Set testmode = True
-






Game - Display to on_players the text: TEST MODE IS ACTIVE...
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(integer_team2 Equal to 0) and (integer_team1 Equal to 0)
-
-







Then - Actions
-








Set testmode = True
-








Game - Display to on_players the text: TEST MODE IS ACTIVE...
-
-







Else - Actions
-
-
-
-
-
-


Wait 15.00 seconds
-


Game - Display to on_players for 15.00 seconds the text: Each human team has...
-


Wait 15.00 seconds
-


Game - Display to team1 for 15.00 seconds the text: Humans, remember th...
-


Game - Display to team2 for 15.00 seconds the text: Humans, remember th...
-


Game - Display to team3 for 15.00 seconds the text: As the shadow, you ...
-
-
Last edited:







