Guide.SimulateTrialmode not working
by John Bura · in Torque X 2D · 07/29/2010 (3:50 pm) · 5 replies
Hi
Im trying to get the simulate trial mode to work But for whatever reason It isn't working. In my game.cs file I am putting in the Main() section
The problem is only some of the
works. It works in my main menu. But it doesn't work when I select the buy now. What am I doing wrong?
Im trying to get the simulate trial mode to work But for whatever reason It isn't working. In my game.cs file I am putting in the Main() section
Guide.SimulateTrialMode = true;
The problem is only some of the
if (Guide.IsTrialMode)
works. It works in my main menu. But it doesn't work when I select the buy now. What am I doing wrong?
#2
07/29/2010 (4:41 pm)
I feel like a dork. I missed a !. Thanks for the reply :)
#3
07/29/2010 (5:58 pm)
It happens to all of us ;)
#4
07/29/2010 (6:01 pm)
One thing to remember: never submit to CCO the game with that simulation active, it's considered a valid fail! The best way is to enclose it in #if DEBUG block considering that we're supposed to generate the ccgame package only using the Release configuration ;)
Associate Giuseppe De Francesco
DFT Games Ltd
When you simulate the marketplace and buy the game the value changes to "false" if you confirm the purchase.
There is nothing to do programmatically besides the setting of the simulation mode (in the BeginRun method of the Game). It's all manages by the framework.