My current game (in beta 4 from 29 Nov) was started on December 2nd and I've used 2-12-1700 as in-game starting date as well. Now it's mid-January in the game and nobody yet has asked for salary. My officers say I owe ~8000 to the crew (which seems off, as my crew's monthly salary is only about 2000, but that's a different issue). All I've done in the game was some trading, little smuggling, and running away from pirates. No piracy, no signing articles, no crimes against humanity. No worldmap either, it's an Ironman/Swashbuckler game.
I've checked the value of the LastPayMonth attribute, it is 1 so the game does think I've already paid in January. That's confusing, as the only place where LastPayMonth could have been updated seems to be here (DoDailyUpdates in calendar.c):
I don't really get how LastPayMonth ended up being set to 1 without me seeing that Salary Screen. There are ways, of course, like LastPayMonth being stipped somewhere before the check or CalcSquadronPayment returning zero to LaunchSalaryScreen, but they do not seem very likely. Unfortunately I do not have saves from in-game December.
For now I've called LaunchSalaryScreen from the console... let's see what will happen in February.
I've checked the value of the LastPayMonth attribute, it is 1 so the game does think I've already paid in January. That's confusing, as the only place where LastPayMonth could have been updated seems to be here (DoDailyUpdates in calendar.c):
Code:
if(!CheckAttribute(PChar,"LastPayMonth")) PChar.LastPayMonth = GetDataMonth(); // PB: NOT at the beginning of the game
// KK -->
if(!LAi_IsFightMode(PChar)) //Don't show while in a battle
{
if( sti(PChar.LastPayMonth) != GetDataMonth() )
{
//if( GetDataDay() >= 7 && !sti(PChar.articles) ) //Can be triggered every day of the month in case you had a large cargo shift or something like that.
//{
if(!sti(PChar.articles)) //Check for articles -Levis
{
PChar.LastPayMonth = GetDataMonth();
LaunchSalaryScreen();
}
//}
}
}
For now I've called LaunchSalaryScreen from the console... let's see what will happen in February.