Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » Questions about Stars! AutoHost » Request for comment
Request for comment Tue, 11 March 2003 17:17 Go to next message
Ron is currently offline Ron

 
Commander
Forum Administrator
Stars! AutoHost Administrator

Messages: 1231
Registered: October 2002
Location: Collegedale, TN
Some game hosts on AutoHost have questioned why AutoHost will sometimes skip the next scheduled gen time after it generates early.

I'll try to explain why and my rational, then ask for your comments.

If not using 'strict schedule', if all active players upload their .x files before the scheduled gen time, AutoHost will gen the turn right after the last active player uploads.

Consider the following:
1. 'stict schedule' NOT checked
2. Schedule set to gen every day at 18:00

Imagine if all active players uploaded their .x files before 18:00, say 15:00... AutoHost gens the turn early at 15:00. Thats fine.
But now what? You obviously don't want AutoHost to now gen at the scheduled 18:00 time, 3 hours from the last gen. Many players may not have had time to play their turn. What to do, where to draw the line?

I don't know. That is why I have AutoHost skip the next scheduled turn gen.

There is a way to manually 'reset' the counter AutoHost uses... In Host Utility, make any small change to the turn gen schedule, save it, then change it back again and save it. That should 'reset' the 'time of last turn gen/time of next turn gen' counter that AutoHost saves for that game.

Stars! AutoHost functioned quite well for several years before turn gen schedule code was introduced. Its complex, buggy, and I don't like it Crying or Very Sad

One definite bug that bites hosts alot is that AutoHost doesn't take the amount of time that a game has been on hold into account when its determining when to generate a turn. Currently, AutoHost counts from the modification time of the game's .hst file (if not using a gen schedule)

I'm open to comments/suggestions.



Ron Miller
Stars! AutoHost

Report message to a moderator

Re: Request for comment Tue, 18 March 2003 12:13 Go to previous messageGo to next message
pgarnold is currently offline pgarnold

 
Petty Officer 3rd Class

Messages: 48
Registered: November 2002
Location: near Washington, D.C.
I have been thinking about this a lot. There are so many possibilities with games being set to gen 7 days per week down to 3 times per week or less. There is no really good way to deal effectively with a "one size fits all" solution given the wide range of possibilities.

One possible method that does show great promise, at least from my perspective, is to get as many players as possible in the game to agree to attack that one player who habitually gets their turn in at the last minute. Laughing

This makes less sense if the game is generated every 24 hours but a whole lot of sense if the game is generated every 2 or 3 days. Off with their heads! Twisted Evil End of problem! Shocked

Paul

Report message to a moderator

Re: Request for comment Wed, 19 March 2003 06:21 Go to previous messageGo to next message
gible

 
Commander

Messages: 1343
Registered: November 2002
Location: Wellington, New Zealand

Nooooooo Laughing

Some days I just can't be bothered playing Stars so those players give me wonderful time off. Yes I know. I'm sick. But I refuse to take yellow pills Razz

Back on topic: Wouldn't having a minimum cycle time (settable) suffice to (mostly) fix the problem?

Back off again: How often do you alter the code? Assuming you're willing to give out the source code can we others who program help fix/rewrite it? The email thing too?

Report message to a moderator

Re: Request for comment Wed, 19 March 2003 15:21 Go to previous messageGo to next message
Ron is currently offline Ron

 
Commander
Forum Administrator
Stars! AutoHost Administrator

Messages: 1231
Registered: October 2002
Location: Collegedale, TN
gible wrote on Wed, 19 March 2003 06:21

Wouldn't having a minimum cycle time (settable) suffice to (mostly) fix the problem?

Please explain.

Quote:

Back off again: How often do you alter the code?

Usually, not very often. A few changes recently to help Jeff Hoyt's AutoHost Client work better.

Quote:

Assuming you're willing to give out the source code can we others who program help fix/rewrite it? The email thing too?


No, not willing to just give out the entire source code.


  1. The original code is freely available, and if anyone cares enough about it, they can build on that. It was my way of learning code, and is my hobby to maintain AutoHost.
  2. It's written in PERL and is 48k. Bloated, ugly, and has a memory leak somewhere.
  3. I'm more than willing for someone to help with fixing the schedule code.


