[R&F] Custom map crashes on R&F with eastern and western map borders

Zobtzler

Chieftain
Joined
Oct 21, 2017
Messages
95
Location
Sweden
I'm trying to create an Americas map that's 96x60.

There are 4 different scenarios where I have made 2 different changes and the map crashes in 1 of them.
  1. Play with Standard rules, WrapX = true (no eastern and western borders) - Map doesn't crash
  2. Play with Standard rules, WrapX = false (eastern and western borders) - Map doesn't crash
  3. Play with Rise and Fall rules, WrapX = true - Map doesn't crash
  4. Play with Rise and Fall rules, WrapX = false - Map does crash.
The second weird thing is that, to temporarily fix this issue, I made a copy of my mod, and added some 10 extra tiles on the right and filled them with ice sheets (making it 106x60), and set WrapX to true so it shouldn't crash. This map worked (as it's like the scenario 3 above), but when I disabled WrapX (scenario 4), this extended map didn't crash.

The lua.log file returns this error before the first map crashes (or rather, repeats it forever until the game crashes)
Code:
Runtime Error: B:\Steam\steamapps\common\Sid Meier's Civilization VI\DLC\Expansion1\UI\Additions\AllianceResearchSupport.lua:51: attempt to index a nil value
stack traceback:
    B:\Steam\steamapps\common\Sid Meier's Civilization VI\DLC\Expansion1\UI\Additions\AllianceResearchSupport.lua:51: in function 'HasMaxLevelResearchAlliance'
    B:\Steam\steamapps\common\Sid Meier's Civilization VI\DLC\Expansion1\UI\Replacements\WorldTracker_Expansion1.lua:47: in function 'ShouldUpdateResearchPanel'
    B:\Steam\steamapps\common\Sid Meier's Civilization VI\Base\Assets\UI\WorldTracker.lua:395: in function 'OnResearchChanged'
    [C]: in function 'func'
    [C]: in function '(anonymous)'
Runtime Error: B:\Steam\steamapps\common\Sid Meier's Civilization VI\DLC\Expansion1\UI\Additions\AllianceResearchSupport.lua:51: attempt to index a nil value
stack traceback:
    B:\Steam\steamapps\common\Sid Meier's Civilization VI\DLC\Expansion1\UI\Additions\AllianceResearchSupport.lua:51: in function 'HasMaxLevelResearchAlliance'
    B:\Steam\steamapps\common\Sid Meier's Civilization VI\DLC\Expansion1\UI\Replacements\ResearchChooser_Expansion1.lua:64: in function 'ShouldRefreshWhenResearchChanges'
    B:\Steam\steamapps\common\Sid Meier's Civilization VI\Base\Assets\UI\Choosers\ResearchChooser.lua:341: in function 'OnResearchChanged'
    [C]: in function 'func'
    [C]: in function '(anonymous)'
And the weirdest thing is, these are all R&F files :confused:

A link to the mod here.

The mod requires YnAMP, so perhaps an issue with YnAMP that is secretly messing things up for me?
 
Apparently, having the autoplay mod active might have been the offender (?)

Quite odd, as only changing the plot data and the width of the map triggered this.
 
Back
Top Bottom