adaneslavo / More-Unique-Components-for-VP

Adds 3rd and 4th unique component to each civilization.
1 stars 6 forks source link

Multiplayer Mods Workaround conflict #186

Open HellsingDarge opened 5 years ago

HellsingDarge commented 5 years ago

Attempting to create Multiplayer Modpack with this mod enabled causes MMW to fail

..\MPMP_Maker: Adding ExaminationHall to InGame.lua...
..\MPMP_Maker: Adding Goedendag to InGame.lua...
..\MPMP_Maker: Adding GreatTurkishBombard to InGame.lua...
Runtime Error: ..\MPMP_Maker.lua:252: attempt to index local 'addinFile' (a nil value)
..\MPMP_Maker: Adding HashemiteRaider to InGame.lua...
..\MPMP_Maker: Adding Hippodrome to InGame.lua...
..\MPMP_Maker: Adding Holkan to InGame.lua...

Relevant code snippet from MPMP_Maker.lua

249    for addin in Modding.GetActivatedModEntryPoints("InGameUIAddin") do
250        if addin.ModID ~= MPMPMakerModID then
251            local addinFile = Modding.GetEvaluatedFilePath(addin.ModID, addin.Version, addin.File)
252            local addinPath = addinFile.EvaluatedPath
253            local filename = Path.GetFileNameWithoutExtension(addinPath)
254            print2 ("Adding " .. filename .. " to InGame.lua...")
255            Game.AddUIAddinToMPMP("InGame.lua", filename)       
256        end
257    end   

Tested with v41.1 and v42

pineappledan commented 5 years ago

This is a low priority until VP goes gold and the code is a little more stable

HellsingDarge commented 5 years ago

Update on the issue: with CPP from 17th July (7-17) and MUC v45 MMW finishes packing all mods without any problems, but the MP game crashes after the map gen (after leader screen). Only happens with some leaders (haven't tested fully)