1000.sassa
Chieftain
- Joined
- Sep 25, 2010
- Messages
- 12
I tried a few times and i must say I got some really nice results!
Added a painful workaround for what looks like a bug in MultilayeredFractal.
Some continents were coming out with straight horizontal or vertical edges. You
can even see them in Terra. So I regenerate until the edges don't suck.
Hey Sirian, thanks for the reply.
Am I right that the bug is most apparent in MultilayeredFractal, because in plain Fractal it will generally happen at the poles?
Can you think of any better way to tweak the fractal output than what I'm doing (to regenerate the map until I find one without straight edges over a certain length)?
if(plot:CanHaveFeature(self.featureIce) and plot:IsAdjacentToLand() == false) then
I was just dealing with this same issue on my own script. A simple workaround I found was to edit the FeatureGenerator:AddIceAtPlot() function so that it does not place ice on plots adjacent to land. A similar alternative could be to keep ice out of shallow water altogether. This would ensure that there is always at least a narrow channel access between the "Pacific" and "Atlantic" oceans.
Best part of it, only one line of script need be changed, though to concept can be applied easily to any custom function that handles the application of ice:
Code:if(plot:CanHaveFeature(self.featureIce) and plot:IsAdjacentToLand() == false) then
function FeatureGenerator:AddIceAtPlot(plot, iX, iY, lat)
if(plot:CanHaveFeature(self.featureIce) and plot:IsAdjacentToLand() == false) then
if Map.IsWrapX() and (iY == 0 or iY == self.iGridH - 1) then
plot:SetFeatureType(self.featureIce, -1)
else
local rand = Map.Rand(100, "Add Ice Lua")/100.0;
if(rand < 8 * (lat - 0.875)) then
plot:SetFeatureType(self.featureIce, -1);
elseif(rand < 4 * (lat - 0.75)) then
plot:SetFeatureType(self.featureIce, -1);
end
end
end
end
Love the map! Been playing it almost exclusively.
I seem to find the Old Faithful wonder very close to my start on every game. I've started maybe ten different maps and its always been close by within maybe 10 tiles. Is that a glitch?