Video Tutorial Variation for VPL-1, Example 3 RRS feed

  • General discussion


    For other MSRS beginners (like me) who would like to follow-along and create example 3 of the VPL-1 On Demand Video with a standard joystick instead of a XBox controller. This is an example of creating your own Activity.




    Unzip the folder to the main folder where you keep your other manifests. After you load it in VPL editor, change the GameController name to match yours, as it shows up in your system's control panel.


    This is very basic stuff but I still hope it helps someone and you keep going through the lessons. If you need the link, the lessons are here:




    Wednesday, January 2, 2008 6:29 AM

All replies

  • This is a variation of the Activity example #4, that uses recursion to count forward from 1 to 10.




    The original example is good, and also demonstrates the use of Activity Notifications. You should try it as presented to see how that works.


    However, sometimes the counting is outputted (or spoken in this case) in a random order.


    Andreas Ulbrich posted that in VPL, everything that is not explicitely sequenced can happen in parallel or concurrently. (This is usually a good thing, but I don't think so in this case) ... To solve the issue and maintain ordering you have to make the loop dependent on the response SayTextSynchronous action of the TTS activity, i.e. add a Join to the connection that loops back and feed the response of the action into the Join.


    This code demos the above suggested fix and it works perfectly. However, to make this change, more of the objects had to moved inside the Activity, and the Notifications branch is no longer needed.




    By changing Data, IF, and Calculate it's very easy to change this to count backwards.

    Any kind of confirmation action and the end of the count can be easily attached to the IF's ELSE connector.



    Friday, January 4, 2008 8:37 AM