Resource icon

JFD's Rise to Power

Status
Not open for further replies.
Gee, is the public version really still on v33?
I know right! It seems like just yesterday I witnessed the release of sovereignty. But hey, Prosperity is the next big challenge (that is, if the plan is still to finish it)

Right, questions:
1. What religions are there in the game
2. Have any Holy Cities been captured?
1. Catholicism, Islam, Judaism, Eastern Orthodoxy, Buddhism, Sikhism, and Zoroastrianism.
2. Yes, but as far at it goes for me I am the first player to capture a capital and thus it is fair to say I am the only one to have captured a Holy City. I founded Catholicism and I captured the Holy City of Islam (Istanbul) from the Ottomans (I captured that city exactly on turn 280). Probably doesn't help that I completely eradicated the religion with Inquisitors (removing their Holy City from the map and converting it)... but the Ottomans got the last laugh with this bug. Your particular theory about CP makes sense because their were no issues until I captured the Holy City, it follows in line with your explanation about persistent data and save games as well (the tables on both screens will continue to function until I reload a save, afterwards the tables disappear). Any recommendations on how to fix this bug so that the table shows up again?

In the meantime, I'll see if I can get you in with the rest of us; at the very least, your skills could be handy for RwF...
It would be an honor and privilege to work with you guys. To be fair, I am a novice at coding at best but I bet I could learn along the way and get better (I've never made a mod of my own but I'm decent at editing existent mods and code). BUT I've got a knack and interest for history so when it comes to historical things or research for mod content I can do that easy (look no further than those political parties, and THAT was defiantly grueling and time consuming... believe me). However, be it coding or research I will take any task head on and get the job done as best as possible with persistence and dedication if you guys would like to take me in :D
 
Last edited:
Huh, if so, probably impossible to establish gov. problem is also UI problem because I think your UserSetting has no problem. IIRC, piety displays on a topside if you disable TopPanel (both .xml and .lua) of CBO and gov. should be able to established if you disable one of DiploCorner or NotificationPanel (also both .xml and .lua) of CBP even though I don't remember which one is correct.
 
Huh, if so, probably impossible to establish gov. problem is also UI problem because I think your UserSetting has no problem. IIRC, piety displays on a topside if you disable TopPanel (both .xml and .lua) of CBO and gov. should be able to established if you disable one of DiploCorner or NotificationPanel (also both .xml and .lua) of CBP even though I don't remember which one is correct.
How do I do what you just said ?
 
You can find and delete those files (not recommended), or change their filename extensions (recommended), or anything else.
Well the RTP mod works just fine if I disable the compatibility files of CBP but without the compatbilty files the UI is messed up and some other functions of CBP like the Civ 4 Diplomatic Features from Putmalk don't work.
 
Any recommendations on how to fix this bug so that the table shows up again?

Well, the good news is that I'm right about the issue because I came to the same conclusion half a year ago :p

The bad news is that there isn't gonna be an easy way around it. For Cyrus I ended up using SaveUtils to get round it, but Jiff doesn't like it and uses TSL instead which idk how to use :p

It would just be a case of using the ReligionFounded event to tell when a religion's, well, founded; save the ID permanently through SaveUtils/TSL; then rely on that as a list of existing religions. So possible, but not particularly simple, as there'll be a lot of restructuring stuffs.

The fact that half a year ago was also before Sov. also implies that Jiff hasn't found a better solution to this issue either, so unless the beta version (which you should be getting access to soontm :D) has a fix then I guess we're waiting on Jiff to do this.
 
Well the RTP mod works just fine if I disable the compatibility files of CBP but without the compatbilty files the UI is messed up and some other functions of CBP like the Civ 4 Diplomatic Features from Putmalk don't work.
Did you just disable the entire compatibility files or only what I said? If the former is correct, enable everything except what I said. If the latter is correct, are you sure you don't use EUI? Do you know what is EUI? I'm sorry but make sure, there is no reason why they mess UI up. But I guess you mean the former, because functions should work if the latter is correct.

Again, it's very hard to play this mod with CBP without any coding or database knowledge because this mod is updated so long ago while CBP was updated consistently. You'd better just give up RtP or CBP unless RtP is updated.
 
Did you just disable the entire compatibility files or only what I said? If the former is correct, enable everything except what I said. If the latter is correct, are you sure you don't use EUI? Do you know what is EUI? I'm sorry but make sure, there is no reason why they mess UI up. But I guess you mean the former, because functions should work if the latter is correct.

