XNA Creators Club Online
Page 1 of 1 (4 items)
Sort Posts: Previous Next

Dumb Question

Last post 11/21/2009 12:21 AM by Dave Carlile. 3 replies.
  • 11/20/2009 11:21 PM

    Dumb Question

    Hi guys!

    When i play my game it allways acts as if in trial mode i have checked for Guide.SimulateTrialMode = true;
    and its not there so is it something wrong with my code. This is one of the sections of it  

     //Load track three  
            void trackThreeSelected(object sender, PlayerIndexEventArgs e)
            {
                if (!Guide.IsTrialMode)
                    LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new TrackThree());
                else
                {
                    //prompt player to buy 
                    MessageBoxScreen m = new MessageBoxScreen("Pit Stop isn't available in the trial! \nPurchase the full version for 80MSP" + "\n\nB button = Return", false);
                    m.Accepted += delegate
                    {
                        
                       
                        {
                            
                        }
                    };
                    ScreenManager.AddScreen(m, PlayerIndex.One);
                }
            }  


    It just always loads the screen Prompting to buy? 

    Any help is appreciated so thanks guys! 


  • 11/20/2009 11:37 PM In reply to

    Re: Dumb Question

    Are you checking if Guide.SimulateTrialMode == true or are you setting Guide.SimulatedTrialMode = true?  That, and are you setting Guide.SimulatedTrialMode = true before you are calling THreeSelected()?

    EDIT: Stupid text formatting...
  • 11/20/2009 11:44 PM In reply to

    Re: Dumb Question

    Have you added a GamerServicesComponent?
    XNA Framework Developer - blog - homepage
  • 11/21/2009 12:21 AM In reply to

    Re: Dumb Question

    According to the docs, Guide.IsTrialMode always returnes true when the game starts.  Once a license is detected, if any, it will change to false.  Is it possible that you're displaying your message box before the value has stabilized?


    http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.gamerservices.guide.istrialmode.aspx

    The Guide.IsTrialMode property always returns true when a game begins. Guide.IsTrialMode may change to false shortly after game launch if a license is detected when a player signs in, or it could change at any time after game launch if a license is acquired.


Page 1 of 1 (4 items) Previous Next