OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: AlejandroDaJ on 11 May 2004, 01:54:34

Title: Baffled by server/client problems
Post by: AlejandroDaJ on 11 May 2004, 01:54:34
I made an East versus West race mission, but I'm haunted by server vs. client problems that I thought I'd taken precautions against. They include:

All these instances and the variables used by them are handled by Triggers, which I thought coordinated the same results on the server AND all clients. Yet, these problems keep occurring.

The mission is a "fox and hound" one, where the West runs a ground race while the East pursues by helicopter. The West is responsible for capturing various towns along the route, so Western players are the only ones who trigger these events. Could that have something to do with it?

I'd appreciate any solution to this dilemma.
Title: Re:Baffled by server/client problems
Post by: Terox on 14 May 2004, 18:24:38
you need to post each problem in an individual thread and also copy into the thread the scripts you are using so we can see what the problem is.

What you are basically asking at the moment isn't possible without more info
Title: Re:Baffled by server/client problems
Post by: Chris Death on 14 May 2004, 19:20:33
Nah Terox, i believe his only problem is that:

triggers activated by the presence of certain units (or side)
do only work for those clients, who are inside the trigger's area.

All problems comming from the same reason - therefore i think
no reason for posting each problem seperately.

:edit

after posting this reply i had no time left to come back to the thread
until now, but now:

another reason for those things not working beside units not being
in the trigger's area is also: trigger activated by side in some cases
like in this one will not produce the expected effects for those
clients who do not match with the trigger's activation specifications
e.g: west/present do not affect players from east - anywayz the
solution for both cases is the same as i posted already below.

@AlejandroDaJ

To avoid such problems you may use publicVariables when those
triggers become activated and upon these publicVariables you
start your events.

e.g:

onActivation: they_are_there = true; publicVariable "they_are_there"

And have everything else (like setmarkerpos or messages, etc.)
waiting for the variables instead of waiting for the trigger's
activation.

~S~ CD