HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Bug at init: kicks everyone out. I know wut the cause is

04-05-2007, 12:58 AM#1
Exilus
it seems to be caused by this trigger. i made it happen at ini, then at 20 sec. All the players from the opposite team i am standing in (i tried with both) gets instantly kicked when this trigger triggers:

Trigger:
Post Init
Collapse Events
Time - Elapsed game time is 5.00 seconds
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) is an ally of Player 7 (Green)) Equal to True
Collapse Then - Actions
Custom script: if GetLocalPlayer() == GetEnumPlayer() then
Multiboard - Create a multiboard with 2 columns and 8 rows, titled Shields
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to |cffffcc00OUTER SHI...
Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to Leak Chance:
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to -
Multiboard - Set the width for (Last created multiboard) item in column 1, row 0 to 10.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 5.00% of the total screen width
-------- outer --------
Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to |cffffcc00INNER SHI...
Multiboard - Set the text for (Last created multiboard) item in column 1, row 8 to Leak Chance:
Multiboard - Set the text for (Last created multiboard) item in column 2, row 6 to -
Multiboard - Show (Last created multiboard)
Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNLightningShield.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 1 to ReplaceableTextures\CommandButtons\BTNLightningShield.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 5 to ReplaceableTextures\CommandButtons\BTNLightningShield.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 2 to ReplaceableTextures\CommandButtons\BTNHeartOfAszune.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 6 to ReplaceableTextures\CommandButtons\BTNHeartOfAszune.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 3 to ReplaceableTextures\CommandButtons\BTNNeutralManaShield.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 7 to ReplaceableTextures\CommandButtons\BTNNeutralManaShield.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 4 to ReplaceableTextures\CommandButtons\BTNWindWalkOff.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 8 to ReplaceableTextures\CommandButtons\BTNWindWalkOff.blp
Set MultiboardBottom = (Last created multiboard)
Custom script: endif
Collapse Else - Actions
Custom script: if GetLocalPlayer() == GetEnumPlayer() then
Multiboard - Create a multiboard with 2 columns and 8 rows, titled Shields
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to |cffffcc00OUTER SHI...
Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to Leak Chance:
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to -
Multiboard - Set the width for (Last created multiboard) item in column 1, row 0 to 10.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 5.00% of the total screen width
-------- outer --------
Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to |cffffcc00INNER SHI...
Multiboard - Set the text for (Last created multiboard) item in column 1, row 8 to Leak Chance:
Multiboard - Set the text for (Last created multiboard) item in column 2, row 6 to -
Multiboard - Show (Last created multiboard)
Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNLightningShield.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 1 to ReplaceableTextures\CommandButtons\BTNLightningShield.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 5 to ReplaceableTextures\CommandButtons\BTNLightningShield.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 2 to ReplaceableTextures\CommandButtons\BTNHeartOfAszune.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 6 to ReplaceableTextures\CommandButtons\BTNHeartOfAszune.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 3 to ReplaceableTextures\CommandButtons\BTNNeutralManaShield.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 7 to ReplaceableTextures\CommandButtons\BTNNeutralManaShield.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 4 to ReplaceableTextures\CommandButtons\BTNWindWalkOff.blp
Multiboard - Set the icon for (Last created multiboard) item in column 0, row 8 to ReplaceableTextures\CommandButtons\BTNWindWalkOff.blp
Set MultiboardTop = (Last created multiboard)
Custom script: endif
Trigger - Turn on ColorInnerBotom <gen>
Trigger - Turn on ColorInnerTop <gen>
Trigger - Turn on ColorOuterBotom <gen>
Trigger - Turn on ColorOuterTop <gen>


it is supposed to create a separate multiboard for Top team, and a separate multiboard for Bottom team. however it seems to kick all of the oposite team out =/
04-05-2007, 01:06 AM#2
Ammorth
I recommend making 2 multibaords with all the info, and then at the end, hide the multiboards for every and then display the correct boards to the correct people. What you are doing is making a multiboard locally, which uses a handle, and I think the game should automatically desync when you have a local handle.
04-05-2007, 01:23 AM#3
Exilus
i think you cant choose to show it only to a few players. its global Hide or global SHOW. this 2 lines of jass were supposed to do that, but obviously its bugging the map. what should i do?
04-05-2007, 02:35 AM#4
Ammorth
Again, you are creating a multiboard locally meaning it will cause desyncs. What you want to do is create it globally, and then show it locally. (just use a loop and hide it for all players) and then use:
Trigger:
Custom script: if GetLocalPlayer() == Player(0) then
Multiboard - Show multiboardTeam1
Custom script: endif
Custom script: if GetLocalPlayer() == Player(1) then
Multiboard - Show multiboardTeam1
Custom script: endif
Custom script: if GetLocalPlayer() == Player(2) then
Multiboard - Show multiboardTeam1
Custom script: endif
Custom script: if GetLocalPlayer() == Player(3) then
Multiboard - Show multiboardTeam1
Custom script: endif
Custom script: if GetLocalPlayer() == Player(4) then
Multiboard - Show multiboardTeam1
Custom script: endif
-------- Team 2 --------
Custom script: if GetLocalPlayer() == Player(5) then
Multiboard - Show multiboardTeam2
Custom script: endif
Custom script: if GetLocalPlayer() == Player(5) then
Multiboard - Show multiboardTeam2
Custom script: endif
Custom script: if GetLocalPlayer() == Player(6) then
Multiboard - Show multiboardTeam2
Custom script: endif
...

The mutiboard will be created for everyone, and then you just display them for the correct people.
04-05-2007, 06:56 AM#5
Toadcop
to fill MB with data for local players will cause DeSyncs ! you can Show/Hide and Minimize/Maximaze MB's the MBitem data must be the same for all players !
04-05-2007, 01:52 PM#6
The)TideHunter(
Yeah, just create 12 multiboards and hide eleven of them for each player, while showing his own, and fill all the multiboards in normally.
04-05-2007, 02:09 PM#7
Exilus
Fixed my problem.

+rep to you! =)
04-05-2007, 02:15 PM#8
Ammorth
Players start at 0 in JASS. So Player 1 (red) == Player(0) and Player 12 (brown?) == Player(11).