• 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.

jordarkelf

01_TITLE_STRING
164 Badges
Jul 13, 2005
8.040
648
erbkaiser.nl
  • Impire
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Galactic Assault
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Iron Cross
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Lead and Gold
  • Legio
  • Leviathan: Warships
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Victoria 3 Sign Up
  • Crusader Kings II: Sons of Abraham
  • Ancient Space
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • A Game of Dwarves
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • Diplomacy
  • Dungeonland
  • East India Company
  • East India Company Collection
  • Europa Universalis III
Remember the Caliphate of Scotland from your history classes, which was created when the Fatimids were ousted from Egypt during a Crusade, but managed to invade Scotland using their ocean-faring vessels?

No? Neither do I. The muslims simply didn't have boats capable of faring the Atlantic, nor did they have any idea of what Europe really looked like. To them all Europeans were 'Romans' if they came from the ERE, and 'Franks' otherwise.

This event is a rough check if a muslim is in command of an army and is located in any Atlantic seazone, and if so the regiments are silently destroyed. This models that their ships aren't ocean going.

They can still happily rampage around the Mediterranean and even get to the Canarias, but that's it.

To use, paste the below in any event file. For the next DVIP release it will be located at the end of the varia.txt.

Code:
character_event = {	# Prevent muslims on the ocean but allow Mediterranean & inner seas
	id = 23235
	picture = "event_death"
	trigger = {
		condition = { type = ai } #Saves a kajillion cycles, since all muslims are AI anyway
		condition = { type = gender value = male } #Women can't command armies so exclude them to save cycles
		condition = { type = age value = 16 } #Children can't command either
		condition = { type = not value = { type = combat } } #Exclude two things only possible on land -- saves CPU cycles
		condition = { type = not value = { type = siege } }
		condition = { type = command } #Only fire for people in charge of an army
		condition = { type = or  #Muslim rulers or commanders only, they lack boats
			condition = { type = and
				condition = { type = ruler }
				condition = { type = religion value = moslem }
			}
			condition = { type = liege condition = { type = religion value = moslem } }
		}
		condition = { type = location #CSC for location checks... Need to check each individual Atlantic province since all seazones are in the same area/region :(
			condition = { type = or
				condition = { type = province value = 852 }
				condition = { type = province value = 853 }
				condition = { type = province value = 854 }
				condition = { type = province value = 855 }
				condition = { type = province value = 856 }
				condition = { type = province value = 857 }
				condition = { type = province value = 858 }
				condition = { type = province value = 859 }
				condition = { type = province value = 860 }
				condition = { type = province value = 861 }
				condition = { type = province value = 862 }
				condition = { type = province value = 863 }
				condition = { type = province value = 864 }
				condition = { type = province value = 865 }
				condition = { type = province value = 866 }
				condition = { type = province value = 867 }
				condition = { type = province value = 868 }
				condition = { type = province value = 869 }
				condition = { type = province value = 870 }
				condition = { type = province value = 871 }
				condition = { type = province value = 872 }
				condition = { type = province value = 873 }
				condition = { type = province value = 874 }
				condition = { type = province value = 875 }
				condition = { type = province value = 876 }
				condition = { type = province value = 877 }
				condition = { type = province value = 878 }
				condition = { type = province value = 879 }
				condition = { type = province value = 880 }
				condition = { type = province value = 881 }
				condition = { type = province value = 882 }
				condition = { type = province value = 883 }
				condition = { type = province value = 884 }
				condition = { type = province value = 885 }
				condition = { type = province value = 886 }
				condition = { type = province value = 887 }
				condition = { type = province value = 888 }
				condition = { type = province value = 889 }
				condition = { type = province value = 890 }
				condition = { type = province value = 891 }
				condition = { type = province value = 892 }
				condition = { type = province value = 893 }
				condition = { type = province value = 894 }
				condition = { type = province value = 895 }
				condition = { type = province value = 902 }
				condition = { type = province value = 903 }
				condition = { type = province value = 904 }
				condition = { type = province value = 905 }
				condition = { type = province value = 906 }
				condition = { type = province value = 907 }
				condition = { type = province value = 908 }
				condition = { type = province value = 909 }
				condition = { type = province value = 910 }
				condition = { type = province value = 996 }
			}
		}
	}
	mean_time_to_happen = { #Should fire more often to make sure nothing odd happens, but will be too CPU intensive :(
		days = 10
	}	
	immidiate = {
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }		
	}
}

