.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Ways of Ending (http://forum.shrapnelgames.com/showthread.php?t=43877)

Illuminated One September 1st, 2009 03:26 PM

Ways of Ending
 
Is there any way to find out wether the current *.2h file was created through "Save and Exit" or through "End Turn"?

Squirrelloid September 1st, 2009 05:21 PM

Re: Ways of Ending
 
Open it and then immediately exit by your choice of method. Now you know.

Illuminated One September 2nd, 2009 09:56 AM

Re: Ways of Ending
 
Not really helpful if you want to host a game only if the player has hit End Turn.

Squirrelloid September 2nd, 2009 10:30 AM

Re: Ways of Ending
 
Ask the player to do the above?

Seriously, I'm being as helpful as I can be. Its a .2h file both ways, so the only other discriminator is going to be embedded in it somewhere - if you're feeling really adventurous, open it up in a txt editor and take a look at a save and quit version and an end turn version. I'm sure there must be something different.

Illuminated One September 2nd, 2009 08:31 PM

Re: Ways of Ending
 
There is no difference in the files, but I maybe there is one in the debug log or exit code.
Asking the player is always a possibility but it's ugly.


All times are GMT -4. The time now is 12:46 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.