I just finished my copy of stormwind into the Worldeditor but now i have "mapsplit" problems. Everytime I start a game the half of the players left and play in a "parallel" game - spooky =) - can you tell me how this problem can appear. Or what to do to fix that bug. I know that there are triggers which don't work with the "Mapinit" or "eplapsed time 0:00-0:01", but I don't know which do and which do not :S
Many: Set Variable ... Set Variable ... = Hero2 .. etc. - pick every unit in - change owner of picked unit - set name of ... - set supply - if ... plays remove hero2 .. etc.
thats all =(
oh and comments, but i don't think that they become important
Starteinstellungen Ereignisse Map initialization Bedingungen Aktionen -------- Siegesbedingungen -------- Set Horde_Sieg[4] = True Set Horde_Sieg[5] = True Set Allianz_Sieg[9] = True Set Allianz_Sieg[10] = True -------- Sounds & Musik -------- Set IntroSound[1] = SadMystery <gen> Set IntroSound[2] = NightElfDefeat <gen> -------- Passiv -------- Einheitengruppe - Pick every unit in (Units of type Tüftler) and do (Animation - Change (Picked unit)'s animation speed to 0.00% of its original speed) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude 2 (1.5)) and do (Einheit - Change ownership of (Picked unit) to Neutral passiv and Farbe wechseln) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude 2 (1.75)) and do (Einheit - Change ownership of (Picked unit) to Neutral passiv and Farbe wechseln) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude Grün 3 (1.5)) and do (Einheit - Change ownership of (Picked unit) to Neutral passiv and Farbe wechseln) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude Grün 3 (1.75)) and do (Einheit - Change ownership of (Picked unit) to Neutral passiv and Farbe wechseln) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude Rot 3 (1.0)) and do (Einheit - Change ownership of (Picked unit) to Neutral passiv and Farbe wechseln) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude Rot 3 (1.5)) and do (Einheit - Change ownership of (Picked unit) to Neutral passiv and Farbe wechseln) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude Rot 3 (1.75)) and do (Einheit - Change ownership of (Picked unit) to Neutral passiv and Farbe wechseln) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude 2 and do (Einheit - Change ownership of (Picked unit) to Neutral passiv and Farbe wechseln) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude and do (Einheit - Change ownership of (Picked unit) to Neutral passiv and Farbe wechseln) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude 2 (1.5)) and do (Einheit - Add Unverwundbar (Neutral) to (Picked unit)) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude 2 (1.75)) and do (Einheit - Add Unverwundbar (Neutral) to (Picked unit)) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude Grün 3 (1.5)) and do (Einheit - Add Unverwundbar (Neutral) to (Picked unit)) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude Grün 3 (1.75)) and do (Einheit - Add Unverwundbar (Neutral) to (Picked unit)) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude Rot 3 (1.0)) and do (Einheit - Add Unverwundbar (Neutral) to (Picked unit)) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude Rot 3 (1.5)) and do (Einheit - Add Unverwundbar (Neutral) to (Picked unit)) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude Rot 3 (1.75)) and do (Einheit - Add Unverwundbar (Neutral) to (Picked unit)) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude 2 and do (Einheit - Add Unverwundbar (Neutral) to (Picked unit)) Einheitengruppe - Pick every unit in (Units of type Stadtgebäude and do (Einheit - Add Unverwundbar (Neutral) to (Picked unit)) Einheitengruppe - Pick every unit in (Units of type Tüftler) and do (Einheit - Add Unverwundbar (Neutral) to (Picked unit)) -------- Spieler & Namen -------- Spieler - Set name of Spieler 1 (Rot) to Horde Spieler - Set name of Spieler 2 (Blau) to Allianz -------- Stützpunkte: Handelsdistrikt -------- Set Handelsdistrikt[1] = Allianz 0404 <gen> Set Handelsdistrikt[2] = Allianz 0402 <gen> Set Handelsdistrikt[3] = Allianz 0355 <gen> Set Handelsdistrikt[4] = Horde 0024 <gen> Set Handelsdistrikt[5] = Horde 0350 <gen> -------- Stützpunkte: Kathedralenplatz -------- Set Kathedralenplatz[1] = Allianz 0198 <gen> Set Kathedralenplatz[2] = Allianz 0403 <gen> Set Kathedralenplatz[3] = Allianz 0194 <gen> Set Kathedralenplatz[4] = Allianz 0193 <gen> Set Kathedralenplatz[5] = Allianz 0185 <gen> -------- Stützpunkte: Magierviertel -------- Set Magierviertel[1] = Allianz 0162 <gen> Set Magierviertel[2] = Allianz 0405 <gen> Set Magierviertel[3] = Allianz 0171 <gen> Set Magierviertel[4] = Allianz 0093 <gen> -------- Stützpunkte: Park -------- Set Park[1] = Allianz 0174 <gen> Set Park[2] = Allianz 0175 <gen> Set Park[3] = Allianz 0190 <gen> Set Park[4] = Allianz 0178 <gen> -------- Stützpunkte: Altstadt -------- Set Altstadt[1] = Allianz 0370 <gen> Set Altstadt[2] = Allianz 0411 <gen> Set Altstadt[3] = Allianz 0340 <gen> Set Altstadt[4] = Allianz 0341 <gen> -------- Stützpunkte: Zwergendistrikt -------- Set Zwergendistrikt[1] = Allianz 0264 <gen> Set Zwergendistrikt[2] = Allianz 0339 <gen> Set Zwergendistrikt[3] = Allianz 0338 <gen> Set Zwergendistrikt[4] = Allianz 0205 <gen> -------- Nahrung -------- Spieler - Set Spieler 3 (Blaugrau) Nahrungskapazität to 50 Spieler - Set Spieler 4 (Lila) Nahrungskapazität to 50 Spieler - Set Spieler 5 (Gelb) Nahrungskapazität to 50 Spieler - Set Spieler 6 (Orange) Nahrungskapazität to 50 Spieler - Set Spieler 7 (Grün) Nahrungskapazität to 50 Spieler - Set Spieler 8 (Rosa) Nahrungskapazität to 50 Spieler - Set Spieler 9 (Grau) Nahrungskapazität to 50 Spieler - Set Spieler 10 (Hellblau) Nahrungskapazität to 50 Spieler - Set Spieler 11 (Dunkelgrün) Nahrungskapazität to 50 Spieler - Set Spieler 12 (Braun) Nahrungskapazität to 50 -------- Commandervariablen -------- Set Hero[3] = Human Commander 0092 <gen> Set Hero[4] = Human Commander 0094 <gen> Set Hero[5] = Human Commander 0095 <gen> Set Hero[6] = Human Commander 0371 <gen> Set Hero[7] = Human Commander 0372 <gen> Set Hero[8] = Orc Commander 0373 <gen> Set Hero[9] = Orc Commander 0378 <gen> Set Hero[10] = Orc Commander 0379 <gen> Set Hero[11] = Orc Commander 0380 <gen> Set Hero[12] = Orc Commander 0381 <gen> If ((Spieler 3 (Blaugrau) slot status) Ungleich Spielt) then do (Einheit - Remove Hero[3] from the game) else do (Do nothing) If ((Spieler 4 (Lila) slot status) Ungleich Spielt) then do (Einheit - Remove Hero[4] from the game) else do (Do nothing) If ((Spieler 5 (Gelb) slot status) Ungleich Spielt) then do (Einheit - Remove Hero[5] from the game) else do (Do nothing) If ((Spieler 6 (Orange) slot status) Ungleich Spielt) then do (Einheit - Remove Hero[6] from the game) else do (Do nothing) If ((Spieler 7 (Grün) slot status) Ungleich Spielt) then do (Einheit - Remove Hero[7] from the game) else do (Do nothing) If ((Spieler 8 (Rosa) slot status) Ungleich Spielt) then do (Einheit - Remove Hero[8] from the game) else do (Do nothing) If ((Spieler 9 (Grau) slot status) Ungleich Spielt) then do (Einheit - Remove Hero[9] from the game) else do (Do nothing) If ((Spieler 10 (Hellblau) slot status) Ungleich Spielt) then do (Einheit - Remove Hero[10] from the game) else do (Do nothing) If ((Spieler 11 (Dunkelgrün) slot status) Ungleich Spielt) then do (Einheit - Remove Hero[11] from the game) else do (Do nothing) If ((Spieler 12 (Braun) slot status) Ungleich Spielt) then do (Einheit - Remove Hero[12] from the game) else do (Do nothing)
right - sorry =) here are the triggers ! hope you can help me soon)
edit: damn its german :S. well if you need a translater for something special - post and i'll help you !
first, the function happens to be called SmartCameraPanBJ... call it DumbCameraPanBJ please? lol
second, look at the code... leaks... and looks like we have some ugly code to top it! . gotta love blizz lol
function SmartCameraPanBJ takes player whichPlayer, location loc, real duration returns nothing
local real dist
if (GetLocalPlayer() == whichPlayer) then
// Use only local code (no net traffic) within this block to avoid desyncs.
set dist = DistanceBetweenPoints(loc, GetCameraTargetPositionLoc())
if (dist >= bj_SMARTPAN_TRESHOLD_SNAP) then
// If the user is too far away, snap the camera.
call PanCameraToTimed(GetLocationX(loc), GetLocationY(loc), 0)
elseif (dist >= bj_SMARTPAN_TRESHOLD_PAN) then
// If the user is moderately close, pan the camera.
call PanCameraToTimed(GetLocationX(loc), GetLocationY(loc), duration)
else
// User is close enough, so don't touch the camera.
endif
endif
endfunction