Repeated Battle Die Rolls

Post bug reports and ask for support here.

Moderator: MOD_EIA

User avatar
DCWhitworth
Posts: 676
Joined: Sat Dec 15, 2007 1:20 am
Location: Norwich, England

Repeated Battle Die Rolls

Post 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 ?
Regards
David
User avatar
datacollectioncenter
Posts: 5630
Joined: Tue Oct 02, 2001 3:00 pm
Location: Dallas

RE: Repeated Battle Die Rolls

Post by datacollectioncenter »

David:

That certainly would be! Can you post with your save and I will take a look?
Thank you

Marshall Ellis
Outflank Strategy War Games


User avatar
DCWhitworth
Posts: 676
Joined: Sat Dec 15, 2007 1:20 am
Location: Norwich, England

RE: Repeated Battle Die Rolls

Post 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.
Regards
David
User avatar
gazfun
Posts: 734
Joined: Wed Jun 30, 2004 9:59 pm
Location: Australia

RE: Repeated Battle Die Rolls

Post 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
Attachments
autosave Land.zip
(149 Bytes) Downloaded 9 times
User avatar
DCWhitworth
Posts: 676
Joined: Sat Dec 15, 2007 1:20 am
Location: Norwich, England

RE: Repeated Battle Die Rolls

Post 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.
Regards
David
User avatar
gazfun
Posts: 734
Joined: Wed Jun 30, 2004 9:59 pm
Location: Australia

RE: Repeated Battle Die Rolls

Post 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
User avatar
DCWhitworth
Posts: 676
Joined: Sat Dec 15, 2007 1:20 am
Location: Norwich, England

RE: Repeated Battle Die Rolls

Post 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.
Regards
David
User avatar
gazfun
Posts: 734
Joined: Wed Jun 30, 2004 9:59 pm
Location: Australia

RE: Repeated Battle Die Rolls

Post 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
User avatar
DCWhitworth
Posts: 676
Joined: Sat Dec 15, 2007 1:20 am
Location: Norwich, England

RE: Repeated Battle Die Rolls

Post 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.
Regards
David
User avatar
gazfun
Posts: 734
Joined: Wed Jun 30, 2004 9:59 pm
Location: Australia

RE: Repeated Battle Die Rolls

Post by gazfun »

Ok that makes it a little clearer now thanks[:)]
User avatar
DCWhitworth
Posts: 676
Joined: Sat Dec 15, 2007 1:20 am
Location: Norwich, England

RE: Repeated Battle Die Rolls

Post by DCWhitworth »

Logged as Mantis issue 606 with example files attached.
Regards
David
NeverMan
Posts: 1712
Joined: Tue Feb 24, 2004 1:52 am

RE: Repeated Battle Die Rolls

Post 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.
ndrose
Posts: 612
Joined: Fri Oct 13, 2006 4:07 pm

RE: Repeated Battle Die Rolls

Post 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?
User avatar
DCWhitworth
Posts: 676
Joined: Sat Dec 15, 2007 1:20 am
Location: Norwich, England

RE: Repeated Battle Die Rolls

Post 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. [:)]
Regards
David
User avatar
datacollectioncenter
Posts: 5630
Joined: Tue Oct 02, 2001 3:00 pm
Location: Dallas

RE: Repeated Battle Die Rolls

Post by datacollectioncenter »

This could be a problem with the pre-roll code which just started in 1.07!
Thank you

Marshall Ellis
Outflank Strategy War Games


Dancing Bear
Posts: 1003
Joined: Wed Feb 20, 2008 11:16 pm

RE: Repeated Battle Die Rolls

Post by Dancing Bear »

Was this a confirmed bug?
User avatar
datacollectioncenter
Posts: 5630
Joined: Tue Oct 02, 2001 3:00 pm
Location: Dallas

RE: Repeated Battle Die Rolls

Post by datacollectioncenter »

Correct.
Thank you

Marshall Ellis
Outflank Strategy War Games


GMeyer
Posts: 71
Joined: Sat Jan 24, 2009 4:24 am
Contact:

RE: Repeated Battle Die Rolls

Post by GMeyer »

Hi Marshall,
Any idea when this particular bug will be patched?  I assume its coming out with .08, this that correct?
George S. Meyer
User avatar
DCWhitworth
Posts: 676
Joined: Sat Dec 15, 2007 1:20 am
Location: Norwich, England

RE: Repeated Battle Die Rolls

Post 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
Regards
David
User avatar
datacollectioncenter
Posts: 5630
Joined: Tue Oct 02, 2001 3:00 pm
Location: Dallas

RE: Repeated Battle Die Rolls

Post by datacollectioncenter »

What he said :-) Thanks David!
Thank you

Marshall Ellis
Outflank Strategy War Games


Post Reply

Return to “Tech Support”