clapyourhands
Prince
- Joined
- Jul 16, 2017
- Messages
- 412
Hey guys! I'm brand new to Civ5 modding, but I've been persevering. I've gotten almost everything up and running thanks to lots and lots of Google searches and searches on this forum. I'm making a new Civ and it is mostly functional (the UU and most of the UA work), but the UB is a bit wonky. It's a Granary replacement that should increase the Food yield of Marsh tiles, somewhat like the Polder but as a building (it does other stuff, but those portions are working). Here's the relevant xml:
The logs are totally normal; I enabled them early and they were super helpful for the rest of the bugs, but this one doesn't seem to be showing up. And the name, art, civilopedia, and primary food (the +2 from granary that I left in for Building_YieldChanges) all work as intended when I build one in-game. The code was based on Petra's, which does something similar for Desert Tiles. I was thinking it might have something to do with "fake terrains" from some Googling, but Marsh isn't a terrain and I haven't seen anyone have a problem with it. Can anyone help me out?
As another, smaller, thing, I was wondering if there was a way to specifically increase the GP rate of Merchants and not the others. Right now I'm sort of getting around it by increasing GP overall and then decreasing the ones that they have xml for, but am I correct in assuming I'd need to look into lua for a cleaner way?
(This is my first time trying to mod so I've just been trying to get the hang of XML, but if the solution for either ends up being a lua thing I'm definitely down to give it a shot if someone can start me off in the right direction!).
Code:
<Building_FeatureYieldChanges>
<Row>
<BuildingType>BUILDING_KI</BuildingType>
<FeatureType>FEATURE_MARSH</FeatureType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>3</Yield>
</Row>
<Row>
<BuildingType>BUILDING_KI</BuildingType>
<FeatureType>FEATURE_MARSH</FeatureType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>3</Yield>
</Row>
</Building_FeatureYieldChanges>
The logs are totally normal; I enabled them early and they were super helpful for the rest of the bugs, but this one doesn't seem to be showing up. And the name, art, civilopedia, and primary food (the +2 from granary that I left in for Building_YieldChanges) all work as intended when I build one in-game. The code was based on Petra's, which does something similar for Desert Tiles. I was thinking it might have something to do with "fake terrains" from some Googling, but Marsh isn't a terrain and I haven't seen anyone have a problem with it. Can anyone help me out?
As another, smaller, thing, I was wondering if there was a way to specifically increase the GP rate of Merchants and not the others. Right now I'm sort of getting around it by increasing GP overall and then decreasing the ones that they have xml for, but am I correct in assuming I'd need to look into lua for a cleaner way?
(This is my first time trying to mod so I've just been trying to get the hang of XML, but if the solution for either ends up being a lua thing I'm definitely down to give it a shot if someone can start me off in the right direction!).