Sid Meier's Civilization VI

Sid Meier's Civilization VI

Yet (not) Another Maps Pack
Foenix 2018 年 3 月 3 日 上午 9:19
Minor bug in terra.lua?
Hi Gedemon,
Thanks for your mod!

I think I found a small bug. I had noticed that I was getting a ton of mountains when I was setting world age to old and few mountains when world age was new (inverse of what should happen).

In Terra.lua lines 648-650 it looks like you set world_age_new =3 and world_age_old =1
local world_age_new = 3;
local world_age_normal = 2;
local world_age_old = 1;

Then in lines 666-672 it appears you inverse this? (world_age == 1) then world_age_new...
if (world_age == 1) then
world_age = world_age_new;
elseif (world_age == 2) then
world_age = world_age_normal;
elseif (world_age == 3) then
world_age = world_age_old;
Flipping the values seemed to fix the "too many mountains" issue without messing with the mountain ratio.

if (world_age == 3) then --CHANGED TO 3
world_age = world_age_new;
elseif (world_age == 2) then
world_age = world_age_normal;
elseif (world_age == 1) then --CHANGED TO 1
world_age = world_age_old;

I'm not a programmer, so not sure if this is the right fix or not, but thought I'd share.
thanks!

最后由 Foenix 编辑于; 2018 年 3 月 3 日 上午 9:20
< >
正在显示第 1 - 4 条,共 4 条留言
Gedemon  [开发者] 2018 年 3 月 4 日 上午 4:37 
they use the same setting in Continents, Pangea, Fractal and the other vanilla map scripts, where "world_age" is the selected setting (1 = new, 2 = normal, 3 = old) and where world_age_new, world_age_normal and world_age_old is used to set the number of mountains, (higher number means more mountains)
Foenix 2018 年 3 月 4 日 上午 10:45 
hmmm. that's interesting. I flipped them and it generates a map with fewer mountains?
Gedemon  [开发者] 2018 年 3 月 4 日 上午 10:55 
because I misinterpreted a value later in the code (mountainRato) that need to be high to generate less single mountains.

it has been corrected in the latest update.
Foenix 2018 年 3 月 6 日 下午 6:41 
awesome, thank you!
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50