• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Map initialisation problem - trigger prob?

Status
Not open for further replies.
Level 2
Joined
Oct 9, 2006
Messages
15
Hi there!

I´m working on a map thats like dota or tides of blood.

we´ve added tons of triggers that get initialized at the map initialization or after a few seconds..

the prob is... i´m not sure if its an issue with all the triggers..
but whenever we start the game with 6vs6 it somehow splits the game into 2 groups.. so its a 4on3 game and there is another game with 2on3 or so..

is it a well known problem? do i have to start the triggers on after another? are there too many actions in the triggers?
or do i have to preload stuff? should i pause the game for a few seconds to get the clients syncronize each other?

please help.. maybe u had those problem too in your early beginning of programming
 
quite interresting problem, im not sure if its the triggers, but if it is then maybe you should try run the triggers one by one as you mentioned, or disabling some functions. you could also try disabling all the initialization triggers, and see if the map still splits. then we atleast know if its the triggers that are causing the problem.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Splits are a nickname given to OUS (out of sync) which occures when players fail to keep their games the same and it ends up what happens on group 1's computers does not happen on group 2's computers and so the game drops them.

Common causes are too many triggers firing with too many funtions at once.
The reason it splits is that everyone's computers are at different speeds so if the host is ultra fast it will finish loading before the others do causing it to go out of sync.

The best way to avoid splits is to wait untill every one has loaded the map (after initial lag) then run the triggers in one big and laggy function or over a time since the game is most lightly to split appon loading than a few seconds into game.
 
Level 3
Joined
May 28, 2005
Messages
47
yeah. Just change everything OR mostly all to:

Code:
Elapsed Game Time (blah).
More than 1-2 seconds recommended...

Also try running triggers from others with the:

Code:
Run (trigger name) checking conditions

Map Initialization is NOT a usually recommended event to use.
 
Level 2
Joined
Oct 9, 2006
Messages
15
so...
all triggers are set to get activated after 10 secs..
the only map ini trigger is one camera command and a text...
thats all.
so still dunno why there is a server split.
are there any known bugs or so? something i have to check?
i mean.. yes.. we have tons of triggers.. well.. actions that are triggered..
but they just act after 10 seconds.. the serversplit is immediately when the game starts.. or during the loading process..dunno..

so...heeeelp :)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
the only map ini trigger is one camera command and a text...

YOU JUST ANSWERED YOUR OWN QUESTION!

Some of the GUI camera commands are meant for SP ONLY and cause a desynce if used in multiplayer.
Also running camera commands on map int is bad since the game has just loaded.
Try changing the actions for the cameras and setting to work after 0.01 secs of ingame time, that should fix it.
 
Level 2
Joined
Oct 9, 2006
Messages
15
hmm.. nope.. changed that.. removed the cam..
first trigger that just removes user control and a text after 1 sec..
all the other main stuff with tons of triggers after 10 secs...

so still the same prob.. still server split.
dunno why. jass stuff shouldnt be a prob since nothing is triggered as long as the heroes comes into play.

so what else could it be?
 
Level 8
Joined
Feb 4, 2007
Messages
389
Does it happen as soon as the game starts, as in you aren't able to do ANYTHING? Or does it happen when you do something early on in the game?

I had a problem with a farm I used to select the difficulty in my maze, when you selected it in Multiplayer it caused a Server Split. It may be something like that.

The only sure solution right now is trial and error. Test your map until you can diagnose what exactly is causing it.
 
Level 4
Joined
Feb 3, 2007
Messages
58
SERVER SPLITS... YAY! So how would on cause a server split on purpose? One way to avoid them is to pause the game for a minute or so using triggers to give the triggers time to load and have a notification that says "Triggers are loading, please hold."
 
Level 2
Joined
Oct 9, 2006
Messages
15
well i set all the triggers to start after 10 seconds..
until then the only running trigger now tells the game to remove the user control and show a text.

thats all.

the split occurs as soon as the game starts. so its not a matter of time or triggers that start after a while.. same with the jass scripts.
i had to add jass scripts into the map loading..whatever..
dunno to be honest. the ones of you that use jass know that you have to add some text to the map name itself in the trigger editor.

but that shouldnt cause a problem since its just setting variables or so.
no jass scripts or triggers get initiated with the map initialization.

so what else can it be?

we also have trouble with a bug like tides of blood has. whenever we´ve played our map we have to restart wc3 - else there are purple boxes or we just get splitted from the game.

but since that happens with tides of blood too we think that its just a matter of variables and stuff that has to get unloaded when the map ends.

so any ideas guys? :-|
 
Status
Not open for further replies.
Top