As i think it's better to proceed step by step to avoid having too many bugs, i have managed to "extract" the period flags mod of the DR and updating it for Build 14 9.5 patch 1.
For the moment, it seems to work for me so i puted it on my ftp folder for those who would like to test it. It is made for Build 14 9.5 patch 1 but with some little differences :
The ships_init.c file is the one of the DR (build 9.5 version) so the last ship(s) who were added by patch 1 are not included. The heavytrader1, 2, 3, 4 are not included too just because DR seems to remove them but it add 4 warGalleons instead
I noticed that in Battle_interface\Flags.c, in the SetFortFlag function, a section of code cause CTDs. I have outcommented it and the CTDs seems to have desappear :
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void SetFortFlag(ref rModel)
{
if (!CheckAttribute(rModel, "fortcmdridx")) return;
int idx = sti(rModel.fortcmdridx);
if (idx < 0) return;
ref chr = GetCharacter(idx);
/* // Screwface : this section of code seems cause CTDs
SendMessage(&Flag, "li", MSG_FLAG_DEL_GROUP, &rModel);
SendMessage(&MerchantFlag, "li", MSG_FLAG_DEL_GROUP, &rModel);
SendMessage(&PirateFlag, "li", MSG_FLAG_DEL_GROUP, &rModel);
SendMessage(&PersonalFlag, "li", MSG_FLAG_DEL_GROUP, &rModel);
SendMessage(&FortFlag, "li", MSG_FLAG_DEL_GROUP, &rModel);
*/
int iNation = sti(chr.nation);
switch (iNation) {
case PIRATE:
SendMessage(&PirateFlag, "lil", MSG_FLAG_INIT, &rModel, iNation);
break;
case PERSONAL_NATION:
SendMessage(&PersonalFlag, "lil", MSG_FLAG_INIT, &rModel, iNation);
break;
// default:
SendMessage(&FortFlag, "lil", MSG_FLAG_INIT, &rModel, iNation);
}
}<!--c2--></div><!--ec2-->
I also noticed that in Nation relation interface, the pirate flag was missing. I fixed it in the picture.ini
This is for testing so be sure to make backup of your files before. I hope i have forgotten nothing <img src="style_emoticons/<#EMO_DIR#>/334_flashing.gif" style="vertical-align:middle" emoid=":flashing:" border="0" alt="334_flashing.gif" />
Of course a new game is required !
For the moment, it seems to work for me so i puted it on my ftp folder for those who would like to test it. It is made for Build 14 9.5 patch 1 but with some little differences :
The ships_init.c file is the one of the DR (build 9.5 version) so the last ship(s) who were added by patch 1 are not included. The heavytrader1, 2, 3, 4 are not included too just because DR seems to remove them but it add 4 warGalleons instead
I noticed that in Battle_interface\Flags.c, in the SetFortFlag function, a section of code cause CTDs. I have outcommented it and the CTDs seems to have desappear :
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void SetFortFlag(ref rModel)
{
if (!CheckAttribute(rModel, "fortcmdridx")) return;
int idx = sti(rModel.fortcmdridx);
if (idx < 0) return;
ref chr = GetCharacter(idx);
/* // Screwface : this section of code seems cause CTDs
SendMessage(&Flag, "li", MSG_FLAG_DEL_GROUP, &rModel);
SendMessage(&MerchantFlag, "li", MSG_FLAG_DEL_GROUP, &rModel);
SendMessage(&PirateFlag, "li", MSG_FLAG_DEL_GROUP, &rModel);
SendMessage(&PersonalFlag, "li", MSG_FLAG_DEL_GROUP, &rModel);
SendMessage(&FortFlag, "li", MSG_FLAG_DEL_GROUP, &rModel);
*/
int iNation = sti(chr.nation);
switch (iNation) {
case PIRATE:
SendMessage(&PirateFlag, "lil", MSG_FLAG_INIT, &rModel, iNation);
break;
case PERSONAL_NATION:
SendMessage(&PersonalFlag, "lil", MSG_FLAG_INIT, &rModel, iNation);
break;
// default:
SendMessage(&FortFlag, "lil", MSG_FLAG_INIT, &rModel, iNation);
}
}<!--c2--></div><!--ec2-->
I also noticed that in Nation relation interface, the pirate flag was missing. I fixed it in the picture.ini
This is for testing so be sure to make backup of your files before. I hope i have forgotten nothing <img src="style_emoticons/<#EMO_DIR#>/334_flashing.gif" style="vertical-align:middle" emoid=":flashing:" border="0" alt="334_flashing.gif" />
Of course a new game is required !