Multiplayer Mods over LAN

JZersche

Chieftain
Joined
Dec 11, 2015
Messages
4
Hello. I am attempting to get some MODS working in LAN Games, I have a User Interface Mod installed and a IGEditor, and the Interface Mod actually works in Multiplayer without having to do anything. Other mods do not.

So in my attempt to get Mods to activate in multiplayer, I did some research and found a Mod somebody had made for Civ5, which allowed it by modifying three files.

MultiplayerSelect.lua, JoiningRoom.lua, and StagingRoom.lua

In these three files, I had noticed that they were also present in Beyond Earth, but there was a alot of modifications done to the structure of the files and new code added, so clearly not going to work for Beyond Earth. I did notice in these files parts where
Modding.ActivateEnabledMods(); had been added, and I decided to try doing that to the files on Beyond Earth, and there was one point where I made progress. I remember adding that Modding.ActivateEnabledMods(); to line 62 of the LAN Game Button handler, and right after the Local Area Network button was clicked in the game, it began to configurate the game as if it was loading the mods.

Once taken to the Game Setup screen before the staging room, I could see the Additional Gaming Speeds mod in the Game Pace setting there it was, 12 additional speeds or something like that, but once I was in the staging room, in the game options the mods were deactivated again. I made some more additions of that Modding.Activate function, and somehow ended up getting it to show the mods in the staging room and also work in game, but there was a problem where when I got to select the diplomacy window, I would click it and nothing would happen.

Thinking I would be able to get back to where I was at originally, I deleted the files, and replaced the originals back in and decided to do things carefully one at a time, and I have not been able to get back to that point.



MultiplayerSelect.lua
http://pastebin.com/nL1SSgp4

JoiningRoom.lua
http://pastebin.com/wSX20TCp

StagingRoom.lua
http://pastebin.com/vM6UjM2P


Note: Pretty sure I only had to change one thing in StagingRoom.lua, close to the top of the file.
I have not been able to get the mods to show up in the staging room again, despite being able to do it once.
 
So this has been achieved and I will be releasing this mod on the Steam Workshop, if it's permitted.
 
Top Bottom