AIIDE 2018: "Exploratory Automated Analysis of Structural Features of Interactive Narrative"

Main Project Page

Narrative Creativity Project


Nathan Partlan | Elin Carstensdottir | Sam Snodgrass | Erica Kleinman | Gillian Smith | Casper Harteveld | Magy Seif El-Nasr


The AIIDE 2018 Paper


Talk Recording

Supplemental Materials

AIIDE 2018 Supplemental Materials


The following packages contain an automated analysis tool for interactive narratives built in StudyCrafter, presented at AIIDE 2018. Choose the appropriate version of the executable (or just the source code), depending on your operating system. If you download one of the executable files, you may also want to download the source code in order to see how you might extend the project, and to access additional documentation.

Pre-Built Binaries

Source Code

Unity Project and Source



On Windows: Drag the "StudyCrafterAssistant" folder to your installation location of choice. Double-click "StudyCrafterAssistant.exe" to run the tool.

On Mac: Drag the "" to your Applications folder. Double-click "" to run the tool.

On Linux: Move the "StudyCrafterAssistant" folder to your installation location of choice. Ensure the "StudyCrafterAssistant" executable has execute permissions, and run it.


  • Place one or more projects made using StudyCrafter into the "StreamingAssets" directory (or a subdirectory thereof) inside the StudyCrafterAssistant directory. The project should be a folder that contains multiple .json files.
  • On a Windows or Linux build of StudyCrafter, these projects are located inside the "StreamingAssets/NewProjectSystem" folder inside StudyCrafter_Data.

    Note: On a Mac build, this folder may be accessed by right-clicking on the "," and selecting "Show Package Contents." Inside the package, the projects are located in the folder: "Contents/Resources/Data/StreamingAssets/NewProjectSystem"

  • Open the "StudyCrafter Analysis Assistant" application.
  • Specify the output location for the Representation Graphs in the "Representation Output Folder" text input field.
  • Specify the output location for Metrics in the "Metrics Output Folder" text input field.
  • Specify the folder in which the projects are located, in the "Projects Folder" text input field. Then, if you want to analyze all the projects in that folder, press the "Analyze Directory" button.
  • To analyze a single project, specify the name of the project in the "Project Name" text input field. Then, click the "Analyze Single Project" button. Note: Currently, you must analyze an individual project to produce the visual representation graphs for that project.
  • You should see the status indicator text return to "Finished" when the analysis is complete. You can then find the output metrics and/or representation graphs in the specified folders.


(The following information is only applicable to the "Source" package.)

  • Install Unity 2017.04, and either Visual Studio Code or MonoDevelop.
  • Open the "StudyCrafterAssistant" folder as a project in Unity 2017.04
  • Open the "Asset Store" window in Unity, and find "Json.NET for Unity". Download and import it into your project.
  • The link to this library: Json.NET for Unity

  • Open the "TestPCGScene" scene.
  • Press the "Play" button to run the tool.
  • To build a distributable executable, use the File->Build menu to build to the location of your choice.

Building the Documentation:

You can use Doxygen to build automatic HTML documentation for this project.

To build the documentation for this project, run "doxygen Doxyfile" in the base StudyCrafterAssistant folder.

The documentation will be found in the "Documentation" folder. The start page is "html/index.html"

Additional Notes

This application does not include the R scripts used to produce clustering, expressive range analysis, and other results in the paper. Additionally, the code for some representation and metrics have changed slightly since the paper analysis was completed, so some metrics may differ in their values from the specific results reported in the paper.