• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
hey very quick Ive been adding empires, kingdoms duchies to the landed titles and alls fine they have all been recognised in game, however the probelm is when I try to assign them all flags most of them accept the new flag however some don't. I've checked that theres no typos in their names and it isn't that, the flags name is the exact same as the coded one so I'm stumped on why they won't take the flag.
 
Is the in-game calendar hardcoded? That is to say can I make a 18 month calendar with 12 months with 32-33 days and 6 months of 1 day each for a total of a 400 day calendar making of the run of the year?
 
I've tried and haven't had any luck with it.

Thanks.

Here's another conundrum I'm trying to figure out. I'm trying to create a decision (actually a few to fit different situations) that allow independent dukes and counts to pledge allegiance to a bigger neighbor of the same religion. I'm not going to go crazy on this, so don't worry, but I want to set up the situation where for example, the Count of Toulouse becomes vassal to the King of Aragon at the time of the Albigensian Crusade, and the Andalusian Emirates can pledge allegiance to Mauretania through a similar mechanism. In both cases, you need to be 'friends' with your prospective overlord (+40 relations).

But I'm trying to get the basic decision going, and this is what I have:

Code:
decisions = {
    pledge_allegiance = {
        potential = {
            independent = yes 
        }
        allow = {
            any_neighbor_province = { 
                liege = {
                    religion = ROOT
                }
            }
        }
        effect = {
             set_defacto_liege = PREV 
             prestige = 100 
        }
        ai_will_do = {
             factor = 100
        }
   } #closing pledge_allegiance decision
} #closing file fealty_decisions.txt

I'm not sure if I'm doing something that isn't valid, but the decision does not even appear when I start up as say an independent Duke of Aquitaine. I'll keep working at it, but anyone with any ideas would have my greatest admiration. :) I took the code from various events and files, including the vassalage effect from cb_types.txt.

I have in mind to have these decisions available if you are not your liege's de jure vassal, have bad relations, and wish to break off the relationship. In those cases, it's rather a case of paying homage to a powerful monarch and then when his less than inspiring son takes the throne seeing your interests elsewhere. It could also be applied to say Mongol vassalage of petty kingdoms and the defection of much of central Italy to the papacy in the early XII century.
 
If building A is a prerequisite for building B, and building A gets destroyed, what happens to building B? Does it also get destroyed (like vanilla culture buildings if the owner's culture changes) or does it stay?
 
Quick test shows that no. (If prerequisites are not met, building keeps standing. If potentials are not met (the owner's culture thing), building disappears).
 
How can I stop failed independence wars being immediately followed by "wars against the tyranny of..."? I'd like to add a NOT = truce or some such to the requirements for tyranny wars, but don't know what they are called in the CB file. Can anyone help?
 
How can I stop failed independence wars being immediately followed by "wars against the tyranny of..."? I'd like to add a NOT = truce or some such to the requirements for tyranny wars, but don't know what they are called in the CB file. Can anyone help?
Well the war against the tyranny is caused by the king trying to revoke title/imprison the traitor since he can do so for free since the person is a traitor. I think the best way to handle it is to remove the ability to white peace in those wars. (In cb_types.txt add the following to the bid for independence CB under is_independence = yes)
Code:
allow_whitepeace = no