Sid Meier's Civilization VI

Sid Meier's Civilization VI

Yet (not) Another Maps Pack
BinaryPoney 16 Jul, 2019 @ 5:11pm
Crash when lowland option
The game won't start when low land option in advanced settings is set to import. It was easy for me to find the problem so I just changed the option to generated since I knew it wouldn't enter the condition where it crashes.

The error is located in Override/AssignStartingPlots.lua at line 5452.
It seems like lowlandType is null for some reason. I didn't try to find out why though.
if lowLandPlacement == "PLACEMENT_IMPORT" and bExpansion2 and lowlandType ~= -1 then TerrainBuilder.AddCoastalLowland(plot:GetIndex(), lowlandType) -- CRASHES HERE end

Here's the stack trace of the error...
Runtime Error: bad argument #2 to 'func' (integer expected, got nil) stack traceback: [C]: in function 'func' E:\SteamLibrary\...\871861883\Override\AssignStartingPlots.lua:5452: in function 'ImportCiv6Map' E:\SteamLibrary\...\871861883\Override\AssignStartingPlots.lua:3229: in function 'GenerateImportedMap' E:\SteamLibrary\...\1290583081\Maps\TSLEE_GS.lua:43: in function 'GenerateMap' [C]: in function '(anonymous)' Lua callstack: Runtime Error: Call to GenerateMap() had errors stack traceback: [C]: in function '(anonymous)'

I would have fixed it myself but after I saw the size of the file... well.. I'm not gonna try to understand 6000 lines of code in the same file. Though, if I can help you in any way, please feel free to contact me.

I put the full log in a gist[gist.github.com] on Github. It's easier and faster for me since I'm used to it.

My contact informations are on my github profile. You can also just comment the gist.
You can contact me on Discord too. (DrunkenPoney#6969)

It might take a while before I answer you if you contact me through steam but I'll answer unless I don't receive any notification.
Last edited by BinaryPoney; 16 Jul, 2019 @ 5:25pm
< >
Showing 1-1 of 1 comments
Gedemon  [developer] 16 Jul, 2019 @ 11:10pm 
My bad it's a test option that shouldn't have been implemented yet (not tested as the import/export tool need to be updated first)

Thanks for reporting, I'll need to fix the code anyway for legacy
< >
Showing 1-1 of 1 comments
Per page: 1530 50