Thank you for the reponse!
First, the despot of the Maghreb is independent, not my tributary.
Then the green color around its territory is related to the fact that I have not finished define all the provinces, but the game considers them for now as deserts and fills them with the color of the nearest state.
Also, all the characters that the player plays (I tried with several) can not declare war, even when I have claims. AI can do it without a problem.
(Sorry if my answer is not very comprehensive, I do not speak English very well )
That's very weird.
As far as I'm aware, the
only way to block the "declare war" button is if it's absolutely and completely invalid. (Eg: Declaring war on your own vassals, or on your own tributaries, or on non-independent characters, etc.) (If someone is aware of a way to block all war declarations via mods, please say something!)
It is possible that all of the AI war declarations are caused by some other method where the AI doesn't need to "press" the "declare war" button. (Eg: Decisions, events, plots, ambitions.)
---
My best guess at the moment is that you have a strange syntax error in your mod which is causing strange behaviour in-game.
The best way to check for this is by installing and running
the Validator. It will probably throw a LOT of "history" errors (because you haven't populated the whole map), so I suggest you focus on fixing all of the other errors it finds before looking at the history.
---
Alternatively, there is a chance that the problem is that you have only partly populated the history. (I
think CK2 can
probably work properly with only partial history, but I'm not
sure.)
To test this, you could create a temporary version of your mod which doesn't change the base game history, and see if the problem still exists. If the problem goes away when you use 100% base-game-history... well... it's your history files that are the problem, somehow.