Page 1 of 1

alliance check box

Posted: Mon Jul 27, 2009 12:10 am
by ndrose
There might be either a small bug or an intentional change in the way the alliance check box works. Playing an AI game, I noticed that I wasn't getting any allies though I had boxes checked. Looking at the log, I only saw one month in which there was an entry saying I had requested an alliance and a die roll reported.

I found that if I unchecked and rechecked the box, I would get a die roll (and possible alliance) in the next diplomatic phase, but it wouldn't try again if it failed that month. (Or else it was trying behind the scenes and failing, but that seems unlikely, since many months went by without England accepting an Austrian alliance.) If I again unchecked and rechecked, it would try again.

RE: alliance check box

Posted: Mon Jul 27, 2009 4:02 pm
by NeverMan
Sounds like a flag is not being reset or re-tested.

For PBEM games this might not be a problem if marshall is comparing the two MPs every Dip Phase but for the AI if he is taking the method of "why check if the non-AI isn't asking" then it would really only show up in the AI games.... interesting. Though the second is faster, it's not that much faster (and this probably doesn't take much time anyway considering the search space is so small).... he probably should be using the same algorithm for both, doesn't sound like he is though.

RE: alliance check box

Posted: Tue Jul 28, 2009 11:37 am
by MarshallEllis
It looks as though the code is the same for both. I may not be resetting the check box based on the attempt BUT I thought I coded this to keep attempting as opposed to resetting after a denial??? I need to relook at it and see...