URL:
  <http://gna.org/bugs/?23323>

                 Summary: OOS caused by mismatch in undo stack
                 Project: Battle for Wesnoth
            Submitted by: None
            Submitted on: Do 26 Feb 2015 17:45:16 UTC
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.13-dev
        Operating System: all

    _______________________________________________________

Details:

Start the scenario below in a networked mp game, turns Delayed shroud updated
on on side 1 an move the Elvish Scout one hex so that we would now see the
enemy archer if DSU wasn't active. Then end the turn, side 2 will claim OOS.

This is casues by a missmatch in undo stack calculation during the moveto
event:
Side 1 thinks the movement is undoable since there was nothing send over the
network during that movment (the user choice is a local one).
Side 2 thinks different: It reads the user choice during the side event from
the network and assumes the move is not undoable, thus it flushes the undo
stacks applies the shroud upates and fires the sighted event(which did not
fire on side 1) -> OOS.



[scenario]
        id= "OOS_TEST"
        name= _ "MP Sync Test"
        description= _ "This secnario is for testing mp sync errors"
        map_data= "border_size=1
usage=map

Rr^Vhc, Rr^Vhc, Rr^Vhc, Gg, Gg, Gg, Gg, Gg, Gg, Gg, Rr^Vhc, Rr^Vhc, Rr^Vhc,
Gg
Rr^Vhc, Rr^Vhc, Rr^Vhc, Gg, Gg, Gg, Gg, Gg, Gg, Gg, Rr^Vhc, Rr^Vhc, Rr^Vhc,
Gg
Rr^Vhc, Rr^Vhc, Rr^Vhc, Gg, Gg, Gg, Gg, Gg, Gg, Gg, Rr^Vhc, Rr^Vhc, Rr^Vhc,
Gg
Rr^Vhc, Rr^Vhc, Rr^Vhc, Gg, Ch, Ch, Gg, Ch, Ch, Gg, Rr^Vhc, Rr^Vhc, Rr^Vhc,
Gg
Rr^Vhc, Rr^Vhc, Rr^Vhc, 1 Kh, Ch, Gg, Gg, Gg, Ch, 2 Kh, Rr^Vhc, Rr^Vhc,
Rr^Vhc, Gg
Rr^Vhc, Rr^Vhc, Rr^Vhc, Gg, Gg, Ch, Gg, Ch, Gg, Gg, Rr^Vhc, Rr^Vhc, Rr^Vhc,
Gg
Rr^Vhc, Rr^Vhc, Rr^Vhc, Gg, Gg, Gg, Gg, Gg, Gg, Gg, Rr^Vhc, Rr^Vhc, Rr^Vhc,
Gg
Rr^Vhc, Rr^Vhc, Rr^Vhc, Gg, Gg, Gg, Gg, Gg, Gg, Gg, Rr^Vhc, Rr^Vhc, Rr^Vhc,
Gg
Rr^Vhc, Rr^Vhc, Rr^Vhc, Gg, Gg, Gg, Gg, Gg, Gg, Gg, Rr^Vhc, Rr^Vhc, Rr^Vhc,
Gg"
        
        experience_modifier=20%
        turns=-1
        {DEFAULT_SCHEDULE}
        next_scenario = "01_FIRST_TEST"
        [side]
                side= 1
                id= "leader1"
                controller= "human"
                team_name= "Good"
                village_gold= 5
                income= 20
                share_maps= yes
                share_view= yes
        shroud= yes
                fog = yes
                gold= 5000
                recruit=Elvish Archer,Elvish Fighter,Elvish Scout,Elvish Shaman
                [unit]
                        type = "Elvish Scout"
                        random_traits = no
                        x = 12
                        y = 4
                        canrecruit = yes
                [/unit]
        [/side] 
        
        [side]
                side= 2
                id= "leader2"
                controller= "human"
                team_name= "Evil"
                village_gold= 5
                income= 20
                share_maps= yes
                share_view= yes
        shroud= yes
                fog= yes
                gold= 5000
                recruit= "Elvish Archer,Elvish Fighter,Elvish Scout,Elvish 
Shaman"
                no_leader= yes
                [unit]
                        type = "Elvish Archer"
                        random_traits = no
                        x = 12
                        y = 4
                        canrecruit = yes
                [/unit]
        [/side]

[event]
        name = "moveto"
        first_time_only = no
        [allow_undo]
        [/allow_undo]
        [message]
                speaker = narrator
                message = "tired from walking?"
                [option]
                        message = "yes"
                        [command]
                        [/command]
                [/option]
                [option]
                        message = "no"
                        [command]
                        [/command]
                [/option]
        [/message]
[/event]
[event]
        name = "sighted"
        first_time_only = no
        [message]
                speaker = narrator
                message = "Yes or no"
                [option]
                        message = "yes"
                        [command]
                        [/command]
                [/option]
                [option]
                        message = "no"
                        [command]
                        [/command]
                [/option]
        [/message]
[/event]


[/scenario]





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?23323>

_______________________________________________
  Nachricht gesendet von/durch Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to