Sid Meier's Civilization V

Sid Meier's Civilization V

1,175 ratings
Krakatoa Fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
1.683 KB
19 Nov, 2012 @ 1:25am
1 Change Note ( view )

Subscribe to download
Krakatoa Fix

Description
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.
46 Comments
Sentenza_1989 13 Jan, 2021 @ 6:22am 
Thank you, very useful :) .
nadnerb0777 11 Nov, 2020 @ 4:50pm 
More volcanoes!!!
BillyJoelWilliamson 5 Aug, 2020 @ 5:13pm 
Upvoted
BillyJoelWilliamson 5 Aug, 2020 @ 5:13pm 
This is a wonderful fix. Damnit. But seriously thank you for this I've seen this wonder placed like 45% of my games and before I downloaded this mod it was useful maybe twice in hundreds of games. Now I've seen this wonder spawn a few times with the mod and it has always been in a useful location.
slimmwillis 14 Jun, 2019 @ 8:17pm 
make a mode where you can settle ocean tiles like in call to power the best civ ever
SCORPEANrtd 13 Dec, 2017 @ 2:10pm 
Causes crashing when I reload saves
star 4 Sep, 2016 @ 2:43pm 
crash on load/restart game

[3076535.045] no such column: Type
[3076535.045] In Query - select * from Natural_Wonder_Placement where Type = ? LIMIT 1
DankSoup 3 Jul, 2016 @ 6:20am 
Get Gibraltar, Reef, and Krakatoa Fix mod instead. Its by the same person.
Everything 19 Jun, 2016 @ 9:34pm 
i've played almost 700 hours of this game and never seen this natural wonder. geez
Jot Nyang E 15 Apr, 2016 @ 11:29pm 
Awesome fix!!