robk
Warlord
I constantly have this problem where my mod disappears after doing a build from modBuddy (happens about 1/3rd of the time). This is really annoying since one of my mods takes about 12 seconds to build and that's a long time when you're sitting around twiddling your thumbs, especially if you have to rebuild, like, 4 times just to get the list to show up correctly.
I did a little investigation today and found out that, when that happens, you can do this to get your mod to show up again:
1) Go to your tuner and change the state to "InstalledPanel"
2) Type in Modding.DiscoverMods()
3) Type in RefreshMods()
It looks like RefreshMods() is being fired whenever something in that directory changes. However, it sometimes fires a split second too early and catches the mod right before it unpacks, which makes it look like the mod doesn't exist. Calling RefreshMods() by itself doesn't work because it uses Modding.GetInstalledMods() which doesn't actually open the directory and look at the files; however, Modding.DiscoverMods() does that for us.
Because I'm lazy and hate typing stuff in, I made edits to the InstalledPanel files to add a button that forces the mod list to fully refresh. They're attached to the post and you can just drop them in C:\Program Files (x86)\Steam\SteamApps\common\sid meier's civilization v\Assets\UI to override the originals (thanks Thal!).
Note: attached files are compatible with version 1.0.1.141
I did a little investigation today and found out that, when that happens, you can do this to get your mod to show up again:
1) Go to your tuner and change the state to "InstalledPanel"
2) Type in Modding.DiscoverMods()
3) Type in RefreshMods()
It looks like RefreshMods() is being fired whenever something in that directory changes. However, it sometimes fires a split second too early and catches the mod right before it unpacks, which makes it look like the mod doesn't exist. Calling RefreshMods() by itself doesn't work because it uses Modding.GetInstalledMods() which doesn't actually open the directory and look at the files; however, Modding.DiscoverMods() does that for us.
Because I'm lazy and hate typing stuff in, I made edits to the InstalledPanel files to add a button that forces the mod list to fully refresh. They're attached to the post and you can just drop them in C:\Program Files (x86)\Steam\SteamApps\common\sid meier's civilization v\Assets\UI to override the originals (thanks Thal!).
Note: attached files are compatible with version 1.0.1.141