Again, it's very hard to play this mod with CBP without any coding or database knowledge because this mod is updated so long ago while CBP was updated consistently. You'd better just give up RtP or CBP unless RtP is updated.
Compatibility files can actually be enabled or disabled from the mid menu like other mods because CBP is in 6 parts and sone parts can be activated without others. I don't think there is any way I can use both mods together so I wanted to ask that is it possible to use RTP , cultural diversity and city development without CBP because i think that CBP is one of the dependencies of RTP.
 
Compatibility files can actually be enabled or disabled from the mid menu like other mods because CBP is in 6 parts and sone parts can be activated without others. I don't think there is any way I can use both mods together so I wanted to ask that is it possible to use RTP , cultural diversity and city development without CBP because i think that CBP is one of the dependencies of RTP.
You can use RtP, CD, CiD without CBP.
 
Well, the good news is that I'm right about the issue because I came to the same conclusion half a year ago :p

The bad news is that there isn't gonna be an easy way around it. For Cyrus I ended up using SaveUtils to get round it, but Jiff doesn't like it and uses TSL instead which idk how to use :p

It would just be a case of using the ReligionFounded event to tell when a religion's, well, founded; save the ID permanently through SaveUtils/TSL; then rely on that as a list of existing religions. So possible, but not particularly simple, as there'll be a lot of restructuring stuffs.

The fact that half a year ago was also before Sov. also implies that Jiff hasn't found a better solution to this issue either, so unless the beta version (which you should be getting access to soontm :D) has a fix then I guess we're waiting on Jiff to do this.

So Chrisy15, got some pretty good news regarding the particular bug I mentioned earlier. There is a fix (or at the moment, a work around) to make the Religion Overview show the information contained within the World Religions and World Beliefs screens. Funny enough, it was something so simple that I am surprised it wasn't the first thing I tried. My first thought process was to search through the CBP files to find information regarding founder status, in particular, the status of the founder when a Holy City of an opposing religion is captured. I found nothing. So I decided that instead to trying to swim though honey and remove/edit an ENTIRE component of CBP (which may cause more issues) I should try to edit RTP itself to find a solution. Finally, I found it. You ready???

SO... looking though the logs I posted earlier it finally hit me that I should maybe try to simply remove the Color = LUA code from ReligionOverview.lua because after all, that's the code the logs were telling me was causing the problem. It turns out that by removing those lines of code from ReligionOverview.lua the issue was fixed entirely. Only change that it caused in game was that the text within the World Religion and World Beliefs screen was not colored, just the default white.

To anyone else using the Community Balance Patch in the community and having an issue with the World Religion and World Beliefs screen not showing up, below is how I fixed my issue...

1) Find your ReligionOverview.lua file within your RTP mod.
2) Find this particular code within the file and remove the line where the 3 dotted lines are ( Color = )
Spoiler Fix Part 1 :

Code:
-- Pantheon and Religion info (JFD: Changes made to register religions 'founded' by the same player)
    for religion in GameInfo.Religions() do
        local eReligion = religion.ID
        local holyCity = Game.GetHolyCityForReligion(eReligion, -1);
        if holyCity then
            local pPlayer = Players[holyCity:GetOwner()]
            local holyCityName = holyCity:GetName();
            local civName = pPlayer:GetCivilizationShortDescription();
   
            local founderID = pPlayer:GetID();
            local foundDate = JFD_TranslateDate(Game.GetFoundYear(eReligion, founderID))
            if(not activeTeam:IsHasMet(pPlayer:GetTeam())) then
                founderID = -1;
                holyCityName = "TXT_KEY_RO_WR_UNKNOWN_HOLY_CITY";
                civName = "TXT_KEY_RO_WR_UNKNOWN_CIV";
            end
   
            local colour = Colours[eReligion]
            if (not colour) then
                AssignReligionColours()
                colour = Colours[eReligion]
            end
       
            table.insert(religions, {
                Name = Locale.Lookup(Game.GetReligionName(eReligion)),
---             Color = {x=colour.r/255, y=colour.g/255, z=colour.b/255, w=colour.a},
                FoundDate = foundDate,
                ReligionIconIndex = religion.PortraitIndex,
                ReligionIconAtlas = religion.IconAtlas,
                FounderID = founderID,
                HolyCity= Locale.Lookup(holyCityName),
                Founder = Locale.Lookup(civName),
                NumCities = Game.GetNumCitiesFollowing(eReligion),
                NumFollowers = JFD_GetTotalWorldFollowers(eReligion),
                FounderAlive = pPlayer:IsAlive(),
            });
        end
    end

3) Find this particular code within the file and remove the line where the 3 dotted lines are ( Color = )
Spoiler Fix Part 2 :

