Bonyduck Campersang
Warlord
- Joined
- Dec 11, 2022
- Messages
- 288
If you go to the comments section of the Steam Workshop page for several civilization mods, you will find a lot of complaints about the civilisation's unique unit/building being available to build/purchase for anyone. Unfortunately, a lot of modders seem not to read the comments section, and so these issues remain unresolved.
An example is Urdnot's Yemen mod. The Mud Brick Skyscraper can be built by anyone. However, someone in the comments section suggested the following solution:
The bugs that Mud-brick skyscraper can be built by any civilisation can be solved by fixing YemenDefines.sql as follows:
1. 'BUILDINGCLASS_URD_YEMEN' -> 'BUILDINGCLASS_URD_MBS',
(There are 4 'BUILDINGCLASS_URD_YEMEN's in YemenDefines.sql)
2. 'BUILDING_URD_YEMEN' -> 'BUILDING_URD_ARWA_MBS',
3. replace
INSERT INTO Building_ClassesNeededInCity
(BuildingType, BuildingClassType)
VALUES ('BUILDING_URD_ARWA_MBS_2', 'BUILDINGCLASS_GRANARY'),
with
INSERT INTO Building_ClassesNeededInCity
(BuildingType, BuildingClassType)
VALUES ('BUILDING_URD_ARWA_MBS_2', 'BUILDINGCLASS_URD_MBS' ),
I know next to nothing about modding so I have no idea how to replicate this solution for other mods, eg. JFD's Great Seljuqs, Grant's Chagatai etc. Could someone help me with this?
An example is Urdnot's Yemen mod. The Mud Brick Skyscraper can be built by anyone. However, someone in the comments section suggested the following solution:
The bugs that Mud-brick skyscraper can be built by any civilisation can be solved by fixing YemenDefines.sql as follows:
1. 'BUILDINGCLASS_URD_YEMEN' -> 'BUILDINGCLASS_URD_MBS',
(There are 4 'BUILDINGCLASS_URD_YEMEN's in YemenDefines.sql)
2. 'BUILDING_URD_YEMEN' -> 'BUILDING_URD_ARWA_MBS',
3. replace
INSERT INTO Building_ClassesNeededInCity
(BuildingType, BuildingClassType)
VALUES ('BUILDING_URD_ARWA_MBS_2', 'BUILDINGCLASS_GRANARY'),
with
INSERT INTO Building_ClassesNeededInCity
(BuildingType, BuildingClassType)
VALUES ('BUILDING_URD_ARWA_MBS_2', 'BUILDINGCLASS_URD_MBS' ),
I know next to nothing about modding so I have no idea how to replicate this solution for other mods, eg. JFD's Great Seljuqs, Grant's Chagatai etc. Could someone help me with this?