About the email upload...

  1. Email is slow in arriving and can sometimes get corrupted in route.
  2. Players using email to upload will not get instant feedback if their turn was for the wrong year, or corrupted etc.
  3. Much of the code, as I recall, for processing email uploads is done. I havn't remembered to work on it.
  4. Jeff Hoyt's AutoHost Client program should help those players who find it too much trouble to go to the upload page on AutoHost.





Ron Miller
Stars! AutoHost

Report message to a moderator

Re: Request for comment Wed, 19 March 2003 17:30 Go to previous messageGo to next message
Micha

 

Messages: 2342
Registered: November 2002
Location: Belgium GMT +1
Hi,

Mabye 48h at fixed times might help. Instead of linking the gens to days you would get a gen every 48h but only at 18:00 for example. Currently this is not possible because of the odd number of days in the week, unless the host changes it every week.

This schedule should not be strict, I'll try to explain with an example:
Gen time is 18:00, today is Wednesday, so the next normal gen is Friday 18:00.
However all turns are in before Thursday 18:00, with normal AutoHost behaviour the Friday 18:00 gen will be skipped, which is ok since else there won't be 48h between turns, so the next gen will be Sunday 18:00 which leaves +72h before the next gen.
Now if AutoHost could check and see that the time left is +48h, than it looks at the gen time (18:00) and sees that it can shift the gen one day back to Saturday 18:00 and still have 48h left ...

This will no longer allow gens at set days like "only gens at MWF and skip the weekend" but offers an extra to the "gen every 48h" giving people not a fixed day _and_ time but only a fixed time for every gen.
It's something in the middle of the two methods.

Maybe AutoHost can also be made smart enough to check if the next gen is in a weekend or not and give the host an option to skip gens that are in the weekend ... in such a way it might be even better than using "MWF only" gens ...

Not sure if this is possible with with the AutoHost scripting/software, I don't have the slightest knowledge about programming ... Confused

kind regards,
mch

Report message to a moderator

Re: Request for comment Thu, 20 March 2003 00:39 Go to previous messageGo to next message
gible

 
Commander

Messages: 1343
Registered: November 2002
Location: Wellington, New Zealand

I mean have an option called "minimum_cycle_time" and let the host set it to whatever(default=24). Assume the turns are all in early. AH gens and then searches for the next scheduled gen time, starting from the minimum_cycle_time+current_time.

eg schedule is daily at 1800 and the turns are in at monday 1300 - AH should start looking for the next gen time from tuesday 1300 - finding tuesday 1800.

Games which don't use a schedule should be unaffected by this.

I have the original code and I agree, its hideous.

Report message to a moderator

Re: Request for comment Thu, 03 April 2003 16:40 Go to previous message
Raindancer is currently offline Raindancer

 
Officer Cadet 3rd Year

Messages: 261
Registered: February 2003
Location: Finger Lakes NY, USA

gible wrote on Thu, 20 March 2003 00:39

I mean have an option called "minimum_cycle_time" and let the host set it to whatever(default=24). Assume the turns are all in early. AH gens and then searches for the next scheduled gen time, starting from the minimum_cycle_time+current_time.

eg schedule is daily at 1800 and the turns are in at monday 1300 - AH should start looking for the next gen time from tuesday 1300 - finding tuesday 1800.


It seems to me that such programming is possible. (One upon a time I was a programmer).

My suggestions:
Allow people to use 'new' programming with a new selection on the host screen. So you would have the following options:
1) Strict schedule
2) Flexible schedule
3) Min cycle time schedule

This way, you do not have to change the code on either of the two current methods, just add in a new method. This will also allow you to test it without having any detrimental effects on all the other current games.

And one related note: You could add an information line to the AH email, saying something like: "Upload for next turn due in NN:NN hours" or "Upload for next turn due at (day) (Date) (time)". For current methods this is an extra nice thing. For a new schedule methods this would be important.

Dancer

Report message to a moderator

Previous Topic: 3/29/3 Is Autohost Working?
Next Topic: Donations?
Goto Forum:
  


Current Time: Fri Apr 19 16:37:14 EDT 2024