Sid Meier's Civilization V

Sid Meier's Civilization V

SMAN's Privy Council - The Monarchs
kensw Apr 8, 2019 @ 1:08pm
Suggestion - the popup every 4 turns seems excessive - maybe every 10 ?
Maybe every 10 turns ? Just a personal preference - Once you know how the Gov's work I usually plan ahead and know what Gov I am going for - I find all the popups a bit annoying
< >
Showing 1-3 of 3 comments
S-Man  [developer] Apr 9, 2019 @ 6:10am 
Are you talking about the Notification button on the right side of the screen? It's every 5 turns, and not hard to change if you know how to edit a text file.

In the mod's folder, there is an 'LUA' folder. The first file in that folder is:

GovernmentOverview.lua

Using Notepad or some other text editor, open this file. Towards the bottom of the file, there's a line:


if (iGameTurn % 5 == 0) and pPlayer:IsHuman() then


Change the 5 to a higher number, e.g. 10, 50, 100, 1000, etc. Save the file, exit Notepad, then reenable the mod. Then you'll only see the Notification on turns that are divisible by the integer you replaced the '5' with.

And if for some reason it all falls apart, it's not problem. Simply delete the mod's folder from your computer, and the game will reload a fresh (unedited) version the next time you enter the Mods area.
S-Man  [developer] Apr 9, 2019 @ 6:24am 
BTW - the previous change only affects the Notifications about your own government change status. The Notifications about other Civ's government changes will still appear. If you want to remove all notifications from this mod, this would require a different change.

The file to edit is in the same LUA folder, but is called:

GovernmentOverviewFunctions.lua


The changes required are a little different. Towards the bottom of this file, there is a function called 'SentNotification' - and the line looks like:

function SentNotification(iKey, NotificationStringLong, NotificationStringFading, iX, iY )


This is a general Notification handler for the mod. It provides the ability to display 5 different function types with the correct format, so calling functions don't have to worry about the oddities of the game's LUA syntax.

The easiest way to eliminate all Notifications is to add a single line directly at the top of the function, after the "function SentNotification(" line. The line would look like:

iKey = -1


This changes the value of the incoming iKey so that it would never find a match inside the nested 'IF' statements below. The constants that start with GOV_NOTIFICATION_... are all positive integers, so an iKey with a negative value would never find a match, resulting in no Notifications, ever.

And, again, save/exit the file, then reenable the mod to check the changes.
Last edited by S-Man; Apr 9, 2019 @ 6:24am
S-Man  [developer] Oct 16, 2020 @ 7:40am 
Hate to necro my own thread, but just anyone in the distant google future sees this thread, the latest version of the mod (V3) places a button in the lower-right side of the "World Governments" popup window that allows you to enable/disable notifications entirely.
< >
Showing 1-3 of 3 comments
Per page: 1530 50