Code:
-- Pantheon and Religion info (JFD: Changes made to register religions 'founded' by the same player)
    for religion in GameInfo.Religions() do
        local eReligion = religion.ID
        local holyCity = Game.GetHolyCityForReligion(eReligion, -1);
        if holyCity then
            for i,v in ipairs(Game.GetBeliefsInReligion(eReligion)) do
                local belief = GameInfo.Beliefs[v];
                local beliefDesc =  Locale.Lookup(belief.Description)
                -- local colour = Colours[eReligion]
                local colour = nil
                if (not colour) then
                    AssignReligionColours()
                    colour = Colours[eReligion]
                end
                table.insert(beliefs, {
                Name = Locale.Lookup(belief.ShortDescription),
---             Color = {x=colour.r/255, y=colour.g/255, z=colour.b/255, w=colour.a},
                Description = Locale.Lookup(belief.Description),
                Type = GetBeliefType(belief),
                Tooltip = Locale.Lookup(belief.Tooltip),
                Religion = Locale.Lookup(Game.GetReligionName(eReligion)),
                ReligionIconIndex = religion.PortraitIndex,
                ReligionIconAtlas = religion.IconAtlas
            });
            end
        end
    end
4) Your issue should be solved and the screens should show up again.
 
Last edited:
Thank you once again, JFD (and Crisy15)?
I suppose the Holy Law belief isn't meant to be as strong as it is? From medieval era onwards, it's usually new era with every SP (I'm just playing Prince, the speed is Marathon). For instance, one medieval era SP gave 17.500 Science, Gold and Faith (5-6 techs if Iremember correctly). Makes the game pretty pointless regardless of who gets this belief.
 
Thank you once again, JFD (and Crisy15)?
I suppose the Holy Law belief isn't meant to be as strong as it is? From medieval era onwards, it's usually new era with every SP (I'm just playing Prince, the speed is Marathon). For instance, one medieval era SP gave 17.500 Science, Gold and Faith (5-6 techs if Iremember correctly). Makes the game pretty pointless regardless of who gets this belief.

..? Religious Law is Piety from expending Magistrates and Dignitaries, and Faith from their specialists; there's the Theurgy founder belief which gives extra science, which may well be OP since it's science - I've never used it to see :p I've no idea where you're getting Science, Gold and Faith from adopting Social Policies from, esp. since the Filial Piety belief (the Policy one) is just Piety for adopting them...
 
..? Religious Law is Piety from expending Magistrates and Dignitaries, and Faith from their specialists; there's the Theurgy founder belief which gives extra science, which may well be OP since it's science - I've never used it to see :p I've no idea where you're getting Science, Gold and Faith from adopting Social Policies from, esp. since the Filial Piety belief (the Policy one) is just Piety for adopting them...

Nah, Holy Law the Founder belief. Unlocks the Divine Court + Recieve Faith, Science and Gold when purchasing a policy. At least v30 and v33. Took the last original capital about 250 AD, Modern Era, the one time I played it that far. Whichever AI civ gets this belief goes to Renessaince era real fast after Medieval, too.
 
Last edited:
Nah, Holy Law the Founder belief. Unlocks the Divine Court + Recieve Faith, Science and Gold when purchasing a policy. At least v30 and v33. Took the last original capital about 250 AD, Modern Era, the one time I played it that far. Whichever AI civ gets this belief goes to Renessaince era real fast after Medieval, too.

RTP doesn't include a Holy Law founder belief, and certainly doesn't include one with those effects: all Founder beliefs have a general effect and then a source of Piety, and none have ever unlocked a Building. If this is a CBP belief you're talking about, then I don't see how it's got anything to do with the JFDDLC or how we're meant to help...
 
Nah, Holy Law the Founder belief. Unlocks the Divine Court + Recieve Faith, Science and Gold when purchasing a policy. At least v30 and v33. Took the last original capital about 250 AD, Modern Era, the one time I played it that far. Whichever AI civ gets this belief goes to Renessaince era real fast after Medieval, too.

That's a founder belief introduced in CBO, not RtP.
 
Okay, so I know that other people have had this issue before, but on v33 and all previous versions the monarchy government is absolutely useless because you don't get extra legitimacy from being a monarch. I've looked at the XML and SQL files to try and see if there was a line to add that in but I couldn't find it. Is this a bug I can't fix or is there a line I can edit the legitimacy offset somewhere? If I can't fix it, can I just remove monarchies entirely from the mod?
 
can I just remove monarchies entirely from the mod?
No, because they're hardcoded into the UI bc making them dynamic is next to impossible. Can't help on the technical side rn bc phone in the morning, unfortunately...
 
Status
Not open for further replies.
Top Bottom