Foreign Trade Routes

Keep at it, Gedemon, this looks really good!
 
v.3 Jun 17, 2012):
- gameplay : Coastal route required harbor OR lighthouse.
- gameplay/optimization : Don't check for trade route if civs don't have open border.
- bugfix : allow reloading from ingame, check added to prevent global variable re-initialization.


Uploaded on steam workshop, need testing.
 
With Gods & Kings, the top bar where you hover over gold icon for breakdown of income/expenditures, with this mod running, does not show gold income from Religion.
 
This version seems to conflict with the latest vanilla version of CivUP/VEM. Particularly, it breaks the free gold per turn that CivUP/VEM gives.
 
I'll ask the same question as on steam: the CivUP/VEM free gold is not calculated at all or just not shown on top panel but still added to the total gold the next turn ?
 
I'll ask the same question as on steam: the CivUP/VEM free gold is not calculated at all or just not shown on top panel but still added to the total gold the next turn ?

After further investigation, I'm pretty sure there's an overall problem with VEM's GPT calculation. As far as I can tell visually, this mod only conflicts with the amount displayed when hovering over the gold amount on the top bar. It gets rid of the "X free gold" line.
 
New version uploaded on Steam Workshop & CFC database

V.5 (Aug 15, 2012)
- Add relation malus for opening border with a civilization enemy
- Fix gold from faith not being shown in top panel tooltip

edit : not compatible with previous save game.

I have not the same "v.4" in my backup folder as the one that was uploaded on Steam Workshop, if someone that still have it could zip it and post it here, it would be helpful, thanks.
 
Thanks, I will add the traduction to next release. I'll try to remove the hardcoded text too.
 
Excellent idea, but requres deep (with lots of roads and harbours) turn time perfomance test.
 
I suppose, it doesn't use SaveUtils IIRC.

If you're looking for idea for the community project, if we could call the DLL pathfinder from Lua may save time here :D
 
Mod is still unplayably slow on lagrge maps.
Compared turn times on this map http://forums.civfanatics.com/showthread.php?t=393637
Test preset: Montezuma, King, Quick, time turns 8 to 11.
Quite sad, very little amount of mods have unquestionable sense, and this one have for sure.

Gedemon, do you use virtual machine for testing? This can speed up mod develop a lot.
 
Mod is still unplayably slow on lagrge maps.
Compared turn times on this map http://forums.civfanatics.com/showthread.php?t=393637
Test preset: Montezuma, King, Quick, time turns 8 to 11.
Quite sad, very little amount of mods have unquestionable sense, and this one have for sure.

Gedemon, do you use virtual machine for testing? This can speed up mod develop a lot.

can you try the attached beta version please ? (WARNING: it's NOT COMPATIBLE with your current savegame)


edit: and I didn't fix the LuaJIT incompatibility, you'll have to edit saveutil file again, sorry
 

Attachments

can you try the attached beta version please ?
Gladly. No need in warnings ;).

Game spents more than 1min at the turn end during this:
ForeignTradeMain: - Searching trade route for <someone>


Probably writing normal algorythm in lua requres too much time. Than it will be better for you leave mod as "only for normal size maps".
Otherwise it's very probably requred simplification:
-only routes capital-capital; only ground or water way
-water ways are calucated once for all capitals, capital have ascess to ocean or it haven't (may be by river, as you already did :thumbsup:); Breakable only with blocade.
-for ground ways, may be possible to use ingame automatic road capital connection? I bevieve for city states game calculates automatically, and for civilizations - use pathfind between one or two closest cityes from civ A to capital B and one or two closest cityes from civ B to capital A. Most importantly - do pathfind manually and restrict initial length and direction.
 
Game spents more than 1min at the turn end during this:
ForeignTradeMain: - Searching trade route for <someone>

during first turns ? :confused:
 
Back
Top Bottom