Note: may be changed later, if I find a better way to do this. There is no event text since this AI only anyway.
 
Last edited:
Great, jordakelf!

Just two quick questions from your local total modding idiot: :eek:o

1) This will also wotk with standard Ck patched to 1.05, right?

2) And adding it to a running game will not screw up anything, right?
 
1: It should work on 1.05, but I'm unable to test. The event scripting commands are default CK so I am pretty sure it will just work.
2: The worst thing that can happen is that a muslim already in one of the forbidden seazones is now suddenly stripped of his forces -- but that's the intent anyway.
 
Good call.

Replace the religion trigger:
Code:
condition = { type = or
	condition = { type = and
		condition = { type = ruler }
		condition = { type = religion value = moslem }
	}
	condition = { type = liege condition = { type = religion value = moslem } }
}
This will also take care of Christian commanders of muslim armies (just in case).
 
I've just been led here by this thread: http://forum.paradoxplaza.com/forum/showthread.php?p=11359531&posted=1#post11359531

I'm afraid I'm the dum kid in class because I have no idea how to add this mod to my game? :eek:o

I need to copy all the above text and paste it in a folder/text file, that much I understand. But can you be slightly more precise? What name file/folder? And if it's not empty where do I add the text? Top or bottom?
 
Easy way:
Take any event file in \Crusader Kings\db\events and open it in Notepad. Scroll to the end of the file, and paste the entire contents of the code block from the first post there, then save it.
The next time you load the game it will read this new event and use it. You can use any file really, it doesn't matter much which you use.

Clean way:
If you want to separate mods from the game itself, you can also create a new event file instead:

Save the event in a new text file and call it something like "custom_events.txt", save it in \Crusader Kings\db\events\ folder
Then open \Crusader Kings\db\events.txt and at the end of the file, add the following line:
Code:
event = "db\events\custom_events.txt"

This way you'll have a new event file that the game will read, to which you can add any event mods you want.

---

I just read the other thread, and see you already have implausible vassals... that this mod can't fix, it will just make it less likely to re-occur. You can grab the break free mod from my signature to make it less likely in your game Egypt will keep Norway, I highly recommend using these two event mods together. Installation instructions are in the break_free mod thread.
 
Last edited:
I have Windows 7 which is still very new to me.

Oh I did try to install in a separate folder, but it just wouldn't work. Same on my previous pc which had XP Pro. CK refused to work unless if I let it do default install. Although I'm ignorant with computers I do know how to install a game in a separate folder. Done it with many other games. Only CK won't work :confused: So that's why I have it in Programs folder.

Have to go out the door in few mins. Will try the copy trick when I come back.

I just noticed your extra remark regarding the BreakFree mod you've made. I'll look into that as soon as I get this to work first. But thanks for your help so far - I've given you a thumbs up in this post :)
 
I always get a database mismatch. Heres the file:

