[Freeciv-Dev] [bug #15301] Rework trade route messages

2010-02-09 Thread Jacob Nevins

Update of bug #15301 (project freeciv):

  Status: In Progress = Fixed  
 Open/Closed:Open = Closed 


___

Reply to this item at:

  http://gna.org/bugs/?15301

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #15301] Rework trade route messages

2010-02-07 Thread Jacob Nevins

URL:
  http://gna.org/bugs/?15301

 Summary: Rework trade route messages
 Project: Freeciv
Submitted by: jtn
Submitted on: Sunday 07/02/10 at 17:52
Category: None
Severity: 2 - Minor
Priority: 5 - Normal
  Status: None
 Assigned to: jtn
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: None
 Planned Release: 

___

Details:

If you establish a new trade route between two of your cities that causes
another less profitable trade route, also between two of your own cities, to
be cancelled, you get a message like Sorry, Evo Morales has canceled the
trade route from Cochabamba to your city La Paz (where Evo Morales is
yourself!), which isn't ideal.

I've written a patch for this, which has ended up reworking a bit more than
that:
* Each player that is party to a trade route now gets a message separate from
the Your Caravan from Springfield has arrived ... one.
** This was the easiest way to make it clear why cancelations have occurred
(I did look at making it explicit but there were too many combinations).
** However, it's always seemed strange to me that another player can
establish a trade route with one of your cities without you being notified,
so this fixes that.
** ...and it distinguishes between a real trade route creation and an enter
marketplace action.
* Messages about the actions of foreign nations have changed from the leader
name (Evo Morales has canceled ...) to the collective noun (The Bolivians
have canceled ...) -- since an action by another player can cause two of
your own cities to cancel a domestic trade route, it seems fairly clear that
it's not a centrally controlled process :)

The patch should not change any of the actual gameplay, but I ended up moving
some of the code around so it could stand some review.

Tested against S2_2. Patch also applies cleanly against trunk. Working on a
patch against S2_1, which is slightly different.



___

File Attachments:


---
Date: Sunday 07/02/10 at 17:52  Name: S2_2-trade-route-messages.diff  Size:
7kB   By: jtn
S2_2 r16727: rework trade route notification messages
http://gna.org/bugs/download.php?file_id=7986

___

Reply to this item at:

  http://gna.org/bugs/?15301

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #15301] Rework trade route messages

2010-02-07 Thread Jacob Nevins

Update of bug #15301 (project freeciv):

  Status:None = Ready For Test 

___

Follow-up Comment #1:

Actually I've just realised that this probably shouldn't be backported to
S2_1 as it hits translatable messages. I've done it now, so here's the patch,
but I haven't tested it beyond compiling and I sha'n't commit it to S2_1, only
S2_2 and trunk.

(file #7987)
___

Additional Item Attachment:

File name: S2_1-trade-route-messages.diff Size:6 KB


___

Reply to this item at:

  http://gna.org/bugs/?15301

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #15301] Rework trade route messages

2010-02-07 Thread Jacob Nevins

Update of bug #15301 (project freeciv):

 Planned Release: = 2.2.0  


___

Reply to this item at:

  http://gna.org/bugs/?15301

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #15301] Rework trade route messages

2010-02-07 Thread pepeto

Follow-up Comment #2, bug #15301 (project freeciv):

 Actually I've just realised that this probably shouldn't be
 backported to S2_1 as it hits translatable messages.

Right, it's not a good idea to commit it in S2_1.


___

Reply to this item at:

  http://gna.org/bugs/?15301

___
  Message posté via/par Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev