I'm trying to replace mountains in the pangea.lua file
I'm adding this snippet to the GenerateMap() function which I assume is the main function called when I start the game. I'm trying to iterate through all the tiles and replace the mountain tiles
However this does literally nothing as I still have mountains
Even this does literally nothing as not all tiles get converted to hills:
I'm adding this snippet to the GenerateMap() function which I assume is the main function called when I start the game. I'm trying to iterate through all the tiles and replace the mountain tiles
Code:
for x = 0, g_iW - 1 do
for y = 0, g_iH - 1 do
local i = y * g_iW + x;
if(plotTypes[i] == g_PLOT_TYPE_MOUNTAIN) then
plotTypes[i] = g_PLOT_TYPE_HILLS;
end
end
end
Even this does literally nothing as not all tiles get converted to hills:
Code:
for x = 0, g_iW - 1 do
for y = 0, g_iH - 1 do
local i = y * g_iW + x;
plotTypes[i] = g_PLOT_TYPE_HILLS;
end
end
Last edited: