Side switching from Allied to Japanese during single player game

Post bug reports here.

Moderator: Tankerace

Post Reply
Badger
Posts: 29
Joined: Fri Aug 16, 2002 1:13 am
Location: Colorado

Side switching from Allied to Japanese during single player game

Post by Badger »

I am playing a game as the Allies against the AI. When I end the Orders phase and then go thru the Execution phase, the next turn starts with me as the Japanese player. I have tried it a couple of times, and it happens the same way every time. I will send a copy of the save game file to Ross Moorhouse.
Liberals believe that the further a political philosophy is from reality, the more morally pure it is.
Badger
Posts: 29
Joined: Fri Aug 16, 2002 1:13 am
Location: Colorado

Post by Badger »

An update -

I ran the execution phase three times and got the same results every time. At the end of the execution phase, I had switched to the Japanese side. I saved the game and rebooted my computer to see if the problem would occur again. Unfortunately it did not. Also, when I load the saved game file that I saved after I had switched to the Japanese side, the game comes back with me as the Allied side.

This is weird enough, but there is something else. Now, when I run the execution phase from the saved game before the side switch occurred, the combat results are different from when the side switch occurred. Also, if I quit the game and reload the saved game file, the combat report is different the first three times I run the execution phase. After the third reload, the combat report is the same each time.

I will send both files to Ross Moorhouse. If you need any additional information, let me know.
Liberals believe that the further a political philosophy is from reality, the more morally pure it is.
Badger
Posts: 29
Joined: Fri Aug 16, 2002 1:13 am
Location: Colorado

Post by Badger »

Final update.

I can recreate this side switching bug every time. After I load a PBEM save I have and then load my single player game, I switch sides every time I run the executation phase.
Liberals believe that the further a political philosophy is from reality, the more morally pure it is.
XPav
Posts: 549
Joined: Wed Jul 10, 2002 2:25 am
Location: Northern California
Contact:

Post by XPav »

Send it to Matrix (instructions are in the top of the thread list).
I love it when a plan comes together.
Badger
Posts: 29
Joined: Fri Aug 16, 2002 1:13 am
Location: Colorado

Post by Badger »

I sent the file to Ross Moorhouse, but I got an auto reply that he was out of the office on vacation until September 24th. So I also sent the files to erikr@matrixgames.com and jabgamer@2by3games.com as Mike Wood recommended in a similar thread about side switching in PBEM games.
Liberals believe that the further a political philosophy is from reality, the more morally pure it is.
User avatar
Joel Billings
Posts: 33613
Joined: Wed Sep 20, 2000 8:00 am
Location: Santa Rosa, CA
Contact:

Post by Joel Billings »

This is what I got from Mike to explain your situation:

When you play a PBEM game and do not have the settings set to "Human vs. Human", the program sets it automatically. If you then wish to play a "Human vs. Computer" or some other kind of game, you need to change the settings in the main control panel.
All understanding comes after the fact.
-- Soren Kierkegaard
Wilhammer
Posts: 401
Joined: Fri May 24, 2002 4:00 pm
Location: Out in the Sticks of Rockingham County, North Caro
Contact:

Post by Wilhammer »

Yes, I always thought this was a bug, until I realized in Human vs. AI, whenever you start a saved game, the human player is defaulted to the Allied side.

It is a pain. It is another irritating mouse click you have to go through to enjoy this fine game.
Badger
Posts: 29
Joined: Fri Aug 16, 2002 1:13 am
Location: Colorado

Post by Badger »

That explains why I switched sides to the Japanese, but it does not explain why the combat results were different.

If I loaded a PBEM game first and then ran the execution phase, the combat results were different then when I did not load the PBEM game first.

Also, if I ran the execution phase without loading the PBEM game first, and then loaded the same game again and ran the execution phase again, the combat results were different than the first time I ran the execution phase.

I thought the random number generator was seeded at the start of the game, and that no matter how many times you ran an execution phase, the combat results would always be the same. I can get three different results from the same execution phase depending what I do before I run the execution phase. Interestingly though, the three different combat results are exactly repeatable.
Liberals believe that the further a political philosophy is from reality, the more morally pure it is.
HARD_SARGE
Posts: 168
Joined: Mon May 27, 2002 9:58 am
Location: Cleveland, Ohio

Post by HARD_SARGE »

Hi Badger

I thought the random number generator was seeded at the start of the game, and that no matter how many times you ran an execution phase, the combat results would always be the same.

ah I think you misunderstand what will happen in the turn, the seed is indeed set, and the turn should run close to what happened each time, but it is still a fresh turn, that shell that went though the Ammo Mag and blew the ship apart, this turn, may still hit, but only take out the cooks stove the next time around, what happended during the turn should happen each time, but the outcome may/should be different each time around

HARD_Sarge
XPav
Posts: 549
Joined: Wed Jul 10, 2002 2:25 am
Location: Northern California
Contact:

Post by XPav »

Originally posted by Badger
I can get three different results from the same execution phase depending what I do before I run the execution phase. Interestingly though, the three different combat results are exactly repeatable.
Of course. If you scuttled all your ships, would you expect the combat to be the same?

I don't mean to pick on you here, but there is massive confusion in any forum (like the Civ3 forum) about exactly what random number seeding can do.

Think of it this way.

A computer doesn't have random numbers.
Imagine a series of fixed numbers infinitely long.
Imagine that a computer has a whole bunch of these series.
Now, pick one of these series and remember which one it is and which number you're looking at. Each time you need a "random number", you get the next number from the series.

(Now, there are ways to get better random numbers on PCs, but they're mainly used for important things, like encryption purposes).
I love it when a plan comes together.
Yamamoto
Posts: 742
Joined: Wed Nov 21, 2001 10:00 am
Location: Miami, Fl. U.S.A.

Post by Yamamoto »

I liked the way the Atari 800 created random numbers. It read the static charge on a piece of internal circuitry and took like the fourth or fifth decimal place value. It was small enough that it was always changing, hence random. I hate this table lookup business. Even worse is using the pc clock. I remember one game that did that. My friend’s clock wasn’t working and he complained that he ALWAYS got the same result.

In UV, aren’t the random numbers set at the beginning of the TURN and not the beginning of the GAME, as mentioned above in this thread? It is my understanding that the random numbers are generated when the Allied player saves his turn.

Yamamoto
User avatar
denisonh
Posts: 2083
Joined: Fri Dec 21, 2001 10:00 am
Location: Upstate SC

Random Numbers

Post by denisonh »

Every quality random number generator works of a sequence of uniformly distributed numbers between 0 and 1. That is the heart of every random genrator.

The way that they become random is the way the seed is generated (and if necessary, transformed into a different distribution).

If you don't use a base list, then you are not guarenteeing a uniform distribution (important).

Now the sequence should have something very large, say 10 to the 32nd power numbers to prevent repeating of sequences.
"Life is tough, it's even tougher when you're stupid" -SGT John M. Stryker, USMC
Post Reply

Return to “Tech Support”