DLL - Various Mod Components

Sorry, but has there been some kind of tweak to city working distance in the dll?

I'm running a game with (among others) the dll v41 on right now and suddenly find that my cities can Work tiles up to at least 4 tiles away. I haven't installed any modcomp that should alter this and haven't turned anything regarding city working distance on in the options file.

\Skodkim
 
Pure DLL or DLL + CSD?

What are the values in CustomMods.log for GLOBAL_CITY_WORKING et al (TECHs, TRAITS, BUILDINGS and POLICIES)
 
Pure DLL or DLL + CSD?

What are the values in CustomMods.log for GLOBAL_CITY_WORKING et al (TECHs, TRAITS, BUILDINGS and POLICIES)

DLL (41)+CSD(15.6)

CustomMods.log:
Cache: GLOBAL_CITY_WORKING = 0
Cache: TRAITS_CITY_WORKING = 0
Cache: POLICIES_CITY_WORKING = 0
Cache: TECHS_CITY_WORKING = 0

\Skodkim
 
DLL (41)+CSD(15.6)

Wrong thread then ;)

CSD 15.6 added a DLL/DiplomacyCityStates.xml file that is causing issues as it creates the DLL's CustomModOptions database table, so depending on load order, the DLL will seriously sulk.

Solution is to delete that file from CSD 15.6

W
 
I already did at the beginning of the game as database.log showed errors and I figured it was best to delete the file from CSD mod, not the DLL mod.

Sorry - should we continue in the other thread?

\Skodkim
 
Sorry - should we continue in the other thread?

Nah, we're here now ;)

I'm not seeing this in my own current V41 only game, city with Hanging Gardens can work 4 rings the other cities only 3. So could be a DLL + CSD interaction :(
 
Nah, we're here now ;)

I'm not seeing this in my own current V41 only game, city with Hanging Gardens can work 4 rings the other cities only 3. So could be a DLL + CSD interaction :(

Just started the game Again and gave myself tiles using Ingame Editor. All cities can Workk four tiles away. My Capital has Hanging Gardens (does that affect city working distance?)

\Skodkim
 
My Capital has Hanging Gardens (does that affect city working distance?)

Only for the city it's in, and only if using my version of it (ie the City Working Distance) mod?

Are you India by any chance?
 
What do you get from the FireTuner Lua console (select the WorldView context) for

Code:
Teams[Players[0]:GetTeam()]:GetCityWorkingChange()
Players[0]:GetCityWorkingChange()
Players[0]:GetCapitalCity():GetCityWorkingChange()
Players[0]:GetNextCity(Players[0]:GetCapitalCity()):GetCityWorkingChange()

I get 0, 0, 1, 0 - as I have the Hanging Gardens in my capital
 
What do you get from the FireTuner Lua console (select the WorldView context) for

Code:
Teams[Players[0]:GetTeam()]:GetCityWorkingChange()
Players[0]:GetCityWorkingChange()
Players[0]:GetCapitalCity():GetCityWorkingChange()
Players[0]:GetNextCity(Players[0]:GetCapitalCity()):GetCityWorkingChange()

I get 0, 0, 1, 0 - as I have the Hanging Gardens in my capital

I get 0, 0, 0, 0. Hanging Gardens may not have this particular effect in my game as CEP mods a lot of Wonders.

Just started a new game using the same mods and I get the same.

Haven't tested with only pure dll, only combined dll+csd (no other mods) etc.

\Skodkim
 
If your capital can work four rings and the first three are 0, it's got to be an interaction as the DLL is not directly adding any working distance
 
If your capital can work four rings and the first three are 0, it's got to be an interaction as the DLL is not directly adding any working distance

Hi W

Just found out that this happens when I activate CEP with dll+csd. So far I have no idea why, but I'll try to find out. Do you have any idea what to look for, i.e. which key Words to search CEP for?

Edit: Could it be either of the following two variables that CEP alters: MAXIMUM_BUY_PLOT_DISTANCE (which is set to 4) or MAXIMUM_ACQUIRE_PLOT_DISTANCE (which is set to 6)
\Skodkim
 
Just found out that this happens when I activate CEP with dll+csd. So far I have no idea why,

At a guess, it's because both CSD and CEP have modified versions of CityView.lua
 
At a guess, it's because both CSD and CEP have modified versions of CityView.lua

I'll see if other users can confirm this behaviour. CEP has included CSD's alterations to the cityview file in a manner so it should work without any problems, e.g. having to delete the CSD file, but you never know.

\Skodkim
 
CEP has included CSD's alterations to the cityview file in a manner so it should work without any problems, e.g. having to delete the CSD file, but you never know.

Unless CSD also includes the CEP changes you're reliant on the mods loading in the correct order.

Put a print("CEP CityView.lua") and a print("CSD CityView.lua") at the first line of the respective files and see what comes out in Lua.log
 
Good idea.

CEP has a reference to CSD now (I know you said this might not work with lua files) and it seems to be CEPs city view we're seeing but that's a good test. Suppose it could be some kind of merge error though.

\Skodkim
 
Hi Whoward

As Stackpointer mentions here you make a comment in your "Global - City Working Distance" mod that MAXIMUM_BUY_PLOT_DISTANCE affects the maximum distance cities can work tiles. As mentioned earlier CEP changes this value to 4.

Will test later, but IMHO it sounds as though this may be the culprit. From the name of the variable it sounds however, as though it should just affect the distance from the city where you can purchase tiles. Does your dll modify this?

\Skodkim
 
Working and buy plot distance are completely intertwined within the DLL and UI (if you look in CityView.lua there is only one plot loop that is used to display both worked plots and buyable plots) - changing one and not the other is almost certainly going to lead to problems.
 
Back
Top Bottom