Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Bar » Problem with SAH - IF you are the last who submit
Problem with SAH - IF you are the last who submit Fri, 04 September 2009 10:30 Go to next message
ccmaster is currently offline ccmaster

 
Lt. Commander
Dueling Club Administrator

Messages: 985
Registered: November 2002
Location: Germany

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 Sad



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 Go to previous messageGo to next message
Dogthinkers is currently offline Dogthinkers

 
Commander

Messages: 1316
Registered: August 2003
Location: Hiding from Meklar
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 19:40 Go to previous messageGo to next message
Micha

 

Messages: 2342
Registered: November 2002
Location: Belgium GMT +1
Heh, happend to me more than once. Smile If it's not a fast paced gen, than you can ask Ron to delete the .x file. With 24hr gens though Ron will probably be too late.

The Must Know section is (except for the serial thread) for what you need to know when playing Stars!

It might however be a good idea to collect "must know" information about playing/hosting on SAH, that way it can fit all in one topic.
For now best place would be IMHO a sticky warning in subforum 'Questions about Stars! AutoHost' ... or possibly in The Bar.

mch

Report message to a moderator

Re: Problem with SAH - IF you are the last who submit Fri, 04 September 2009 20:46 Go to previous messageGo to next message
bretter is currently offline bretter

 
Petty Officer 3rd Class

Messages: 40
Registered: April 2006
Location: Texas

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 Go to previous messageGo to next message
AlexTheGreat is currently offline AlexTheGreat

 
Lieutenant

Messages: 661
Registered: May 2006
Location: Sydney, Australia
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 Go to previous messageGo to next message
Dogthinkers is currently offline Dogthinkers

 
Commander

Messages: 1316
Registered: August 2003
Location: Hiding from Meklar
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 Smile

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 Go to previous message
leadgend is currently offline 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 Smile

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

Previous Topic: Bug Allowing Free Starbase Upgrades - fix?
Next Topic: Openwarx, Needs file checker in order to continue.
Goto Forum:
  


Current Time: Sat May 04 18:00:16 EDT 2024