Page 1 of 2
Repeated Battle Die Rolls
Posted: Sat Jan 02, 2010 3:43 pm
by DCWhitworth
We just had the first PBEM battle go into a second day since 1.07 was released and both days had identical die rolls.
Surely a bug with the pre-rolling ?
RE: Repeated Battle Die Rolls
Posted: Mon Jan 04, 2010 12:32 pm
by MarshallEllis
David:
That certainly would be! Can you post with your save and I will take a look?
RE: Repeated Battle Die Rolls
Posted: Mon Jan 04, 2010 12:55 pm
by DCWhitworth
What would you want for this ? Will the save and pbm files do ? Not sure if I can get hold of a battle file but I will try.
RE: Repeated Battle Die Rolls
Posted: Mon Jan 04, 2010 6:37 pm
by gazfun
Im not as sure as David is
I did test over 4 die rolls and this is the result
Guys I just did a Game test over four battles in the same area, I just kept reloading the game back up for a hot seat game and the dire rolls came like this
Battle 1 France 5,5,6 Austria 6,5,5
Battle 2 France 2,6,6,Austria 4,3,4
Battle 3 France 2,4,7 Austria 3,1,1
Battle 4 France 3,2,4 Austria 5,4,3
Batte 5 France 7,7 Austria 3,6
Battle 6 France 6,3,6 Austria 2,1,2
I have screenpics to back up this test if you want to see them, although there seems a little repeat, but hardly conclusive to say there is a bug.
And yes Napoleon is present on the french side
Also I have loaded a hotseat game where you can just load the file then move the French Troops into Mantua where the autrians are awaiting, I have repeated this move 6 or more times
Ive put an autosave Land file in here for you to have a test for yourself
Thanks
Gaz
RE: Repeated Battle Die Rolls
Posted: Mon Jan 04, 2010 6:57 pm
by DCWhitworth
Are we talking about the same thing here ? This was the two day battle in Warsaw where identical die rolls occurred on day one and day two.
RE: Repeated Battle Die Rolls
Posted: Mon Jan 04, 2010 7:03 pm
by gazfun
ORIGINAL: DCWhitworth
Are we talking about the same thing here ? This was the two day battle in Warsaw where identical die rolls occurred on day one and day two.
Well you are talking about one battle, Im talking about 6 or more and testing whether or not there is a repeat in the program isnt that the same thing? To check if the program is faulty
To have a fair test this should be repeated, correct me if Im wrong
RE: Repeated Battle Die Rolls
Posted: Mon Jan 04, 2010 8:01 pm
by DCWhitworth
ORIGINAL: gazfun
ORIGINAL: DCWhitworth
Are we talking about the same thing here ? This was the two day battle in Warsaw where identical die rolls occurred on day one and day two.
Well you are talking about one battle, Im talking about 6 or more and testing whether or not there is a repeat in the program isnt that the same thing? To check if the program is faulty
To have a fair test this should be repeated, correct me if Im wrong
Well the odds of getting a sequence of six die rolls exactly repeated the next day is somewhere over 40,000 to 1, unfortunately the post detailing this event isn't in the TGHQ forum any more.
RE: Repeated Battle Die Rolls
Posted: Mon Jan 04, 2010 8:11 pm
by gazfun
ORIGINAL: DCWhitworth
ORIGINAL: gazfun
ORIGINAL: DCWhitworth
Are we talking about the same thing here ? This was the two day battle in Warsaw where identical die rolls occurred on day one and day two.
Well you are talking about one battle, Im talking about 6 or more and testing whether or not there is a repeat in the program isnt that the same thing? To check if the program is faulty
To have a fair test this should be repeated, correct me if Im wrong
Well the odds of getting a sequence of six die rolls exactly repeated the next day is somewhere over 40,000 to 1, unfortunately the post detailing this event isn't in the TGHQ forum any more.
Is this the posts you are talking about
http://www.thegeneralshq.org/phpBBForum ... =27&t=1254
I realise the odds of a repeatative die roll but I thought that 6 battle die rolls might be objective thats all
RE: Repeated Battle Die Rolls
Posted: Mon Jan 04, 2010 8:17 pm
by DCWhitworth
ORIGINAL: gazfun
ORIGINAL: DCWhitworth
ORIGINAL: gazfun
Well you are talking about one battle, Im talking about 6 or more and testing whether or not there is a repeat in the program isnt that the same thing? To check if the program is faulty
To have a fair test this should be repeated, correct me if Im wrong
Well the odds of getting a sequence of six die rolls exactly repeated the next day is somewhere over 40,000 to 1, unfortunately the post detailing this event isn't in the TGHQ forum any more.
Is this the posts you are talking about
http://www.thegeneralshq.org/phpBBForum ... =27&t=1254
I realise the odds of a repeatative die roll but I thought that 6 battle die rolls might be objective thats all
It's the last three lines of the last post that I'm talking about, not Allrocco's comment about the Austro/Russian battle in the first post.
The implcation to me is that the pre-generated rolls in PBEM battle files were not refreshed for the second day of fighting and were re-used.
This isn't a question about whether the game die-rolling is properly random.
RE: Repeated Battle Die Rolls
Posted: Mon Jan 04, 2010 8:23 pm
by gazfun
Ok that makes it a little clearer now thanks[:)]
RE: Repeated Battle Die Rolls
Posted: Mon Jan 04, 2010 8:41 pm
by DCWhitworth
Logged as Mantis issue 606 with example files attached.
RE: Repeated Battle Die Rolls
Posted: Tue Jan 05, 2010 12:36 am
by NeverMan
I'm pretty sure DC is talking about SECOND DAY rolls, not battle to battle.
I'm fairly confused why this is such an issue. Random die rolling can be as simple as:
srand(time(NULL));
die = rand % 6+1;
This isn't the first time this has been a problem.
RE: Repeated Battle Die Rolls
Posted: Tue Jan 05, 2010 3:22 am
by ndrose
I recall that there was some discussion about adding pre-generated die rolls for a battle as a security measure to prevent players from reloading to get the rolls they want. Has that now been implemented? If so, it sounds as if this could be an unintended consequence: game generates a sequence of rolls for a given battle, which cannot be changed; but fails to distinguish for that purpose between day 1 and day 2 of the same battle?
RE: Repeated Battle Die Rolls
Posted: Tue Jan 05, 2010 6:51 am
by DCWhitworth
ORIGINAL: ndrose
I recall that there was some discussion about adding pre-generated die rolls for a battle as a security measure to prevent players from reloading to get the rolls they want. Has that now been implemented? If so, it sounds as if this could be an unintended consequence: game generates a sequence of rolls for a given battle, which cannot be changed; but fails to distinguish for that purpose between day 1 and day 2 of the same battle?
That's exactly what I intended to say. [:)]
RE: Repeated Battle Die Rolls
Posted: Tue Jan 05, 2010 12:36 pm
by MarshallEllis
This could be a problem with the pre-roll code which just started in 1.07!
RE: Repeated Battle Die Rolls
Posted: Tue Jan 19, 2010 11:57 pm
by Dancing Bear
Was this a confirmed bug?
RE: Repeated Battle Die Rolls
Posted: Wed Jan 20, 2010 10:50 am
by MarshallEllis
Correct.
RE: Repeated Battle Die Rolls
Posted: Thu Feb 04, 2010 11:40 pm
by GMeyer
Hi Marshall,
Any idea when this particular bug will be patched? I assume its coming out with .08, this that correct?
RE: Repeated Battle Die Rolls
Posted: Fri Feb 05, 2010 6:21 am
by DCWhitworth
ORIGINAL: GMeyer
Hi Marshall,
Any idea when this particular bug will be patched? I assume its coming out with .08, this that correct?
Mantis bug 606, listed as fixed in v1.08
RE: Repeated Battle Die Rolls
Posted: Fri Feb 05, 2010 11:00 am
by MarshallEllis
What he said

Thanks David!