FAQ

Sandy Demi edited this page Nov 29, 2016 · 14 revisions

HTML

  • Q: I've modified my HTML interface after creating a behavior graph, but when I open the interface, the changes I've made to the HTML interface are not displayed.
  • A: When you create the start state for a behavior graph, values from the interface are stored in the graph. If you change the HTML interface, you need to update these values in the graph. To update the graph:
    1. Open the graph.
    2. Open the modified HTML interface.
    3. Select Graph > Revise Start State with UI from the menu.
    4. Reload the HTML interface, verify that the interface now displays the changes as defined in the modified interface, and save the graph.

  • Q: I've downloaded an HTML example interface, and when I try to launch it from the authoring tools, the tutor isn't connecting to the Behavior Recorder.
  • A: In the .html file, change the reference to JQuery to point to the version on the CTAT CDN:
    <script src="https://cdn.ctat.cs.cmu.edu/releases/latest/jquery.min.js"></script>

  • Q: Can a tutor-performed action (TPA) execute a JavaScript function I've defined in the user interface?
  • A: Yes. In a TPA, if the Selection is "root" (entered in the Edit Student Input Matching dialogue), then the Action will be interpreted as a function name on the JavaScript global object (the window object), and the entire Input will be a single string argument passed to the function. For example, a TPA with Selection-Action-Input (root, alert, Hello there) will call the alert() function to pop up a dialogue showing "Hello there" on the student interface.

  • Q: When I use the HTML5 Project Wizard to create my tutor, should I elect to include local JavaScript and CSS files?
  • A: In most cases, no. By default, your tutor will include references to the JavaScript and CSS files hosted on the web (e.g., http://cdn.ctat.cs.cmu.edu/releases/latest/). The advantage of using the files hosted on the web is that your tutors will always have access to the latest version.

    If you choose to use local files, however, those files are downloaded from the internet and saved in your project, and the generated .html file will include references to these files. Your tutor will always use the version of the files saved in your package, so when you deploy your tutor, you will also need to deploy these files.


Flash

  • Q: I've got Flash installed with the components but the resulting tutor I create isn't connecting to the Behavior Recorder.
  • A: Please try the following. From the File menu select Publish Settings. You should see a setting on the lower right called: Local playback security. Please make sure that "Access network only" is selected. Click OK and try running the tutor again.

  • Q: Why doesn't CTAT evaluate actions when I work with the Flash tutor?
  • A: A number of things could prevent CTAT from evaluating user actions. Here are some things to check:
    • Author Mode not set to Test Tutor. Make sure "Author Mode" is set to "Test Tutor" in CTAT. Not using "CTAT for Flash". Perhaps you mistakenly launched "CTAT for Java"? Components don't each have a unique instance name. Check this by selecting each component and examing the instance name in the Properties panel. Alternatively, you can select Window > Movie Explorer and scan the list of component instance names (the text inside the brackets).
    • Behavior Recorder Mode is set incorrectly. If you're working from the Flash IDE, check the Behavior Recorder Mode parameter of the CommShell component. If you're viewing the tutor from a web page, check the BehaviorRecorderMode parameter of flashvars. If you're connecting to the Behavior Recorder, it should be set to "AuthorTime".Using "screens" in Flash. CTAT currently does not support Flash interfaces that contain screens. Made changes to the Flash interface—renamed components, for example—after building a behavior graph. Either recreate the graph, or change the instance names in the interface back to the way they were when the graph was created.

  • Q: Start State doesn't load.
  • A: The two relatively common causes for this:
    • The Flash Player's security settings are restricting it from sending data to CTAT (this may be the case when using the Tutoring Service). See Flash Player security for information on allowing the Flash movie (SWF) to communicate with CTAT.
    • The behavior graph is not loaded, either because the path to the graph (specified in the flashvar "question_file") is incorrect, or the file doesn't exist. If using Flash's "Runtime" mode, the path should be relative to the HTML document; if using "AuthorTimeTutoring" mode (Tutoring Service), the path is relative to the CTAT executable (ie, the Tutoring Service).

  • Q: I get an error message when I install the Extension Manager.
  • A: On some systems the 1.7 Extension Manager will exit with this error: Error 1316. A Network error occurred while attempting to read from the file C:\Windows\Downloaded Installations\MacroMedia Extension Manager 1.7\Macromedia_Extension_Manager.msi To fix this follow the steps below:
    • Nagivate to the temporary installation directory: C:\Windows\Downloaded Installations\MacroMedia Extension Manager 1.7\
    • Your path might be either C:\Windows or C:\WINNT
    • There should be a file called: "Macromedia Extension Manager.msi"
    • Change "Macromedia Extension Manager.msi" to "Macromedia_Extension_Manager.msi"
    • Double click the modified file and the installation should now complete to finish

Java

  • Q: When I try to build a tutor in CTAT, Eclipse won't run my code and gives me an error in the console that certain classes aren't found.
  • A: On the Libraries tab, select all entries beginning with CTAT/deploy and click Remove. Note: Failure to do this step will result in an error when you try to run your tutor: "(java.lang.SecurityException: class someClassName's signer information does not match signer information of other classes in the same package". For more informatin please visit the CTAT Java Configuration Help Page.