Repeated Battle Die Rolls
Moderator: MOD_EIA
- DCWhitworth
- Posts: 676
- Joined: Sat Dec 15, 2007 1:20 am
- Location: Norwich, England
Repeated Battle Die Rolls
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 ?
Surely a bug with the pre-rolling ?
Regards
David
David
- datacollectioncenter
- Posts: 5630
- Joined: Tue Oct 02, 2001 3:00 pm
- Location: Dallas
RE: Repeated Battle Die Rolls
David:
That certainly would be! Can you post with your save and I will take a look?
That certainly would be! Can you post with your save and I will take a look?
- DCWhitworth
- Posts: 676
- Joined: Sat Dec 15, 2007 1:20 am
- Location: Norwich, England
RE: Repeated Battle Die Rolls
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.
Regards
David
David
RE: Repeated Battle Die Rolls
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
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
- Attachments
-
- autosave Land.zip
- (149 Bytes) Downloaded 9 times
- DCWhitworth
- Posts: 676
- Joined: Sat Dec 15, 2007 1:20 am
- Location: Norwich, England
RE: Repeated Battle Die Rolls
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.
Regards
David
David
RE: Repeated Battle Die Rolls
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 faultyORIGINAL: 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.
To have a fair test this should be repeated, correct me if Im wrong
- DCWhitworth
- Posts: 676
- Joined: Sat Dec 15, 2007 1:20 am
- Location: Norwich, England
RE: Repeated Battle Die Rolls
ORIGINAL: gazfunWell 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 faultyORIGINAL: 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.
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.
Regards
David
David
RE: Repeated Battle Die Rolls
Is this the posts you are talking aboutORIGINAL: DCWhitworth
ORIGINAL: gazfunWell 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 faultyORIGINAL: 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.
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.
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
- DCWhitworth
- Posts: 676
- Joined: Sat Dec 15, 2007 1:20 am
- Location: Norwich, England
RE: Repeated Battle Die Rolls
ORIGINAL: gazfun
Is this the posts you are talking aboutORIGINAL: 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.
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.
Regards
David
David
RE: Repeated Battle Die Rolls
Ok that makes it a little clearer now thanks[:)]
- DCWhitworth
- Posts: 676
- Joined: Sat Dec 15, 2007 1:20 am
- Location: Norwich, England
RE: Repeated Battle Die Rolls
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.
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
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?
- DCWhitworth
- Posts: 676
- Joined: Sat Dec 15, 2007 1:20 am
- Location: Norwich, England
RE: Repeated Battle Die Rolls
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. [:)]
Regards
David
David
- datacollectioncenter
- Posts: 5630
- Joined: Tue Oct 02, 2001 3:00 pm
- Location: Dallas
RE: Repeated Battle Die Rolls
This could be a problem with the pre-roll code which just started in 1.07!
-
Dancing Bear
- Posts: 1003
- Joined: Wed Feb 20, 2008 11:16 pm
RE: Repeated Battle Die Rolls
Was this a confirmed bug?
- datacollectioncenter
- Posts: 5630
- Joined: Tue Oct 02, 2001 3:00 pm
- Location: Dallas
RE: Repeated Battle Die Rolls
Hi Marshall,
Any idea when this particular bug will be patched? I assume its coming out with .08, this that correct?
Any idea when this particular bug will be patched? I assume its coming out with .08, this that correct?
George S. Meyer
- DCWhitworth
- Posts: 676
- Joined: Sat Dec 15, 2007 1:20 am
- Location: Norwich, England
RE: Repeated Battle Die Rolls
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
Regards
David
David
- datacollectioncenter
- Posts: 5630
- Joined: Tue Oct 02, 2001 3:00 pm
- Location: Dallas
RE: Repeated Battle Die Rolls
What he said
Thanks David!


