URL:
<http://gna.org/patch/?6066>
Summary: List available trade routes to a file and show best
trade route for currently selected unit(s)
Project: Freeciv
Submitted by: None
Submitted on: Sun 03 May 2015 03:13:30 PM UTC
Category: client-gtk-2.0
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email: [email protected]
Open/Closed: Open
Discussion Lock: Any
Planned Release:
_______________________________________________________
Details:
Uses "Center map on antipode" patch #6039
When pressing '!' will list all trade routes that are possible to create into
tradelist.csv file in directory client was started in cvs format.
In addition if unit(s) is selected, prints information about best trade route
from unit(s) home city into chat and center map on destination city or if no
route available, then center map on antipode. If no unit is selected, then
center map on antipode.
trade_routes.py script displays some statistics and best routes for each city,
uses tradelist.csv file. It will optionally also try to find best trade route
combination, but this part works in sensible time only if there are not too
many routes.
Alternatively tradelist.csv can be loaded in a spreadsheet or database
program.
This patch needs further work, for example tradelist.csv should be a setting.
Also locally defined MAP_WIDTH and MAP_HEIGHT macros from 2.2 should probably
be replaced with something else.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 03 May 2015 03:13:30 PM UTC Name: list_trade_routes.patch Size:
7kB By: None
<http://gna.org/patch/download.php?file_id=24431>
-------------------------------------------------------
Date: Sun 03 May 2015 03:13:30 PM UTC Name: trade_routes.py Size: 4kB By:
None
<http://gna.org/patch/download.php?file_id=24432>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?6066>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev