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.
The lua.log file returns this error before the first map crashes (or rather, repeats it forever until the game crashes)
And the weirdest thing is, these are all R&F files 
A link to the mod here.
The mod requires YnAMP, so perhaps an issue with YnAMP that is secretly messing things up for me?
There are 4 different scenarios where I have made 2 different changes and the map crashes in 1 of them.
- Play with Standard rules, WrapX = true (no eastern and western borders) - Map doesn't crash
- Play with Standard rules, WrapX = false (eastern and western borders) - Map doesn't crash
- Play with Rise and Fall rules, WrapX = true - Map doesn't crash
- Play with Rise and Fall rules, WrapX = false - Map does 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)'

A link to the mod here.
The mod requires YnAMP, so perhaps an issue with YnAMP that is secretly messing things up for me?