The tooltip hack is only needed for the railroad bonus; pPlayer:IsCapitalConnectedToCity(pCity) can be used to check for a simple trade route to the capital (see an example in the code in the first post.)
As for city-to-city connections, if both have harbors you can probably use a check like...
There are global defines that appear to be related to this (CITY_PLOTS_RADIUS, CITY_PLOTS_DIAMETER, NUM_CITY_PLOTS), but they are apparently defined by the DLL rather than through XML, so this is probably not moddable until the DLL source is released.
Nope, your understanding is correct. XML feeds into the database so it is easy to make small changes that are usually (but not always) compatible with other mods. But the Lua is directly interpreted and the smallest replaceable chunk is an entire file.
Your delete statements are fine. I tried my own test with your mod active and looked at the database after the game started; every difficulty other than Settler had only GOODY_TECH entries listed, just as expected. (Settler also had GOODY_SETTLER and GOODY_WORKER available.)
Anyhow I plopped...
If you modify the base files, then yes, you will need to reapply the changes after a patch (or any other time Steam decides to update them). If you still want to do that, those text keys all start with TXT_KEY_PROGRESS_SCREEN_ and they are defined in CIV5GameTextInfos_Jon.xml.
If you'd rather...
My response would be similar to Sam's. I see it as something pretty useful, but not something I definitely "need" currently. In part that's because until there's DLL access, I'm focusing on UI and "informational" modding that doesn't need to do much data saving. But another part of it, is it's...
I hope you mean Civ5. ;) Anyhow, this tool doesn't do single files. You have to give it a directory and it'll unpack everything it finds in that directory. So assuming you're already run the Nexus extract script, you just need to set the input directory to <Install Directory>\resource\DX9 and...
I know, I've done it. But when answering a question posted by someone whose familiarity with Lua, the Tuner, and the database are all unknown to me, I'm gonna stick with my stock answer that "it's not easy." :p
Look inside the mod's folder to see if that file is actually missing. It's possible the file is there, but the VFS flag is not properly set, which is something you can fix.
[7923.031] ERR: Missing argument 1. (Has encontrado artefactos culturales que asombran a tus ciudadanos. ¡Has recibido {1_Num} de Cultura [ICON_CULTURE]!)
[7923.078] ERR: Missing argument 1. (En las ruinas encuentras los tesoros de un antiguo imperio. Has recibido {1_Num} de Oro [ICON_GOLD].)...
:confused: They already can.
I don't think this is feasible in the current game, but it's not something I've looked into personally.
There is an "OutsideBorders" field in the Improvement table which you should be able to set.
You'd need to change several GlobalDefines for this. See the...
That's the Spanish version of TXT_KEY_TP_UNHAPPINESS_TOTAL in Civ5GameTextInfos_Worldview.xml and it does indeed look like a Firaxis typo since the English version uses {1_NUM}.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.