So at the moment, I am working on something that is essentially global warming: plots are converted to ocean at intervals throughout the game.
And later, I use Map.RecalculateAreas() to check if it should be coast, lake, or ocean.
The issue is, when the code executes, it changes the tile to ocean/lake/coast, destroys the improvement, and then doesn't update graphically. I can mouse over the tile and it shows it being Ocean and having the yields of Ocean, I can't move units on it, and it shows up on the minimap as ocean, but its actual model appearance doesn't change.
From the modding wiki, it states:
Code:
function FloodDestroy(p)
p:SetImprovementType(-1);
p:SetTerrainType(6, false, true);
end
And later, I use Map.RecalculateAreas() to check if it should be coast, lake, or ocean.
The issue is, when the code executes, it changes the tile to ocean/lake/coast, destroys the improvement, and then doesn't update graphically. I can mouse over the tile and it shows it being Ocean and having the yields of Ocean, I can't move units on it, and it shows up on the minimap as ocean, but its actual model appearance doesn't change.
From the modding wiki, it states:
Is there any way to get around this? Is there a way to force a reload?Use to set the terrain on a given plot.
Graphics will refresh only after a save, exit to main menu and reload