Mod troubleshooting
Here we will describe the most likely solutions for problems that can be encountered with mods. Please use the discussion page if none of these things fix your problem.
Buttons moved or have the wrong text
Main page buttons
Things to try
- Combine all .csv text into one .csv file
in order to troubleshoot this problem you should make a backup of your .csv files and then copy all of the text from all of your .csv files and place all the text into one .csv file. If you have not changed anything in the text.csv file then do not include it in your mod. Test the mod now and see if it still has the button text and/or relocation problem. If you have no more problems then continue reading. At this point you can either call this problem fixed or gradually try to make new .csv files and move all the text of each category back into the new .csv files. test run the mod each time you create a new .csv file. If you have the problem again you will know which new file you made contains the text that is the problem.
Custom country not playable
Did you combine all the data in the common folder?
Data in the .txt files such as governments.txt, religion.txt, countries.txt, and country colors.txt must only contain data that is relevant to that type. An example of this would be that you cannot place a new government type in the religion.txt file or a newly made file, it must be in governments.txt. Country_colors.txt does not have to have additions in it.
Did you make all the correct additions for the new country?
- The file common\countries.txt must contain the new country.
- A new .txt file in the common\countries folder must be made for the new country.
- New countries should have a flag file in the gfx\flags folder. You can just copy one of the original files and rename it to fit your new nation tag until you can get one made. This file needs to be a .tga file.
- An entry in the gfx\flags\flagfiles.txt for your new country.
- The History\countries folder should contain a new .txt file for your new country.
- Your new country must have entries in a province file in the history\provinces folder in order for it to be played from the beginning of the game. these entires are owner = tag and controller = tag. You should also add add_core = tag and discovered_by = tag. only make owner and controller code for provinces you want the country to own from the beginning of the game.
- The new country must have additions in a .csv file in the localisation folder.
The default game runs fine but the mod has a CTD
CTD Score page
When you click resign and see the score page the game crashes to the desktop when you click exit from the score page.
- Syntax errors in event files can cause this problem.
The game will play and run fine until you get to the score page or main menu. If you encounter an event or two that end up getting their buttons mixed together then this is a sign that it is a syntax error where you left out one of these { }. In order to troubleshoot this problem you should make a backup of your event files and then remove all events from the mod. Test the mod now and see if it still crashes. If you have no crash then continue reading. Take all the events that are in the same category type and place them in a new .txt file with a new name. Gradually replace these new event files in the mod and test run the mod each time you place them back into the mod. Eventually you will have a crash again. This will tell you which event file has the problem. This is also a good time to reset your event id codes so they are in order and to make sure none of them are used more than once.
When you click on the exit button from the main menu the game crashes to the desktop.
CTD loading game
The game crashes to the desktop before reaching the main menu.
- Syntax errors in event files can cause this problem.
In order to troubleshoot this problem you should make a backup of your event files and then remove all events from the mod. Test the mod now and see if it still crashes. If you have no crash then continue reading. Take all the events that are in the same category type and place them in a new .txt file with a new name. Gradually replace these new event files in the mod and test run the mod each time you place them back into the mod. Eventually you will have a crash again. This will tell you which event file has the problem. This is also a good time to reset your event id codes so they are in order and to make sure none of them are used more than once.