Sid Meier's Civilization VI

Sid Meier's Civilization VI

Got Lakes (Various Worlds) Map Script
STuRoK May 12, 2023 @ 5:27pm
local MapDefaults - not working?
Yo! Looks like you're still working hard on this mod, thanks a mil. Hope all is well.

Question about the " local MapDefaults = " in the Gotlakes.lua
local MapDefaults =
{
RESOURCES = 3, -- 2
START = 3, -- 2

-- Use numbers, GOT_NONE, or GOT_ALL
--------------------------------------
CONTINENTS = GOT_NONE,
ISLANDS = GOT_NONE,
LAKES = 4,
PANGEA = GOT_NONE,

MOUNTAINS = 3, -- 1
MTNCLUMPS = 3, -- 1
-- 1 = simple, 2 = detailed, 3 = branchy, -- 4 = snaky, 5 = everything, 6 = random
RIVERS = 5, -- 1


I noticed that these don't show up how they are set. I changed a bunch of them, but none of them took, and in fact, all default settings here are not even showing up as the default settings in my game.

For example: CONTINENTS = GOT_NONE ... doesn't default to NONE, it defaults to ALL. all of em do, even the one I changed. And then Mtns and Rivers etc all show up as Random instead of the default value or my changed value.
Am I misunderstanding this section?
Maybe they are overridden elsewhere?

Thanks for your time
< >
Showing 1-4 of 4 comments
Scrum Lord  [developer] May 17, 2023 @ 1:11am 
Hi @STuRoK! In order to use those hard-coded defaults, you need to set ENABLE_UI to false at Line 32:

-- On/Off switch for UI options.
-- Set to true to control options with the Advanced Options menu.
-- Set to false to control options with hard-coded defaults.
local ENABLE_UI = true;


In fact, right above the code snippet that you posted there is a comment explaining this:

-- Hard-Coded Defaults for development/debugging.
--
-- If ENABLE_UI is false then you can use these settings instead of the
-- Advanced Options menu. To re-roll your map, simply edit the settings,
-- save changes, and click Restart in the in-game/WB menu.
local MapDefaults =
{


If ENABLE_UI is true then Got Lakes uses the choices from the game's Advanced Setup menu and defaults from GotLakes_MapScripts.xml.

Hope that helps!
Last edited by Scrum Lord; May 17, 2023 @ 1:19am
STuRoK May 17, 2023 @ 1:42pm 
edit: I changed it to false and it didn't affect the options.
(I change the map the Got Lakes first ofc)


oh man.. smh !
I can't believe I glossed over that part.. I figured 'true' meant that they were enabled. Your explanation cleared it up though.
Sorry to bother you man
Thanks a lot for taking the time to help
Last edited by STuRoK; May 17, 2023 @ 2:21pm
STuRoK May 17, 2023 @ 1:46pm 
Oh, I wanted to also ask-
If we're using the mod TRULY ABUNDANT, is it possible to set this in the
RESOURCES = 6, ? -- 1 = sparse, 2 = standard, 3 = abundant, 4 = random
where 5 = Plentiful, 6 = Truly Abundant... ?

thanks
Last edited by STuRoK; May 17, 2023 @ 1:51pm
Scrum Lord  [developer] May 17, 2023 @ 3:14pm 
Just to be clear, setting ENABLE_UI to false wont change the drop downs in the advanced setup menu, but Got Lakes will then ignore those drop downs in favor of the hard-coded defaults in GotLakes.lua.

Btw, Got Lakes prints your selections for map options in the lua log (for single player) and also prints the outcome of each random option, so that's another way to tell whether you're getting the type of map that you want.

For truly Abundant Resources, you might have to set ENABLE_UI to true and check the lua log to see what value you get when you set those values, because they're not necessarily 6 and 7 iirc. You could also check the source of that mod, which probably has the custom values in an xml file. But yes, setting the right magic number should work.
Last edited by Scrum Lord; May 17, 2023 @ 3:15pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50