Thunderbrd
C2C War Dog
I guess the 'fix' would be to have bRequiresPeak supercede the ability for bBonusMakesValid to make it possible to build when not on a peak tile.
So is this making it so that Mountain Mines can be built on non-peak plots? Please confirm because I'm pretty sure that's what this will do.
That's because it was not supposed to be able to upgrade - the idea of the mtn mine was to make it so that we had one mine that would naturally improve with techs that would graphically work well with peaks since they were so unusual for graphics.The Upgrade path for Mountain Mines to Core Mines is missing.
Maybe, but perhaps we should rather think about changing how the code for the bonusinvicinity requirement for buildings work instead. Why would it only look for improvement that has bBonusMakesValid=1 for the relevant bonus. Can't it just look for improvements that provide the bonus. The mountain mine provide the bonus without using bBonusMakesValid=1 atm.I guess the 'fix' would be to have bRequiresPeak supercede the ability for bBonusMakesValid to make it possible to build when not on a peak tile.
Mountain mine should be the only mine available on peaks, hence no mines should upgrade to mountain mine. If stone tool workshop can be built on peaks then perhaps they should be able to upgrade to mountain mine.I did find somethings though that probably should be. The Upgrade path for Mountain Mines to Core Mines is missing. And there is no regular mine (like Shaft or Modern) that will upgrade to a Mountain Mine with the bPeakValid tag.
And that is the Start of the Mountain MIne upgrade path, what there is of it.If stone tool workshop can be built on peaks then perhaps they should be able to upgrade to mountain mine.
No CTD, and I don't remember how the shaft mine looks on peaks.Does a Shaft Mine placed on a peak cause a Graphical CTD? If it just "Looks Funny" but doesn't cause a CTD then so what who really cares?
JosEPh
I don't think it is possible currently for regular mines to be built on peaks despite the bBonusMakesValid boolean usage.Regular mines now only use the bBonusMakesValid=1 so that the correct bonus allows them to be built on flatland, regular mines shouldn't be possible to build on a peak even with the correct bonus.
That's actually right... that's the best way to go about it. The one thing I never looked into when helping out the modder that wanted the mountain mines setup the way they are is vicinity bonus coding. I'm not sure where it is but I can find it. Just not anytime too soon.Maybe, but perhaps we should rather think about changing how the code for the bonusinvicinity requirement for buildings work instead. Why would it only look for improvement that has bBonusMakesValid=1 for the relevant bonus. Can't it just look for improvements that provide the bonus. The mountain mine provide the bonus without using bBonusMakesValid=1 atm.
They can and they do.If stone tool workshop can be built on peaks then perhaps they should be able to upgrade to mountain mine.
The mountain mine is assumed to be whatever type of mine or quarry is best for that resource and/or peak plot. There's no bottleneck, just an issue with peaks and their bonuses being considered in vicinity or not. It's vague and the problem is in the vicinity code.And that is the Start of the Mountain MIne upgrade path, what there is of it.
And as for Mountain mine being the Only mine available on Peaks, that is a bad idea. Shaft mines have been built on peaks since the pre classical days of history. But for the game someone had other ideas and now we have bottleneck problem that causes other items that Need the resource that can appear on a peak but if the upgrade path is broken then they can't get built, example Oleh's problem.
So something has to give. I say the Stone workshops allowed on peaks (built by llama and another worker unit) should Upgrade to shaft mines which in turn would upgrade to Mountain mines with the proper prereq tech and the proper bPeakValid or some such tag.
We would then avoid this 2 page long bug hunt problem because a player can get x benefit from 1 Mountain mine but not from another Mountain Mine with the same resource. Again Oleh's problem. And we only see this from a well developed game so we have no 1st hand knowledge of what is going on in the Ren or Ind or Modern era, cause we "think" what we did will work right. Well apparently this does not as Oleh has patiently shown. Mountain Mines have problems.
JosEPh
I hate to say that's a cool idea but... that's kinda a cool idea.should I make a smoke signal fire improvement that later can upgrade to the radio tower?
I would prefer that the vicinity bonus requirement gets granted when the bonus is within city work area, period.That's actually right... that's the best way to go about it. The one thing I never looked into when helping out the modder that wanted the mountain mines setup the way they are is vicinity bonus coding. I'm not sure where it is but I can find it. Just not anytime too soon.
A question, and a proposed answer:
Should a resource only be included as 'in vicinity' if the peak can be worked already or not, even if improved?
I would propose to suggest that if there is a route and a proper improvement, the vicinity factor should be granted - for help with access to some resources that apparently love to show up on peaks but have their best impact in the earliest stages of the game.
Hahaha, maybe one day. ^^I hate to say that's a cool idea but... that's kinda a cool idea.
That's problematic to the intent of vicinity access, being a representation of local plentifulness. If you haven't established the means to get the resource into the city then just because it's within the workable radius doesn't mean the city is obtaining much of it.Even if the bonus is not improved, has no route, or even if the city doesn't have the bonus listed in its available resources tab.
It still represent a local plentifulness even though the nation as a whole is not reaping the benefit of the specific resource.That's problematic to the intent of vicinity access, being a representation of local plentifulness. If you haven't established the means to get the resource into the city then just because it's within the workable radius doesn't mean the city is obtaining much of it.
Correction, <PrereqVicinityBonuses>.should also require the bonus to be revealed on the map, I forgot to mention that.I would prefer that the vicinity bonus requirement gets granted when the bonus is within city work area, period.
I was hoping you would ramble through various situations actually, so that I could see how I feel about it when put in your perspective. You're making convincing arguments.It still represent a local plentifulness even though the nation as a whole is not reaping the benefit of the specific resource.
Do you need to have a mine (improvement) on the iron deposit to build a mine (building) on the same iron deposit?
Improvements are large scale and national while a city building is small scale and local.
Do one need iron in the city market to build a city owned iron mine?
Carrion gatherer building would only need animal bonuses in vicinity, no need for the animals to be an available commodity in the city market.
I'm rambling, I don't see the problem is all.
Here's my save. Its significantly after when I raised these guys up. I can't answer the second question.If you have a save that would help. Is this on Uncut or not?
This would break so much. Btw how can you have a resource both available and not available at the same time?I would prefer that the vicinity bonus requirement gets granted when the bonus is within city work area, period.
Even if the bonus is not improved, has no route, or even if the city doesn't have the bonus listed in its available resources tab.
May not help much because I'll need to see it happen in progress but it can at least give me an idea of the settings I need to know about.Here's my save. Its significantly after when I raised these guys up. I can't answer the second question.
Edit:
SVN 9443
Here are the buildings that requires a stone deposit somewhere around a city:How would even the city get stone back if it's not being quarried and transported on at least a path of some sort?
I see no logic at all for why the Pigeon Coop and Lizard Catcher would require a stone deposit close by to warrant their existence.