[G&K] Player 2 can't make Declarations of Friendship with AI

DiscussionDialog.lua is a part of Whowards "UI - Diplomacy Log" and VFS Import is on.
 
Odd, that literally is the only thing that could go wrong in the DoF code, unless I'm missing something important in the DiploUIRequest code (possible, since that stuff is locked away in the game's UI engine code).
 
I found three copies of DiscussionDialog.lua, and two of them needed the fix:

* Civilization V.app/Contents/Home/Assets/UI/InGame/LeaderHead/DiscussionDialog.lua was okay
* Civilization V.app/Contents/Home/Assets/DLC/Expansion/UI/InGame/LeaderHead/DiscussionDialog.lua needed the fix in OnButton5()
* Civilization V.app/Contents/Home/Assets/DLC/Expansion2/UI/InGame/LeaderHead/DiscussionDialog.lua needed the fix in OnButton5()

Thanks so much for finding the fix!
 
Why?

The Game only use the newest file and the function on Button 5 in G&K and BnW are different.
 
I found three copies of DiscussionDialog.lua, and two of them needed the fix:

* Civilization V.app/Contents/Home/Assets/UI/InGame/LeaderHead/DiscussionDialog.lua was okay
* Civilization V.app/Contents/Home/Assets/DLC/Expansion/UI/InGame/LeaderHead/DiscussionDialog.lua needed the fix in OnButton5()
* Civilization V.app/Contents/Home/Assets/DLC/Expansion2/UI/InGame/LeaderHead/DiscussionDialog.lua needed the fix in OnButton5()

Thanks so much for finding the fix!

Why?

The Game only use the newest file and the function on Button 5 in G&K and BnW are different.

Yeah, the game should have the latest expansion's .lua file override all previous files. Even if you're going down the file modification route (not recommended, it's better to make a separate mod that overwrites the file), you should only have to modify the BNW version of the file.

Interesting to note that vanilla Civ5's code for the DoF button is fine (it's OnButton2), and only the code in G&K and BNW need fixing. This would coincide with people saying that the bug is present in G&K and BNW, but nobody reported it for vanilla Civ5.
 
Solution:

Copy this Files (LeaderHeadRoot.xml and LeaderHeadRoot.lua) to
"Steam\SteamApps\common\Sid Meier's Civilization V\assets\DLC\Expansion2\UI\InGame\LeaderHead".

This files are from EUI Mod.
 

Attachments

  • Hotseat Fix.rar
    10.5 KB · Views: 318
Solution:

Copy this Files (LeaderHeadRoot.xml and LeaderHeadRoot.lua) to
"Steam\SteamApps\common\Sid Meier's Civilization V\assets\DLC\Expansion2\UI\InGame\LeaderHead".

This files are from EUI Mod.

Note that these files will not work without the rest of EUI: they rely on "helper functions" that are a core part of EUI.
 
Top Bottom