Quote:
Originally Posted by Gandalf Parker
Heehee. Of COURSE it is. 
Care to let me in on what the next hangup will be before we receive one?
|
Since I don't know what your scripts do, then I can't be certain.
Quote:
Also, checks would not necessarily have fixed it anyway.
|
Checking to make sure that there are actually 16 unique .2h files in the directory rather than assuming that every new .2h file is unique would have done it in this case. You should also be checking that the inputed .2h filenames match the expected filenames. I'd also want to check the timestamps to ensure that each file is newer than the generation time of the last .trn file. This will deal with players that only resubmit their own turns, but won't deal with players who don't redo their turns from scratch. There's no way to test for that automatically. But sanity checking your inputs is basic and necessary for any program that is going to be used with input that you don't personally control.
Quote:
How tyrranical should deleting a players sent file be?
|
Well, if the turn file isn't for the right game then it shouldn't be used. If it isn't from the right player then it shouldn't be used. This one is tricky, as some people have multiple email addresses. It's also not really possible to deal with deliberate cheating such as spoofing your email to match somebody else's. So you can usually assume that, barring malice, a turn file for a specific nation in an email that identifies which game it is for will be for that specific nation.
Quote:
Whose responsibility is it to fix player errors? The server? the person running the game? the Team Captain? the player themself? If I were all of the above then of course things would probably simpler.
|
The more people you try to involve in the process the more complicated it gets. Players are responsible for playing their turns and submitting .2h files. In a rollback situation they are responsible for redoing turns from scratch by deleting old .2h files. The admin is responsible for fixing other errors.