jarcast2
Janitor Raccoon
I just discovered that the logic behind the River city connection bit for Songhai is partially flawed as per this post by @azum4roll, whereby cities can be connected while not being on the same river system, while cities on the same riverine network may end up not connected.
I propose a definite bug fix that consists in 3 elements:
1) this handy lua algorithm by @whoward69 that'll go somewhere in the VP files with "Import into VFS=true".
2) those few sql lines to be put somewhere in a new sql file or in an existing one:
3) The lua file attached below that will be loaded as InGameUIAddin as a normal lua file and that ties to any trait with RiverCityConnections=1 the ability to have real city connections from being in the same river system.
I can quickly create a modmod but I would like to see the fix integrated in the next VP release honestly.
Also I would like to make a request the current river city connection logic to be decoupled from Traits columns RiverTradeRoad, that has a totally different function.
Does this last request need a proposal? It seems more a technical "metacoding" issue rather than a balance one.
I propose a definite bug fix that consists in 3 elements:
1) this handy lua algorithm by @whoward69 that'll go somewhere in the VP files with "Import into VFS=true".
River Connections
Lua classes, methods and functions to determine if two plots are connected by a river - see here for the general discussion A River is one or more contiguous RiverSegments. A river has a "known" headwaters and outflow (which may not be the actual headwaters/outflow if tiles have not been...
forums.civfanatics.com
2) those few sql lines to be put somewhere in a new sql file or in an existing one:
Code:
UPDATE CustomModOptions SET Value = 1 WHERE Name = 'EVENTS_TERRAFORMING';
UPDATE CustomModOptions SET Value = 1 WHERE Name = 'EVENTS_CITY_CONNECTIONS';
ALTER TABLE Traits ADD COLUMN 'RiverCityConnections' BOOLEAN DEFAULT 0;
UPDATE Traits SET RiverCityConnection=1 WHERE Type = 'TRAIT_AMPHIB_WARLORD';
3) The lua file attached below that will be loaded as InGameUIAddin as a normal lua file and that ties to any trait with RiverCityConnections=1 the ability to have real city connections from being in the same river system.
I can quickly create a modmod but I would like to see the fix integrated in the next VP release honestly.
Also I would like to make a request the current river city connection logic to be decoupled from Traits columns RiverTradeRoad, that has a totally different function.
Does this last request need a proposal? It seems more a technical "metacoding" issue rather than a balance one.
Attachments
Last edited: