• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.
Rule with Faith

Rule with Faith

.
Also, can anyone remind me where I find out the type and strength of any Legacy bonuses I should have. I can't seem to find them.

Legacy bonuses were killed by Firaxis in RaF bc they were broken anyway. Now they're in the form of policy cards, which act like any other policy card.
 
Thanks for that. Maybe you can help with crash. It seems to be happening during the AI turn, when I think a once Roman, now Free city/Barb is taking its turn. The language of the logs is all Greek to me, but in one of them, the lua log, one of the last things noted was a Runtime Error that mentions a JFD RWF MasterUils.lua so you are my first attempt at figuring out how to avoid it.

As per the OP, I'm using the most up to date RWF from the Steam Workshop

Here are my Database and LUA logs and a list of the MODs.

Any guidance or advice most appreciated.
 

Attachments

Hi JFD and all,

I've just installed RwF according to your instructions here, but when I try to start a game, it kicks me back into the main menu. Can anyone help me please?

FYI: I'm playing Civ 6 with RnF on a Mac.

1. RwF mod version: 10

2. Mod list: No other mods installed.

3. Database.log and Lua.log attached below.
 

Attachments

Afaik Mac hasn't received the RaF patch still, which iirc we concluded left RwF unusable.
 
We wait for the Mac version of the game to be updated on par with the PC version of the game. Then this mod should work as is. When or if that'll come - your guess is as good as ours; its down to Firaxis and co.
 
Hello JFD, I have found few common bug in Rule with Faith in this last update. I don't know if you have see these bug and start to fix it.
- First: I don't know if Merchant Republic will free the first building since I never prefer with this government. (UPDATE)
- Second: Have policy "Sainthood" when choose "Absolute Monarchy" government with their legacy card fill on it will reduce faith to recruit a great person with just only 1 Faith. Especially when play as Chiyukitalian when Dark Age on Atomic Era.
- Third: Leader Title seem not work with some mod if Civilization Title is exist.
- Fourth: Renaissance Era Government are actually "Tier 4", not "Tier 3" which I think that will make AI never adopted later government.
- Fifth: Later Era Government such as Democracy didn't have Legacy card because Legacy card are unlocked by building tier from Government Plaza district.
- Sixth: Empire policy seem to freeze the game when capture enemy city in different continent. Especially Later era with huge empire because the Era score.

UPDATE: (5/19/18)
- First (Update): Fix lua code on Merchant Republic to free the first building.
- Plus One: Fix lua UI in last Rise & Fall update.
- Plus Two: Fix End Game when you want to view your timeline.
 
Last edited:
Bug: Constitutional Monarchy minor bonus does not work. Don't know if it's due to last patch or if it has been like this since launch.
 
Actual bug I've run in during three different games, now: apostles generated with great theologians cannot spread religion.

If the music that rings when choosing your pantheon is BG music (as opposed to a sound effect), it's unaffected by volume settings.

Is it possible that this mod does weird things with Religion expanded? I was playing with the Russians and my "territorial belief" from Religion Expanded (Eudaimones: tiles adjacent to holy sites get +1 prod and +1 faith) took forever to actually work after building Lavras, when it did at all.
 
Last edited:
UPDATE: (5/19/18)
- First (Update): Fix lua code on Merchant Republic to free the first building.
- Plus One: Fix lua UI in last Rise & Fall update.
- Plus Two: Fix End Game when you want to view your timeline.
U1gzn52.jpg
They don't show any promotion, but still working in some method. But don't have to rush or don't frequently update the mod, otherwise, Steam Workshop will refuse to update the mod since they didn't fix that thing if update over 30 time or higher.

I forget one thing, Fix Moksha Promotion in last update too since they have change the database.
 
But don't have to rush or don't frequently update the mod, otherwise, Steam Workshop will refuse to update the mod since they didn't fix that thing if update over 30 time or higher.

Hah... I was wondering why despite the announced fix earlier this month, merchant republic still didn't work for me <<;;;
 
Hi JFD,
Thank you for the mod and keeping it updated, the more I play with it, the more I enjoy Civ governments and politics!
However I noticed that some of the policy cards are so OP comparing to others (esp vanilla politics). For example Arts patronage gives +1 gp for writer/musician/artist in each theater district or Secularism with its +1 GS/GM/GE... comparing to some vanilla cards with their +2GS points or even late game +4 they are just so much better. Would it be possible to do some balancing of policy cards?
 
Hi JFD,
Thank you for the mod and keeping it updated, the more I play with it, the more I enjoy Civ governments and politics!
However I noticed that some of the policy cards are so OP comparing to others (esp vanilla politics). For example Arts patronage gives +1 gp for writer/musician/artist in each theater district or Secularism with its +1 GS/GM/GE... comparing to some vanilla cards with their +2GS points or even late game +4 they are just so much better. Would it be possible to do some balancing of policy cards?
I kind of agree. Natural Philosophy is also ridiculously powerful. Maybe some of these policies should be upped to level 1 or 2 buildings instead of districts?
 
The AI currently doesn't seem to pick anything other than Polis/Merch Repub/etc. For its government type - i.e., whatever has the most Economic Policy Cards. Think you could adjust that, for a more diverse selection of AI personalities?
 
Any way to make this work on IPad (maybe the v8 version as all following versions need R&F I think...).
Log file Lua.log says:
Code:
Runtime Error: /var/mobile/Containers/Data/Application/EAB0312D-D43F-4411-803A-2403AFC085F7/Documents/Sid Meier's Civilization VI/Mods/JFD's Rule With Faith/Lua/UI/Overrides/TechAndCivicSupport.lua:291: attempt to index a nil value
stack traceback:
    /var/mobile/Containers/Data/Application/EAB0312D-D43F-4411-803A-2403AFC085F7/Documents/Sid Meier's Civilization VI/Mods/JFD's Rule With Faith/Lua/UI/Overrides/TechAndCivicSupport.lua:291: in function 'PopulateUnlockablesForCivic'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:490: in function 'AllocateUI'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:2064: in function 'Initialize'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:2133: in function '(main chunk)'
    [C]: in function '(anonymous)'
Lua callstack:
 - Error loading /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua.
TutorialUIRoot: Loading bank of items for tutorial scenario: 'BASE'

Any tips how to fix this?
Thank you!
 
Any way to make this work on IPad (maybe the v8 version as all following versions need R&F I think...).
Log file Lua.log says:
Code:
Runtime Error: /var/mobile/Containers/Data/Application/EAB0312D-D43F-4411-803A-2403AFC085F7/Documents/Sid Meier's Civilization VI/Mods/JFD's Rule With Faith/Lua/UI/Overrides/TechAndCivicSupport.lua:291: attempt to index a nil value
stack traceback:
    /var/mobile/Containers/Data/Application/EAB0312D-D43F-4411-803A-2403AFC085F7/Documents/Sid Meier's Civilization VI/Mods/JFD's Rule With Faith/Lua/UI/Overrides/TechAndCivicSupport.lua:291: in function 'PopulateUnlockablesForCivic'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:490: in function 'AllocateUI'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:2064: in function 'Initialize'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:2133: in function '(main chunk)'
    [C]: in function '(anonymous)'
Lua callstack:
 - Error loading /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua.
TutorialUIRoot: Loading bank of items for tutorial scenario: 'BASE'

Any tips how to fix this?
Thank you!

Try taking the referenced file from the most recent version. The issue is caused by the file needing to be updated for the patch, but idr if there's a version for the patch which doesn't require RaF.
 
Thank you for your answer. I tried a few things:
JFD RWF v8 with TechAndCivicSupport.lua from recent version (downloaded recent version from GoogleDrive in folder "vanilla")
Error:
Code:
Runtime Error: /var/mobile/Containers/Data/Application/EAB0312D-D43F-4411-803A-2403AFC085F7/Documents/Sid Meier's Civilization VI/Mods/JFD's Rule With Faith/Lua/UI/Overrides/TechAndCivicSupport.lua:255: attempt to index a nil value
stack traceback:
    /var/mobile/Containers/Data/Application/EAB0312D-D43F-4411-803A-2403AFC085F7/Documents/Sid Meier's Civilization VI/Mods/JFD's Rule With Faith/Lua/UI/Overrides/TechAndCivicSupport.lua:255: in function 'PopulateUnlockablesForCivic'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:490: in function 'AllocateUI'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:2064: in function 'Initialize'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:2133: in function '(main chunk)'
    [C]: in function '(anonymous)'
Lua callstack:
 - Error loading /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua.
TutorialUIRoot: Loading bank of items for tutorial scenario: 'BASE'

Code in line 255:
Code:
unlock.CulturalPolicyLabel:SetText(tostring(government.NumSlotCultural)); -- Cultural

JFD RWF v? (maybe v10, because same size as v10 package?) -> recent vanilla version from GoogleDrive
Error:
Code:
Runtime Error: /var/mobile/Containers/Data/Application/EAB0312D-D43F-4411-803A-2403AFC085F7/Documents/Sid Meier's Civilization VI/Mods/JFD's Rule With Faith/Lua/UI/Overrides/TechAndCivicSupport.lua:255: attempt to index a nil value
stack traceback:
    /var/mobile/Containers/Data/Application/EAB0312D-D43F-4411-803A-2403AFC085F7/Documents/Sid Meier's Civilization VI/Mods/JFD's Rule With Faith/Lua/UI/Overrides/TechAndCivicSupport.lua:255: in function 'PopulateUnlockablesForCivic'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:490: in function 'AllocateUI'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:2064: in function 'Initialize'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:2133: in function '(main chunk)'
    [C]: in function '(anonymous)'
Lua callstack:
 - Error loading /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua.
TutorialUIRoot: Loading bank of items for tutorial scenario: 'BASE'
LoadScreen: OnLoadGameViewStateDone


JFD RWF v? (mabye v10?) -> with "Lua/UI/Overrides/*.lua" replaced applicable lua scripts with most recent R&F package.
Error:
Code:
Runtime Error: /var/mobile/Containers/Data/Application/EAB0312D-D43F-4411-803A-2403AFC085F7/Documents/Sid Meier's Civilization VI/Mods/JFD's Rule With Faith/Lua/UI/Overrides/TechAndCivicSupport.lua:275: attempt to index a nil value
stack traceback:
    /var/mobile/Containers/Data/Application/EAB0312D-D43F-4411-803A-2403AFC085F7/Documents/Sid Meier's Civilization VI/Mods/JFD's Rule With Faith/Lua/UI/Overrides/TechAndCivicSupport.lua:275: in function 'PopulateUnlockablesForCivic'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:490: in function 'AllocateUI'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:2064: in function 'Initialize'
    /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua:2133: in function '(main chunk)'
    [C]: in function '(anonymous)'
Lua callstack:
 - Error loading /private/var/containers/Bundle/Application/7019A7A6-EBB6-440D-9D8C-04EBEA470767/Civ6_iOS64_Metal_FinalRelease.app/Base/Assets/UI/Screens/CivicsTree_TABLET.lua.
TutorialUIRoot: Loading bank of items for tutorial scenario: 'BASE'
LoadScreen: OnLoadGameViewStateDone

Code in line 275:
Code:
unlock.ReligiousPolicyLabel:SetText(tostring(numReligious));

It seems that the policy slots are not populated in "unlock" variable. So maybe there is a problem in another function / file which is responsible for adding the custom policy slots to the UI...

IPad Version of CIV 6 is 1.0.0.194 (162506)

The problem is that nor the civics tree can be opened, neither there are the custom civics slots within the goverment screen. Also the textures of some cards are "green" (as diplomatic cards) instead of white (for religious cards) f.e.

So maybe there are some issues with textures not loading correctly and therefore could not be injected into the civics tree / goverment menu

Would it be possible to convert the .dds files to lets say png files and use them within the game engine?

Maybe the cause is that CivicsTree.xml is not loading and therefore the policy slots within goverment menu is not extended with the two more stacks (cultural + religious)

That are just some ideas where the problem could reside.

Still not working... I would try to fix it by myself, but I have no idea how to debug CIV on IPad...
Thank you in advance.
 
Last edited:
Ok I managed to get it working on the IPad version.
There are some files which are only existing in the IPad version in the folder "Lua/UI/Overrides".
The following Files must be copied and renamed:
CivicsTree.lua => CivicsTree_TABLET.lua
CivicsTree.xml => CivicsTree_TABLET.xml
GovernmentScreen.lua => GovernmentScreen_TABLET.lua
GovernmentScreen.xml => GovernmentScreen_TABLET.xml

GovernmentScreen_TABLET.xml:
I slightly tweaked the file to make the goverment screen compatible with the ipad's small goverment screen by adding a scrolling area (otherwise the filter buttons "New", "Military", "Economy", etc. are not visible, due to less space).

I edited the "JFD's Rule With Faith.modinfo" file aswell and added the new four files:
Code:
...
<File>Lua/UI/Overrides/CivicsTree.lua</File>
      <File>Lua/UI/Overrides/CivicsTree.xml</File>
      <File>Lua/UI/Overrides/CivicsTree_TABLET.lua</File>
      <File>Lua/UI/Overrides/CivicsTree_TABLET.xml</File>
...

and

Code:
...
<File>Lua/UI/Overrides/GovernmentScreen.lua</File>
      <File>Lua/UI/Overrides/GovernmentScreen.xml</File>
      <File>Lua/UI/Overrides/GovernmentScreen_TABLET.lua</File>
      <File>Lua/UI/Overrides/GovernmentScreen_TABLET.xml</File>
...

However, custom textures/models and therefore custom units / great people etc may do not work as exspected, as the ipad version needs different art files (I have no idea in which format they have to be).

I attached the modified mod folder as zip - so everyone can try.
All credits go to JFD and his partners for this great mod!

Please integrate the modifications in the main version of the mod! (I used the newset vanilla version of the mod). If there is a git repository or something I can also create a pull request.
Thank you.
 

Attachments

Back
Top Bottom