Summary: Action enablers: Client may not be aware that an
action is allowed
                 Project: Freeciv
            Submitted by: sveinung
            Submitted on: Thu 05 Sep 2013 12:08:04 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: Any
         Planned Release: 2.6.0



The client know what the player know. The server knows everything. When an
action enabler is evaluated at the client it uses the players knowledge. This
may give a different result than at the server.

This can happen if the actor's owner don't have an embassy at the target and a
requirement about what tech the target has is there.

In patch #4140 the case were the client ask for an illegal action was handled
by sending it a message in stead of silently failing.

There are three possible situations. In the first the client is certain that
an action is legal. In the second it knows that it don't know. In the third it
is certain that an action is illegal.

In the first situation the action should always be shown. In the second
situation the options are to hide the actions to avoid confusing people, show
them but indicate that they may not work or show them as usual. Some players
(that don't trust us) may insist actions should be shown in the third
situation as well.

Ideally there would be a client setting that let the user choose how to handle
it. What the default should be, or even if all clients should have the same
default, is something I'm not sure of.

Work around for rule set authors: Require that the actor has an embassy at the
target if you wish to add (non negated) tech requirements at the target. 


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to