Menu

#3109 Unable to trade with "Unknown" city

Fixed_0.12.0
closed-fixed
nobody
None
3
2022-05-01
2017-10-30
No

Steps to reproduce:
. create a ship with 50 muskets on it (and no units)
. move the ship to a native settlement you haven't traded before
. try to move the ship to the settlement. Nothing will change visually
. tro to move the ship to the settlement again. Now you'll have an error:

net.sf.freecol.server.model.ServerPlayer clientError
    WARNING: Session already open for: [nativeTrade unit:6275 indianSettlement:5837 buy=true sell=true gift=true count=0 item=null unitToSettlement[] settlementToUnit[ ]]

Note the "session already open" thing. I guess this means that the server actually thought we started trading at our first attempt.

Discussion

  • vasya novikov

    vasya novikov - 2017-10-30

    Attached savegame. Load it, select ship, move to the left twice (into native settlement).

     
  • Mike Pope

    Mike Pope - 2017-11-12

    There was a mishandling of the restriction that you can not trade with a ship to an uncontacted native settlement. Should be fixed in git.210a8e9, in that now nothing will happen.

     
    • vasya novikov

      vasya novikov - 2017-11-12

      Confirming, it's fixed. Thank you!

       

      Last edit: vasya novikov 2017-11-12
  • Mike Pope

    Mike Pope - 2017-11-12
    • status: open --> closed-fixed
    • Group: Current --> Fixed_trunk
     
  • Mike Pope

    Mike Pope - 2017-11-12

    Thanks, closing.

     
  • Mike Pope

    Mike Pope - 2022-05-01
    • Group: Fixed_trunk --> Fixed_0.12.0
     

Log in to post a comment.