790 ratings
Krakatoa Fix
File Size
0.002 MB
Nov 19, 2012 @ 1:25am
1 Change Note ( view )

Subscribe to download
Krakatoa Fix

This mod fixes the placement requirements of Krakatoa to increase its chances of being a workable tile.

This one has bugged me for a while. In the default game, Krakatoa usually spawns out in the middle of the vast ocean and wastes a good natural wonder slot for the given map being played (and it spawns often!). Not only that, but it wastes resources as well when they spawn around it in the middle of nowhere.

First, the reason it does this is due to an error in the code. "AdjacentTilesRequireShallowWater" is set to true, yet its parent tag"AdjacentTilesCareAboutTerrainTypes" remains at its default value of false and overrides it. This is why the wonder spawns out in the middle of the ocean and why, with logging enabled, it lists a ridiculous number of possible candidates for this wonder's placement (it's counting lots of ocean tiles). The adjacent tiles around Krakatoa are only all shallow water because of "SetAdjacentTilesToShallowWater" which converts them once the wonder is plopped into the ocean.

Setting "AdjacentTilesCareAboutTerrainTypes" to true basically fixed that issue alone. But I went a step further and made the requirements slightly more selective to better ensure that the volcano spawns more often at 2 tiles from land and has a much better chance of becoming a workable tile.

So, I added another parameter which only lets Krakatoa spawn on shallow water tiles (coast) instead of just any water tile. This prevents it from spawning on ocean adjacent to the coast and potentially being unworkable (4 tiles from land). Also, I increased the required initial number of shallow water tiles from 1 to 4. This ensures that Krakatoa doesn't spawn way out on the tip of coastal tiles branching out into the deep water and helps keep it closer to land.
< >
codystrong Jan 17 @ 12:30pm 
Mac download??
Ian Jan 4 @ 2:58pm 
Very simple concept fixing a massively irritating issue. Literally no reason not to run this mod. Thank you Barathor
kkr685 Oct 24, 2014 @ 3:40pm 
direct download for mac, please?
Gigaminc Aug 26, 2014 @ 5:12am 
Tesiphon Jul 6, 2014 @ 12:33pm 
Thanks for the swift reply - the is actually the only mod I have running atm, so there is nothing that could be conflicting. I'm just using the standard maps, although I tend to prefer Continents Plus.
Barathor  [author] Jul 6, 2014 @ 12:00pm 
It does; see my comments below. It's actually a very simple XML mod which changes the value of four existing items (three of them are just booleans) to enhance/correct the placement of Krakatoa.

I'm curious, what map script are you playing on? If you're using a map script mod, or something that messes with map generation, it's possible that it could be overriding this fix. Another culprit could be some simple XML mods which alter/redefine natural wonders. If so, try enabling this mod last (order matters) after others you think may be conflicting.
Tesiphon Jul 6, 2014 @ 11:23am 
I was excited to see this mod, but I believe you're right in that it does not work on BNW. My Krakatoa remains stubbornly in the middle of the ocean surrounded by coastal tiles. It has yet to spawn anywhere near land. Bummer.
Luke69ers Mar 30, 2014 @ 12:58pm 
Changing terrain would be cool. We could have weather or disasters and shit
enix001 Mar 28, 2014 @ 10:28am 
someone make that happen plz
Funkopedia Feb 21, 2014 @ 7:54pm 
You know what would be super-realistic?? If Krakatoa begins spawned out in the middle of the ocean, but, with each era advancement, two random land tiles grow/spawn next to it. You know, like an actual volcano does. It would basically become the Hawaiian islands. OMG IS THAT POSSIBLE.