So I built my game for Windows 8 Phone and the installation went off without a hitch. Before I knew it I was playing the game… then I changed over to Store and tried Windows 8.1 , 8.1 Universal and 10 universal and in all three I get the most stupid and cryptic of error messages…
One tells me that during postprocessing it came across files with no names and that all files must have names.
Another one tells me that the EMPTY folder I am building into contains a version of the game that is not compatible with the version being built
So I decided to delete everything and start installing the packages one by one, fixing any errors that might popup but the very first package I installed (containing 4 scripts only) already has me beat… Apparently it is illegal to use the Rect type in your games…
I get the following 4 error messages:
Nowhere do I use OnGUI in the script so not really sure why that is even in there…
And finally:
Well THAT was probably the most useful error message they could possibly invent!
A mate of mine directed me to http://docs.unity3d.com/Manual/windowsstore-missingtypes.html where it finally became clear why some of my functions constructors were suddenly illegal and why the Close() method suddenly no longer exists, great… Useful hint.
Doesn’t explain why I can’t use Rect though… Nor the multitude of other errors I get that make even less sense than this.
This is my offending code
namespace MBS
{
public enum eSlideDirection {Up=0, Down, Right, Left}
public enum eSlideState {Closed=0, Opening, Opened, Closing}
[System.Serializable]
public class mbsSlider {
public bool Fade = true;
public bool Slide = true;
public eSlideDirection slideInDirection = eSlideDirection.Right;
public eSlideDirection slideOutDirection = eSlideDirection.Right;
public float slideSpeed = 300.0f;
public Rect tPos;
public Action OnActivating,
OnActivated,
OnDeactivated,
OnDeactivating;
protected Rect curPos;
public float alpha {get; set; }
public mbsStateMachine<eSlideState> slideState {get; set; }
public Rect Pos { get { return curPos; } }
Note how I use Rect in multiple places but the error message only complains about tPos…
So two questions:
- What is wrong with my code?
- How do I get this working code to compile?
I noticed there is a handy “Getting started” section in the Docs containing “Coming soon” notifications so that is not really all that helpful as it might sound at first glance…
Anyone have any ideas?
Thanks
Edit:
Right after I typed this I finally got it to compile without complaining about the Rect. Still waiting to see if compilation actually COMPLETES since it likes to fail after a while but at least I got it to stop complaining about the Rect. All I had to do was remove the [system.serializable]… which I only added in afterwards because I got that error…
So anyway, it works for Win10, but for Win8.1 it now tells me:
…and so it goes on for 129 errors. Notice how it’s complaining about raycasters and Unity UI and my entire project doesn’t use any of it anywhere…
Same two questions as before still stand…