Sid Meier's Civilization VI

Sid Meier's Civilization VI

Port Lime - Bridge Districts
Vista 4 Nov, 2023 @ 11:15pm
1
Multiplayer Bug
I installed this mod today, and then started a multiplayer game, but got stuck after building my first wonder. It was odd, since normally the "Wonder has been built" thing doesn't happen in multiplayer. Worst part is, you can't even save the game in that state, and reloading the last auto-save will just result in the wonder immediately completing and getting stuck again. Very frustrating.

I have never modded Civ6 before but, being a developer, I figured I'd take a look under the hood. I found the problem to be WonderBuiltPopup_LimeBridge.lua. In it, the code loads WonderBuiltPopup.lua and sets the event with a new version of the handler. However, if you look at the base file, the initialization function checks if the game is multiplayer, and doesn't set the event in that case. But the code in the mod would then set it anyways, no matter what.

The solution is therefore to add the same check to the mod's code. If we update WonderBuiltPopup_LimeBridge.lui as follows:

if GameConfiguration.IsAnyMultiplayer() then
return; -- Do not use if a multiplayer mode.
else
[Original code here]
end

then multiplayer starts to work as expected, even when continuing a game that was interrupted by the bug.
< >
Showing 1-4 of 4 comments
Dogan 25 Jan, 2024 @ 12:01am 
Thank you so much for this! You single-handedly saved my hotseat game
Cutha 18 Feb, 2024 @ 6:57pm 
I uploaded a fix for the cliff problem. It works for Old London Bridge (World Wonder), Port Lime - Bridge Districts, Tower Bridge (World Wonder). It also fixes the MP popup bug for the Port Lime mod.

CliffsNoProb
the tim 11 Aug, 2024 @ 8:49am 
Just tried the mod with my friend just now and I got stuck when I built the Stongehenge sadly
fuighyyy 17 Dec, 2024 @ 7:42pm 
This works, thanks
< >
Showing 1-4 of 4 comments
Per page: 1530 50