Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

governors elections

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [American Civil War] >> Forge of Freedom: The American Civil War 1861-1865 >> Forge of Freedom - Support >> governors elections Page: [1]
Login
Message << Older Topic   Newer Topic >>
governors elections - 12/9/2006 4:44:25 AM   
SeaWolF K

 

Posts: 143
Joined: 10/1/2003
Status: offline
I have played the game three times now, I have always wondered why I only get elections in Nov 1862. Then I realized looking at the governors screen it states the next election is in 1862 (that would be fine except its Jun 1864 currently). I have saves.
Post #: 1
RE: governors elections - 12/9/2006 6:33:33 PM   
ericbabe


Posts: 11927
Joined: 3/23/2005
Status: offline
The crucial bit of code is:

   int turn = GetTurn();
   int year = StartYear+turn/TurnsPerYear;
   int halfMonth = (turn%TurnsPerYear);

   // is it november?
   if (halfMonth==22)
   {
           if ((year - pState->StartElectionYear)%pState->ElectionPeriodYears == 0)
           {
           // hold election for state
               Acw_StateElection_For(s);
           }
   }

This seems to be OK, but maybe there's a problem in reading the data file that sets all the state election periods to some wrong time.  I'll take a look.  Thanks.



_____________________________



(in reply to SeaWolF K)
Post #: 2
RE: governors elections - 12/9/2006 8:37:30 PM   
SeaWolF K

 

Posts: 143
Joined: 10/1/2003
Status: offline
The code works in Nov 1862 every time (Every state has an election, I know thats not true today but I'm not sure what the election schdule was back then), but there are no more elections after that. And the date for the next election remains as 1862.

(in reply to ericbabe)
Post #: 3
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [American Civil War] >> Forge of Freedom: The American Civil War 1861-1865 >> Forge of Freedom - Support >> governors elections Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.453