PDA

View Full Version : Do Portal security wrappers ever "Nuke" your game?


Grey Alien
11-14-2006, 07:56 AM
So basically when the major portals wrap you game in a security program, do they ever totally "Nuke" your game after 60 mins thus risking savefile corruption or do most let the user play indefinitely without nuke, but if they exit and try to go back in, the trial time will have expired (I know that Real do this). The Real method seems polite but slightly open to abuse for someone who has 8 hours to spare and is prepared to play the game in one sitting...

Any ideas? Thanks.

Olivier
11-14-2006, 09:03 AM
The answer is really straighforward, some portals boot you out, others don't. But I don't know about save file corruption.
I really don't know what's the best practice, the one which results in the most sales. Personnaly I HATE to be abruptely booted out. That's why in my own games I let the players finish (at least) the level they're on.

Matthew
11-14-2006, 09:16 AM
Most people who use Trymedia's technology nuke the game at the time limit (I think this is an option, although it seems to be the default behavior).

Grey Alien
11-14-2006, 09:26 AM
OK, so many portals nuke, and you could be midway through writing the savefile and then if the user bought the game, the save file wouldn't be correct!

MrMark
11-16-2006, 05:17 PM
OK, so many portals nuke, and you could be midway through writing the savefile and then if the user bought the game, the save file wouldn't be correct!

Maybe if you launched a separate process for saving games, so even if the portal nukes the game, the save game process should run to completion.

Rainer Deyke
11-16-2006, 07:51 PM
Save to a temporary file, rename the original file to another name, move the temporary file into place, optionally delete the renamed original file. Protects against anything from wrappers clobbering your process to forcibly removing the power chord. (Renaming/moving a file should be an atomic operation on all modern file systems.) In the worst case, the failure happens between when you rename the old file and when you move the new file, in which case you can recover by looking for either the the temporary file or the renamed old file.

Grey Alien
11-17-2006, 01:35 AM
good ideas, thanks!