Code:
character_event = {	# Prevent muslims on the ocean but allow Mediterranean & inner seas
	id = 23235
	picture = "event_death"
	trigger = {
		condition = { type = ai } #Saves a kajillion cycles, since all muslims are AI anyway
		condition = { type = gender value = male } #Women can't command armies so exclude them to save cycles
		condition = { type = not value = { type = combat } } #Exclude two things only possible on land -- saves CPU cycles
		condition = { type = not value = { type = siege } }
		condition = { type = command } #Only fire for people in charge of an army
		condition = { type = or  #Muslim rulers or commanders only, they lack boats
			condition = { type = or
				condition = { type = and
					condition = { type = ruler }
					condition = { type = religion value = moslem }
			}
			condition = { type = liege condition = { type = religion value = moslem } }
		}
		condition = { type = location #CSC for location checks... Need to check each individual Atlantic province since all seazones are in the same area/region :(
			condition = { type = or
				condition = { type = province value = 852 }
				condition = { type = province value = 853 }
				condition = { type = province value = 854 }
				condition = { type = province value = 855 }
				condition = { type = province value = 856 }
				condition = { type = province value = 857 }
				condition = { type = province value = 858 }
				condition = { type = province value = 859 }
				condition = { type = province value = 860 }
				condition = { type = province value = 861 }
				condition = { type = province value = 862 }
				condition = { type = province value = 863 }
				condition = { type = province value = 864 }
				condition = { type = province value = 865 }
				condition = { type = province value = 866 }
				condition = { type = province value = 867 }
				condition = { type = province value = 868 }
				condition = { type = province value = 869 }
				condition = { type = province value = 870 }
				condition = { type = province value = 871 }
				condition = { type = province value = 872 }
				condition = { type = province value = 873 }
				condition = { type = province value = 874 }
				condition = { type = province value = 875 }
				condition = { type = province value = 876 }
				condition = { type = province value = 877 }
				condition = { type = province value = 878 }
				condition = { type = province value = 879 }
				condition = { type = province value = 880 }
				condition = { type = province value = 881 }
				condition = { type = province value = 882 }
				condition = { type = province value = 883 }
				condition = { type = province value = 884 }
				condition = { type = province value = 885 }
				condition = { type = province value = 886 }
				condition = { type = province value = 887 }
				condition = { type = province value = 888 }
				condition = { type = province value = 889 }
				condition = { type = province value = 890 }
				condition = { type = province value = 891 }
				condition = { type = province value = 892 }
				condition = { type = province value = 893 }
				condition = { type = province value = 894 }
				condition = { type = province value = 895 }
				condition = { type = province value = 902 }
				condition = { type = province value = 903 }
				condition = { type = province value = 904 }
				condition = { type = province value = 905 }
				condition = { type = province value = 906 }
				condition = { type = province value = 907 }
				condition = { type = province value = 908 }
				condition = { type = province value = 909 }
				condition = { type = province value = 910 }
				condition = { type = province value = 996 }
			}
		}
	}
	mean_time_to_happen = { #Should fire more often to make sure nothing odd happens, but will be too CPU intensive :(
		days = 30
	}	
	immidiate = {
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }		
	}
}
 
Last edited:
I tried it myself, on my borther's lap top, it's CK: DV 2.1beta. I`m not sure if it doesn't work, or the MTTH is screwed, but King of Egypt menaged to send his forces to England, Lincoln. The file is in custom_events.txt. :confused:

Can it be that MTTH of 30 days is not enough ?
 
I finally managed to add this mod. Since I already have lots of muslim provinces in Sweden and Norway it won't help much, but if I start a new game I guess I'll feel a difference. Thanks for the help.
 
Doesn't this seem a little extreme? I mean, sure it's bizarre when armies from the Eastern Mediterranean are sailing, but that's true of the Byzantines too, you just don't see them fighting England much because they're Christian. Isn't it reasonable for a strong Muslim power in Spain to sail up the coast and perhaps to England. The fact is, while northern Europeans had better naval technology and possessed natural wind advantages, even they could only sail so far without really expending themselves and risking their fleet. Most crusaders got to the holy lands through primarily marching over land. The only ones who could really sail to the middle-east were the Italians. Instead of just busting the Muslims, instead you should mod the game to cause higher attrition after a certain distance of sailing, so that any country which relies too much on sea transport will see its armies sunk.
 
Noone really had this many ships. What we see in CK, where e.g. Germany just heads south and then immidiately sets sail for Jerusalem from Toscana, should be impossible.
If it were possible, I'd edit it so that any Crusader would need to either go to Genoa, Venice, or one of the other great harbours of the time first (maybe just a province with a grand shipyard), OR be forced to take the western (Spain -> Morocco) or eastern (Byzantium or Georgia) land route, and likewise for the Saracens. That would be a better solution, but is impossible to script with the existing engine.

Making sure that muslims do not take for England without first destroying all of France at least has the advantage of keeping the world a little plausible... after all the muslim hordes spread geographically from Arabia into North Africa, then Spain, then France; and in the east first Mesopotamia, then Persia, then the Eastern Roman Empire, then the Balkans, destroying everything in their path -- not skipping entire countries in a leap-frog way as happens if they are allowed to set sail past Gibraltar.
 
Hmm, would a map which deleted a fair few of the Atlantic sea provinces and coastal provinces to the north of Spain work?

Not that I can make CK maps, but I know it can be done.

Ayeshteni