Problem with SAH - IF you are the last who submit |
Fri, 04 September 2009 10:30 |
|
|
Hi All ,
Important to know.
If you are the ast player who submit a turn the following thing could happen.
If you submit a 2. X-File (maybe you forgot a important thing) fast after the other file at the same time the Page genes.
Every think looks normal but !
After 3 min you will see that you have submit a new turn , if you check it but this is the 2. X-File of the last turn.
So it could be that the next turn will be generated without a turn of you because the page thinks your turn is in.
Normal you could not submit "old" turns exept this way.
Tested it my self in the game openwarX turn 2416--> 17
ccmaster
PS : maybe someone could move this to the Stars Must know Section
Report message to a moderator
|
|
|
Re: Problem with SAH - IF you are the last who submit |
Fri, 04 September 2009 12:48 |
|
|
Yes, this is a nasty little problem. You have to be carefull when doing last minute uploads like this. When it happens... Better craft a simple turn for the new year and upload it so you at least have something up if everyone else is prompt...
Report message to a moderator
|
|
|
|
Re: Problem with SAH - IF you are the last who submit |
Fri, 04 September 2009 20:46 |
|
|
I guess I don't understand the problem. My understanding is:
1. Last person to upload does the upload.
2. Unless on strict schedule, SAH does the immediate turn generation to the new year.
3. If you upload another turn while the next year gen is happening, the upload code accepts it, but is too late for the actual gen. So, the page might show the new upload file, but not actually use it.
Is that what you describe? Or what am I missing?
Thanks
Report message to a moderator
|
|
|
Re: Problem with SAH - IF you are the last who submit |
Fri, 04 September 2009 21:44 |
|
|
bretter wrote on Fri, 04 September 2009 20:46 | I guess I don't understand the problem. My understanding is:
1. Last person to upload does the upload.
2. Unless on strict schedule, SAH does the immediate turn generation to the new year.
3. If you upload another turn while the next year gen is happening, the upload code accepts it, but is too late for the actual gen. So, the page might show the new upload file, but not actually use it.
Is that what you describe? Or what am I missing?
Thanks
|
If you are the last to submit the game gens. However, the game page only update every 2-3 minutes so you might reasonably believe that you can do a last minute adjusted turn (in those 2-3 minutes). AFAIK The script normally rejects a turn if it's for the wrong year but, in the time between the game genning & the game page updating, it seems that it accepts the updated turn, does not recognise that it's for the wrong year & treats the new turn as being for the new year.
If that happens the diamond indicating status of your turn will be green (turn submitted) as soon as the gen occurs.
Report message to a moderator
|
|
|
Re: Problem with SAH - IF you are the last who submit |
Sat, 05 September 2009 04:30 |
|
|
bretter wrote on Sat, 05 September 2009 10:46 | I guess I don't understand the problem. My understanding is:
1. Last person to upload does the upload.
2. Unless on strict schedule, SAH does the immediate turn generation to the new year.
3. If you upload another turn while the next year gen is happening, the upload code accepts it, but is too late for the actual gen. So, the page might show the new upload file, but not actually use it.
Is that what you describe? Or what am I missing?
|
Essentially yes. The problem can happen on a strict schedule too, if you upload a few seconds too late.
I doubt it'd be very hard to fix from the server side. I think turn processing goes something vaguely like this (I'm guessing):
(1) AH back end notices it's time to gen the turn
(2) AH moves the uploaded x files to a working directory for that game
(3) AH gens the turn
(4) AH copies the m files to the web front end and emails them
(5) AH updates the game page
The problem comes because you still can upload a turn during (3), (4) at which time the front end is still expecting turns for the current year. This is only a few seconds at most, but it's long enough I've encountered it a fair few times myself
Solution would simply be to add a step
(4b) Delete any x files that have arrived in the meantime.
Report message to a moderator
|
|
|
Re: Problem with SAH - IF you are the last who submit |
Mon, 30 November 2009 00:08 |
|
leadgend | | Civilian | Messages: 1
Registered: September 2009 Location: Melbourne | |
|
Dogthinkers wrote on Sat, 05 September 2009 18:30 |
bretter wrote on Sat, 05 September 2009 10:46 | I guess I don't understand the problem. My understanding is:
1. Last person to upload does the upload.
2. Unless on strict schedule, SAH does the immediate turn generation to the new year.
3. If you upload another turn while the next year gen is happening, the upload code accepts it, but is too late for the actual gen. So, the page might show the new upload file, but not actually use it.
Is that what you describe? Or what am I missing?
|
Essentially yes. The problem can happen on a strict schedule too, if you upload a few seconds too late.
I doubt it'd be very hard to fix from the server side. I think turn processing goes something vaguely like this (I'm guessing):
(1) AH back end notices it's time to gen the turn
(2) AH moves the uploaded x files to a working directory for that game
(3) AH gens the turn
(4) AH copies the m files to the web front end and emails them
(5) AH updates the game page
The problem comes because you still can upload a turn during (3), (4) at which time the front end is still expecting turns for the current year. This is only a few seconds at most, but it's long enough I've encountered it a fair few times myself
Solution would simply be to add a step
(4b) Delete any x files that have arrived in the meantime.
|
This happens a lot when the gen freezes the SAH (at step 3 above) and the message appears telling the players they can still submit turns. Anything loaded during the freeze is ignored for the gen when the SAH is unfrozen and stays around for the next gen unless overwritten by a later upload by the player. If the player doesn't upload in time their turn file is the wrong year and seems to cause the gen to freeze the SAH again!
Report message to a moderator
|
|
|